From fc0cc211eb88c847a847107413807b6dc45f5edb Mon Sep 17 00:00:00 2001 From: Stephane MEAUDRE Date: Fri, 22 Mar 2024 08:46:48 +0100 Subject: [PATCH] Pages + fix footer + header --- front/components/Layout/FooterBar.vue | 30 ++++--- front/components/Layout/HeaderBar.vue | 12 +-- front/composables/menu/useFooterpagesitems.ts | 5 +- .../constellation/[[id]]/[[urlName]].vue | 6 ++ front/pages/pages/[uid].vue | 90 ++++++++++++++++++- front/types/index.d.ts | 11 ++- 6 files changed, 121 insertions(+), 33 deletions(-) diff --git a/front/components/Layout/FooterBar.vue b/front/components/Layout/FooterBar.vue index 093fcc0..ff415df 100644 --- a/front/components/Layout/FooterBar.vue +++ b/front/components/Layout/FooterBar.vue @@ -43,18 +43,18 @@ v-for="(nav, index) in footerPageitems" :key="index" class="text-primary mx-3 mb-3 font-weight-bold" - :to="nav.path" + :to="{name: nav.path }" > - {{ nav.text }} + {{ $t(nav.text) }} - {{ asText(nav.data.title) }} + {{ asText(nav?.data?.title) }} @@ -69,7 +69,7 @@ diff --git a/front/composables/menu/useFooterpagesitems.ts b/front/composables/menu/useFooterpagesitems.ts index 58d1d0d..92ee7ec 100644 --- a/front/composables/menu/useFooterpagesitems.ts +++ b/front/composables/menu/useFooterpagesitems.ts @@ -1,14 +1,13 @@ export const useFooterpagesitems = () => { - const { t } = useI18n(); return { footerPageitems: [ { path: 'index', - text: t('home.title') + text: 'home.title' }, { path: 'contact', - text: t('contact.title') + text: 'contact.title' } ] } diff --git a/front/pages/constellation/[[id]]/[[urlName]].vue b/front/pages/constellation/[[id]]/[[urlName]].vue index 706cd5a..0c1d62e 100644 --- a/front/pages/constellation/[[id]]/[[urlName]].vue +++ b/front/pages/constellation/[[id]]/[[urlName]].vue @@ -1,6 +1,12 @@