diff --git a/components/tag/TagCardPaginator.vue b/components/tag/TagCardPaginator.vue new file mode 100644 index 00000000..498ff92a --- /dev/null +++ b/components/tag/TagCardPaginator.vue @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + diff --git a/components/timeline/TimelineList.vue b/components/timeline/TimelineList.vue deleted file mode 100644 index 36b36473..00000000 --- a/components/timeline/TimelineList.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - diff --git a/pages/[[server]]/explore/tags.vue b/pages/[[server]]/explore/tags.vue index e687e3be..f69447f5 100644 --- a/pages/[[server]]/explore/tags.vue +++ b/pages/[[server]]/explore/tags.vue @@ -4,10 +4,9 @@ import { STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS } from '~~/constants' const { t } = useI18n() const masto = useMasto() -const { data, pending, error } = useLazyAsyncData( - async () => masto.v1.trends.listTags({ limit: 20 }), - { immediate: true }, -) +const paginator = masto.v1.trends.listTags({ + limit: 20, +}) const hideTagsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS, false) @@ -17,28 +16,9 @@ useHeadFixed({ - + {{ $t('tooltip.explore_tags_intro') }} - - - - - {{ $t('common.end_of_list') }} - - - - - - - - - - - {{ $t('common.error') }}: {{ error }} - - - {{ $t('error.explore-list-empty') }} - + diff --git a/pages/[[server]]/explore/users.vue b/pages/[[server]]/explore/users.vue index 8d0ed9c6..218d5964 100644 --- a/pages/[[server]]/explore/users.vue +++ b/pages/[[server]]/explore/users.vue @@ -2,11 +2,7 @@ const { t } = useI18n() // limit: 20 is the default configuration of the official client -const masto = useMasto() -const { data, pending, error } = useLazyAsyncData( - async () => masto.v2.suggestions.list({ limit: 20 }), - { immediate: true }, -) +const paginator = useMasto().v2.suggestions.list({ limit: 20 }) useHeadFixed({ title: () => `${t('tab.for_you')} | ${t('nav.explore')}`, @@ -14,29 +10,19 @@ useHeadFixed({ - - - - - {{ $t('common.end_of_list') }} - - - - - - - - - {{ $t('common.error') }}: {{ error }} - - - {{ $t('common.not_found') }} - + + + + + + + + + +
{{ $t('tooltip.explore_tags_intro') }}