From 8b2252a986be5f65a8792ea5bab0f97cf64d7565 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Tue, 24 Oct 2023 18:52:47 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend):=20=EC=9C=A0=EC=A0=80=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_CHERRYPICK.md | 3 +++ packages/frontend/src/pages/user/home.vue | 7 ++----- .../frontend/src/pages/user/index.timeline.vue | 16 +++++++++++++--- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index 81e989999f..33e41ef8fd 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -32,6 +32,9 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE - Feat: 본문 미리보기의 프로필을 표시하지 않도록 설정할 수 있음 - Enhance: 노트 작성 폼에서 노트를 게시한 뒤에 textarea의 높이를 원래대로 되돌리도록 - Enhance: 노트 상세 페이지의 답글 목록 개선 +- Enhance: 유저 페이지 개선 + - 요약 탭의 하이라이트를 제거 + - 노트 탭으로 하이라이트를 이동 - Fix: 외부 리소스 설치 페이지에서 페이지 캐시가 작동하는 문제 수정 (misskey-dev/misskey#12105) ### Server diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index cae0c49a1d..a8f1d6e25e 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -148,10 +148,7 @@ SPDX-License-Identifier: AGPL-3.0-only -
-
{{ i18n.ts.featured }}
- -
+
@@ -237,7 +234,7 @@ watch($$(moderationNote), async () => { }); const pagination = { - endpoint: 'users/featured-notes' as const, + endpoint: 'users/notes' as const, limit: 10, params: computed(() => ({ userId: props.user.id, diff --git a/packages/frontend/src/pages/user/index.timeline.vue b/packages/frontend/src/pages/user/index.timeline.vue index 71a61de4c0..01d9dad254 100644 --- a/packages/frontend/src/pages/user/index.timeline.vue +++ b/packages/frontend/src/pages/user/index.timeline.vue @@ -10,10 +10,12 @@ SPDX-License-Identifier: AGPL-3.0-only + - + + @@ -29,10 +31,10 @@ const props = defineProps<{ user: Misskey.entities.UserDetailed; }>(); -const include = ref('all'); +const include = ref(null); const pagination = { - endpoint: 'users/notes' as const, + endpoint: include.value === 'featured' ? 'users/featured-notes' : 'users/notes' as const, limit: 10, params: computed(() => ({ userId: props.user.id, @@ -42,6 +44,14 @@ const pagination = { withFiles: include.value === 'files', })), }; + +const featuredPagination = { + endpoint: 'users/featured-notes' as const, + limit: 10, + params: computed(() => ({ + userId: props.user.id, + })), +};