+
{{ settings.portal_title }}
diff --git a/maintenance/locales.json b/maintenance/locales.json index f15006f..e9710bb 100644 --- a/maintenance/locales.json +++ b/maintenance/locales.json @@ -18,9 +18,7 @@ { "code": "br", "dir": "ltr", - "fallback": [ - "fr" - ], + "fallback": ["fr"], "file": "br.json", "iso": "br", "name": "Brezhoneg" diff --git a/middleware/auth.global.ts b/middleware/auth.global.ts index bab7768..0ade857 100644 --- a/middleware/auth.global.ts +++ b/middleware/auth.global.ts @@ -5,7 +5,7 @@ import { useSettings, } from '@/composables/states' -export default defineNuxtRouteMiddleware(async (to, from) => { +export default defineNuxtRouteMiddleware(async (to) => { const isLoggedIn = useIsLoggedIn() const settings = await useSettings() diff --git a/pages/index.vue b/pages/index.vue index 7339ce9..0d0a980 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -21,25 +21,22 @@ const intro = computed(() => { return isLoggedIn.value ? userIntro : isPublic ? publicIntro : null }) -const apps = Object.entries(appsData.value).map(([id, app]) => { +const apps = Object.values(appsData.value).map((app) => { return { ...app, url: '//' + app.url, - description: app.description[locale.value] || app.description.en + description: app.description?.[locale.value] || app.description?.en, } }) const search = ref('') async function onSearchSubmit() { - await navigateTo( - settings.value.search_engine + search.value, - { - open: { - target: '_blank', - } - } - ) + await navigateTo(settings.value.search_engine + search.value, { + open: { + target: '_blank', + }, + }) } @@ -49,14 +46,31 @@ async function onSearchSubmit() {