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

25 lines
602 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()
const masto = useMasto()
2023-01-08 08:27:38 +00:00
const paginator = masto.v1.trends.listTags({
limit: 20,
})
2022-12-11 10:52:36 +00:00
const hideTagsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS, false)
2022-12-13 18:44:40 +00:00
useHeadFixed({
title: () => isHydrated.value ? `${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>