From a30a4cab788994c67c62dcf59359e08e7a979cc5 Mon Sep 17 00:00:00 2001 From: Yann Le Vagueres Date: Sun, 10 Sep 2023 14:50:25 +0200 Subject: [PATCH] Added ids and classes for services and bookmarks --- src/components/bookmarks/group.jsx | 5 ++- src/components/bookmarks/item.jsx | 10 ++--- src/components/bookmarks/list.jsx | 2 +- src/components/services/group.jsx | 5 ++- src/components/services/item.jsx | 40 ++++++++++--------- src/components/services/kubernetes-status.jsx | 8 ++-- src/components/services/list.jsx | 2 +- src/components/services/ping.jsx | 8 ++-- src/components/services/status.jsx | 12 +++--- src/components/services/widget.jsx | 2 +- src/components/services/widget/block.jsx | 3 +- src/components/services/widget/container.jsx | 2 +- src/pages/index.jsx | 6 +-- 13 files changed, 56 insertions(+), 49 deletions(-) diff --git a/src/components/bookmarks/group.jsx b/src/components/bookmarks/group.jsx index 4cd36b7b..2cfcad23 100644 --- a/src/components/bookmarks/group.jsx +++ b/src/components/bookmarks/group.jsx @@ -13,6 +13,7 @@ export default function BookmarksGroup({ bookmarks, layout, disableCollapse }) {
{layout?.icon && ( -
+
)} -

{bookmarks.name}

+

{bookmarks.name}

+
  • -
    +
    {bookmark.icon &&
    @@ -28,9 +28,9 @@ export default function Item({ bookmark }) { } {!bookmark.icon && bookmark.abbr}
    -
    -
    {bookmark.name}
    -
    {hostname}
    +
    +
    {bookmark.name}
    +
    {hostname}
    diff --git a/src/components/bookmarks/list.jsx b/src/components/bookmarks/list.jsx index e0266d30..64b35076 100644 --- a/src/components/bookmarks/list.jsx +++ b/src/components/bookmarks/list.jsx @@ -9,7 +9,7 @@ export default function List({ bookmarks, layout }) {
      {bookmarks.map((bookmark) => ( diff --git a/src/components/services/group.jsx b/src/components/services/group.jsx index bd221218..7a7ae705 100644 --- a/src/components/services/group.jsx +++ b/src/components/services/group.jsx @@ -14,6 +14,7 @@ export default function ServicesGroup({ group, services, layout, fiveColumns, di
      {layout?.icon && -
      +
      } -

      {services.name}

      +

      {services.name}

      +
    • -
      +
      {service.icon && (hasLink ? ( ) : ( -
      +
      ))} @@ -60,25 +62,25 @@ export default function Item({ service, group }) { href={service.href} target={service.target ?? settings.target ?? "_blank"} rel="noreferrer" - className="flex-1 flex items-center justify-between rounded-r-md " + className="flex-1 flex items-center justify-between rounded-r-md service-title-text" > -
      +
      {service.name} -

      {service.description}

      +

      {service.description}

      ) : ( -
      -
      +
      +
      {service.name} -

      {service.description}

      +

      {service.description}

      )} -
      +
      {service.ping && ( -
      +
      Ping status
      @@ -88,7 +90,7 @@ export default function Item({ service, group }) {