From eee9a5f85310ea7042e42e6bc40ecff3b682d9fd Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Wed, 25 Jun 2025 20:26:20 +0900 Subject: enhance(frontend): ページネーションの並び順を逆にできるように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/note.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'packages/frontend/src/pages/note.vue') diff --git a/packages/frontend/src/pages/note.vue b/packages/frontend/src/pages/note.vue index 8a645e417c..ccb62749fa 100644 --- a/packages/frontend/src/pages/note.vue +++ b/packages/frontend/src/pages/note.vue @@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
@@ -34,7 +34,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
@@ -81,8 +81,8 @@ const error = ref(); const prevUserPagination: PagingCtx = { endpoint: 'users/notes', limit: 10, - baseId: props.noteId, - direction: 'older', + initialId: props.noteId, + initialDirection: 'older', params: computed(() => note.value ? ({ userId: note.value.userId, }) : undefined), @@ -91,8 +91,8 @@ const prevUserPagination: PagingCtx = { const nextUserPagination: PagingCtx = { endpoint: 'users/notes', limit: 10, - baseId: props.noteId, - direction: 'newer', + initialId: props.noteId, + initialDirection: 'newer', params: computed(() => note.value ? ({ userId: note.value.userId, }) : undefined), @@ -101,19 +101,20 @@ const nextUserPagination: PagingCtx = { const prevChannelPagination: PagingCtx = { endpoint: 'channels/timeline', limit: 10, + initialId: props.noteId, + initialDirection: 'older', params: computed(() => note.value ? ({ channelId: note.value.channelId, - untilId: note.value.id, }) : undefined), }; const nextChannelPagination: PagingCtx = { - reversed: true, endpoint: 'channels/timeline', limit: 10, + initialId: props.noteId, + initialDirection: 'newer', params: computed(() => note.value ? ({ channelId: note.value.channelId, - sinceId: note.value.id, }) : undefined), }; -- cgit v1.2.3-freya