feat: introduce new "Followed tags" page (#2642)

Co-authored-by: patak <583075+patak-dev@users.noreply.github.com>
This commit is contained in:
TAKAHASHI Shuuji 2024-03-05 19:27:10 +09:00 committed by GitHub
parent 3120bbb77f
commit f644148844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 3 deletions

View file

@ -43,7 +43,7 @@ const tabs = computed<CommonRouteTabOption[]>(() => [
<MainContent>
<template #title>
<span timeline-title-style flex items-center gap-2 cursor-pointer @click="$scrollToTop">
<div i-ri:hashtag />
<div i-ri:compass-3-line />
<span>{{ t('nav.explore') }}</span>
</span>
</template>

29
pages/hashtags.vue Normal file
View file

@ -0,0 +1,29 @@
<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
const { t } = useI18n()
const { client } = useMasto()
const paginator = client.value.v1.followedTags.list({
limit: 20,
})
useHydratedHead({
title: () => t('nav.hashtags'),
})
</script>
<template>
<MainContent>
<template #title>
<NuxtLink to="/hashtags" timeline-title-style flex items-center gap-2 @click="$scrollToTop">
<div class="i-ri:hashtag" />
<span>{{ t('nav.hashtags') }}</span>
</NuxtLink>
</template>
<TagCardPaginator v-bind="{ paginator }" />
</MainContent>
</template>