refactor: remove useHeadFixed workaround (#1938)

Co-authored-by: Ayaka Rizumu <464388324@qq.com>
This commit is contained in:
Joaquín Sánchez 2023-04-01 13:14:12 +02:00 committed by GitHub
parent 60a37e0bf8
commit ab2881b9a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 39 additions and 65 deletions

View file

@ -2,7 +2,7 @@
const buildInfo = useBuildInfo()
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.about.label')} | ${t('nav.settings')}`,
})

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.interface.label')} | ${t('nav.settings')}`,
})
</script>

View file

@ -5,7 +5,7 @@ const { t, locale } = useI18n()
const translationStatus: ElkTranslationStatus = await import('~/elk-translation-status.json').then(m => m.default)
useHeadFixed({
useHead({
title: () => `${t('settings.language.label')} | ${t('nav.settings')}`,
})
const status = computed(() => {

View file

@ -6,7 +6,7 @@ definePageMeta({
const { t } = useI18n()
const pwaEnabled = useAppConfig().pwaEnabled
useHeadFixed({
useHead({
title: () => `${t('settings.notifications.label')} | ${t('nav.settings')}`,
})
</script>

View file

@ -5,7 +5,7 @@ definePageMeta({
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.notifications.notifications.label')} | ${t('settings.notifications.label')} | ${t('nav.settings')}`,
})
</script>

View file

@ -8,7 +8,7 @@ definePageMeta({
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.notifications.push_notifications.label')} | ${t('settings.notifications.label')} | ${t('nav.settings')}`,
})
</script>

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.preferences.label')} | ${t('nav.settings')}`,
})

View file

@ -9,7 +9,7 @@ definePageMeta({
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.profile.appearance.title')} | ${t('nav.settings')}`,
})

View file

@ -5,7 +5,7 @@ definePageMeta({
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.profile.featured_tags.label')} | ${t('nav.settings')}`,
})
</script>

View file

@ -5,7 +5,7 @@ definePageMeta({
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.profile.label')} | ${t('nav.settings')}`,
})
</script>

View file

@ -5,7 +5,7 @@ import type { UserLogin } from '~/types'
const { t } = useI18n()
useHeadFixed({
useHead({
title: () => `${t('settings.users.label')} | ${t('nav.settings')}`,
})