elk/pages/[[server]]/explore/tags.vue

25 lines
590 B
Vue
Raw Normal View History

2022-12-11 10:52:36 +00:00
<script lang="ts" setup>
import { STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS } from '~~/constants'
2022-12-13 18:44:40 +00:00
const { t } = useI18n()
2023-01-15 08:38:02 +00:00
const { client } = $(useMasto())
const paginator = client.v1.trends.listTags({
2023-01-08 08:27:38 +00:00
limit: 20,
})
2022-12-11 10:52:36 +00:00
const hideTagsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS, false)
useHydratedHead({
title: () => `${t('tab.hashtags')} | ${t('nav.explore')}`,
2022-12-13 18:44:40 +00:00
})
2022-12-11 10:52:36 +00:00
</script>
<template>
2023-01-08 08:27:38 +00:00
<CommonAlert v-if="!hideTagsTips" @close="hideTagsTips = true">
2022-12-11 10:52:36 +00:00
<p>{{ $t('tooltip.explore_tags_intro') }}</p>
</CommonAlert>
2023-01-08 08:27:38 +00:00
<TagCardPaginator v-bind="{ paginator }" />
2022-12-11 10:52:36 +00:00
</template>