From 0d3de24dc56f94f9a929685f099b9958cf1c6bbe Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Sat, 13 Sep 2025 20:07:25 +0200 Subject: [PATCH] refactor: migrate to composition API --- app/components/Account.vue | 11 ++-- app/components/ProfileOverview.vue | 89 +++++++++++++++--------------- 2 files changed, 53 insertions(+), 47 deletions(-) diff --git a/app/components/Account.vue b/app/components/Account.vue index 477873339..051e4c6d7 100644 --- a/app/components/Account.vue +++ b/app/components/Account.vue @@ -5,6 +5,7 @@ import { useCookie, useFetch } from 'nuxt/app'; import useConfig from '../composables/useConfig.ts'; import useDialogue from '../composables/useDialogue.ts'; +import buildLocaleList from '#shared/buildLocaleList.ts'; import { longtimeCookieSetting } from '#shared/cookieSettings.ts'; import { newDate, gravatar, PermissionAreas } from '#shared/helpers.ts'; import type { Profile } from '#shared/profile.ts'; @@ -17,6 +18,8 @@ const { $translator: translator, $setToken: setToken, $removeToken: removeToken const runtimeConfig = useRuntimeConfig(); const config = useConfig(); +const locales = buildLocaleList(config.locale); + const dialogue = useDialogue(); const { accounts, user } = storeToRefs(useMainStore()); @@ -489,11 +492,11 @@ const addBrackets = (str: string): string => {
  • - +
diff --git a/app/components/ProfileOverview.vue b/app/components/ProfileOverview.vue index 45ce9e5b4..1f4bfbbe2 100644 --- a/app/components/ProfileOverview.vue +++ b/app/components/ProfileOverview.vue @@ -1,64 +1,67 @@ + + - -