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