From 16da55f58bee08aa5932cf0952e32229fbea1843 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 31 Mar 2024 18:02:16 -0800 Subject: [PATCH 1/3] chore(deps): update dependency mkdocs-material to v9.5.16 (#3397) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- poetry.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index 90a23215c76b..3bc0290be916 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1353,13 +1353,13 @@ min-versions = ["babel (==2.9.0)", "click (==7.0)", "colorama (==0.4)", "ghp-imp [[package]] name = "mkdocs-material" -version = "9.5.15" +version = "9.5.16" description = "Documentation that simply works" optional = false python-versions = ">=3.8" files = [ - {file = "mkdocs_material-9.5.15-py3-none-any.whl", hash = "sha256:e5c96dec3d19491de49ca643fc1dbb92b278e43cdb816c775bc47db77d9b62fb"}, - {file = "mkdocs_material-9.5.15.tar.gz", hash = "sha256:39f03cca45e82bf54eb7456b5a18bd252eabfdd67f237a229471484a0a4d4635"}, + {file = "mkdocs_material-9.5.16-py3-none-any.whl", hash = "sha256:32fce3cd8ecbd5dca6e5887cc0cf5bc78707a36f7d0f6f1bbbe9edaf428b8055"}, + {file = "mkdocs_material-9.5.16.tar.gz", hash = "sha256:8b89b639592660f24657bb058de4aff0060cd0383148f8f51711201730f17503"}, ] [package.dependencies] From 7c365b7c03a3041b667fc53d88dc21620f2ece10 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 31 Mar 2024 21:43:59 -0500 Subject: [PATCH 2/3] New translations en-us.json (German) (#3400) --- frontend/lang/messages/de-DE.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/lang/messages/de-DE.json b/frontend/lang/messages/de-DE.json index 0d73bbf4e679..321138c7bfd5 100644 --- a/frontend/lang/messages/de-DE.json +++ b/frontend/lang/messages/de-DE.json @@ -422,7 +422,7 @@ "carbohydrate-content": "Kohlenhydrate", "categories": "Kategorien", "comment-action": "Kommentieren", - "comment": "Kommentieren", + "comment": "Kommentar", "comments": "Kommentare", "delete-confirmation": "Bist du dir sicher, dass du dieses Rezept löschen möchtest?", "delete-recipe": "Rezept löschen", From a2838284617fee96e0ee6988ecc0267e0e191d96 Mon Sep 17 00:00:00 2001 From: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com> Date: Mon, 1 Apr 2024 10:16:52 +0200 Subject: [PATCH 3/3] refactor: Sidebar UI (#3390) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refactor sidebar links in DefaultLayout.vue * 🧹 --- frontend/components/Layout/DefaultLayout.vue | 47 ++++++++++--------- .../Layout/LayoutParts/AppSidebar.vue | 25 ++-------- frontend/lib/icons/icons.ts | 4 ++ 3 files changed, 32 insertions(+), 44 deletions(-) diff --git a/frontend/components/Layout/DefaultLayout.vue b/frontend/components/Layout/DefaultLayout.vue index 1360af25edf8..df7628b664dc 100644 --- a/frontend/components/Layout/DefaultLayout.vue +++ b/frontend/components/Layout/DefaultLayout.vue @@ -6,8 +6,6 @@ v-model="sidebar" absolute :top-link="topLinks" - :secondary-header="cookbookLinks.length ? $tc('sidebar.cookbooks') : undefined" - :secondary-header-link="isOwnGroup && cookbookLinks.length ? `/g/${groupSlug}/cookbooks` : undefined" :secondary-links="cookbookLinks || []" :bottom-links="isAdmin ? bottomLinks : []" > @@ -146,14 +144,6 @@ to: `/g/${groupSlug.value}/r/create/new`, restricted: true, }, - { - insertDivider: true, - icon: $globals.icons.pages, - title: i18n.tc("sidebar.cookbook"), - subtitle: i18n.tc("sidebar.create-cookbook"), - to: `/g/${groupSlug.value}/cookbooks`, - restricted: true, - }, ]); const bottomLinks = computed(() => [ @@ -191,22 +181,35 @@ restricted: true, }, { - icon: $globals.icons.categories, - to: `/g/${groupSlug.value}/recipes/categories`, - title: i18n.tc("sidebar.categories"), + icon: $globals.icons.book, + to: `/g/${groupSlug.value}/cookbooks`, + title: i18n.tc("cookbook.cookbooks"), restricted: true, }, { - icon: $globals.icons.tags, - to: `/g/${groupSlug.value}/recipes/tags`, - title: i18n.tc("sidebar.tags"), - restricted: true, - }, - { - icon: $globals.icons.potSteam, - to: `/g/${groupSlug.value}/recipes/tools`, - title: i18n.tc("tool.tools"), + icon: $globals.icons.organizers, + title: "Organizers", restricted: true, + children: [ + { + icon: $globals.icons.categories, + to: `/g/${groupSlug.value}/recipes/categories`, + title: i18n.tc("sidebar.categories"), + restricted: true, + }, + { + icon: $globals.icons.tags, + to: `/g/${groupSlug.value}/recipes/tags`, + title: i18n.tc("sidebar.tags"), + restricted: true, + }, + { + icon: $globals.icons.potSteam, + to: `/g/${groupSlug.value}/recipes/tools`, + title: i18n.tc("tool.tools"), + restricted: true, + }, + ], }, ]); diff --git a/frontend/components/Layout/LayoutParts/AppSidebar.vue b/frontend/components/Layout/LayoutParts/AppSidebar.vue index 6a4585a2ca30..049b71e4b8f3 100644 --- a/frontend/components/Layout/LayoutParts/AppSidebar.vue +++ b/frontend/components/Layout/LayoutParts/AppSidebar.vue @@ -39,13 +39,12 @@ {{ nav.title }} - + {{ child.icon }} {{ child.title }} - @@ -68,18 +67,8 @@ -