chore: avoid useHead naming conflicts

This commit is contained in:
Anthony Fu 2022-11-30 06:49:25 +08:00
parent 0acc0f7689
commit 98a647f8ca
16 changed files with 19 additions and 18 deletions

View file

@ -7,7 +7,7 @@ const { t } = useI18n()
const { data: account, refresh } = $(await useAsyncData(() => fetchAccountByName(accountName).catch(() => null)))
if (account) {
useHead({
useHeadFixed({
title: () => `${getDisplayName(account)} (@${account.acct})`,
})
}

View file

@ -5,7 +5,7 @@ definePageMeta({
const paginator = useMasto().blocks.getIterator()
useHead({
useHeadFixed({
title: 'Blocked users',
})
</script>

View file

@ -7,7 +7,7 @@ const paginator = useMasto().bookmarks.getIterator()
const { t } = useI18n()
useHead({
useHeadFixed({
title: () => t('nav_side.bookmarks'),
})
</script>

View file

@ -7,7 +7,7 @@ const paginator = useMasto().conversations.getIterator()
const { t } = useI18n()
useHead({
useHeadFixed({
title: () => t('nav_side.conversations'),
})
</script>

View file

@ -5,7 +5,7 @@ definePageMeta({
const paginator = useMasto().domainBlocks.getIterator()
useHead({
useHeadFixed({
title: 'Blocked domains',
})

View file

@ -3,7 +3,7 @@ const paginator = useMasto().trends.getStatuses()
const { t } = useI18n()
useHead({
useHeadFixed({
title: () => t('nav_side.explore'),
})
</script>

View file

@ -6,7 +6,7 @@ definePageMeta({
const paginator = useMasto().favourites.getIterator()
const { t } = useI18n()
useHead({
useHeadFixed({
title: () => t('nav_side.favourites'),
})
</script>

View file

@ -16,7 +16,7 @@ const stream = await useMasto().stream.streamUser()
onBeforeUnmount(() => stream.disconnect())
const { t } = useI18n()
useHead({
useHeadFixed({
title: () => t('nav_side.home'),
})
</script>

View file

@ -5,7 +5,7 @@ definePageMeta({
const paginator = useMasto().mutes.getIterator()
useHead({
useHeadFixed({
title: 'Muted users',
})
</script>

View file

@ -14,7 +14,7 @@ const paginator = $computed(() => {
return useMasto().notifications.getIterator(tab === 'All' ? undefined : { types: ['mention'] })
})
useHead({
useHeadFixed({
title: () => t('nav_side.notifications'),
})
</script>

View file

@ -6,7 +6,7 @@ definePageMeta({
const paginator = useMasto().accounts.getStatusesIterable(currentUser.value!.account.id, { pinned: true })
const { t } = useI18n()
useHead({
useHeadFixed({
title: () => t('account.pinned'),
})
</script>

View file

@ -5,7 +5,7 @@ onBeforeUnmount(() => stream.disconnect())
const { t } = useI18n()
useHead({
useHeadFixed({
title: () => t('title.federated_timeline'),
})
</script>

View file

@ -5,7 +5,7 @@ onBeforeUnmount(() => stream.disconnect())
const { t } = useI18n()
useHead({
useHeadFixed({
title: () => t('title.local_timeline'),
})
</script>

View file

@ -9,7 +9,7 @@ const stream = await useMasto().stream.streamTagTimeline(tagName)
onBeforeUnmount(() => stream.disconnect())
if (tag) {
useHead({
useHeadFixed({
title: () => `#${tag.name}`,
})
}