diff options
| author | GrapeApple0 <84321396+GrapeApple0@users.noreply.github.com> | 2023-12-27 15:55:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-27 15:55:09 +0900 |
| commit | 6439c7b64b31dc9fbc6c968ef020787f34ee8331 (patch) | |
| tree | 7e057245a089e1ce841d8dbb4b30653c88dd0d8c /packages/frontend/src/pages/gallery/index.vue | |
| parent | :art: (diff) | |
| download | misskey-6439c7b64b31dc9fbc6c968ef020787f34ee8331.tar.gz misskey-6439c7b64b31dc9fbc6c968ef020787f34ee8331.tar.bz2 misskey-6439c7b64b31dc9fbc6c968ef020787f34ee8331.zip | |
Revert "refactor: paginationの型を明示する (#12809)" (#12810)
This reverts commit 6855079811401be883167476726644e5730ea792.
Diffstat (limited to 'packages/frontend/src/pages/gallery/index.vue')
| -rw-r--r-- | packages/frontend/src/pages/gallery/index.vue | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/frontend/src/pages/gallery/index.vue b/packages/frontend/src/pages/gallery/index.vue index fdcf117ffe..8d9ac07805 100644 --- a/packages/frontend/src/pages/gallery/index.vue +++ b/packages/frontend/src/pages/gallery/index.vue @@ -49,7 +49,7 @@ SPDX-License-Identifier: AGPL-3.0-only <script lang="ts" setup> import { watch, ref, computed } from 'vue'; import MkFoldableSection from '@/components/MkFoldableSection.vue'; -import MkPagination, { Paging } from '@/components/MkPagination.vue'; +import MkPagination from '@/components/MkPagination.vue'; import MkGalleryPostPreview from '@/components/MkGalleryPostPreview.vue'; import { definePageMetadata } from '@/scripts/page-metadata.js'; import { i18n } from '@/i18n.js'; @@ -68,19 +68,19 @@ const tagsRef = ref(); const recentPostsPagination = { endpoint: 'gallery/posts' as const, limit: 6, -} satisfies Paging; +}; const popularPostsPagination = { endpoint: 'gallery/featured' as const, noPaging: true, -} satisfies Paging; +}; const myPostsPagination = { endpoint: 'i/gallery/posts' as const, limit: 5, -} satisfies Paging; +}; const likedPostsPagination = { endpoint: 'i/gallery/likes' as const, limit: 5, -} satisfies Paging; +}; const tagUsersPagination = computed(() => ({ endpoint: 'hashtags/users' as const, @@ -90,7 +90,7 @@ const tagUsersPagination = computed(() => ({ origin: 'combined', sort: '+follower', }, -} satisfies Paging)); +})); watch(() => props.tag, () => { if (tagsRef.value) tagsRef.value.tags.toggleContent(props.tag == null); |