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()
|
|
|
|
|
2024-02-21 16:20:08 +01:00
|
|
|
const { client } = useMasto()
|
|
|
|
const paginator = client.value.v1.trends.tags.list({
|
2023-01-08 09:27:38 +01:00
|
|
|
limit: 20,
|
|
|
|
})
|
2022-12-11 11:52:36 +01:00
|
|
|
|
|
|
|
const hideTagsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS, false)
|
|
|
|
|
2023-04-16 21:33:51 +02:00
|
|
|
useHydratedHead({
|
2023-01-12 00:08:31 +01:00
|
|
|
title: () => `${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>
|