From 390602837bf85a01e0c2f91deb3bab6770a87f0d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 16 Dec 2023 11:56:58 +0900 Subject: [PATCH] enhance(frontend): tweak user home page --- packages/frontend/src/pages/user/home.vue | 12 +---- .../src/pages/user/index.timeline.vue | 48 ++++++++++--------- packages/frontend/src/pages/user/index.vue | 4 +- 3 files changed, 31 insertions(+), 33 deletions(-) diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index a0163bfc6..a87e03e76 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -136,9 +136,8 @@ SPDX-License-Identifier: AGPL-3.0-only
-
{{ i18n.ts.featured }}
- +
@@ -193,6 +192,7 @@ function calcAge(birthdate: string): number { const XFiles = defineAsyncComponent(() => import('./index.files.vue')); const XActivity = defineAsyncComponent(() => import('./index.activity.vue')); +const XTimeline = defineAsyncComponent(() => import('./index.timeline.vue')); const props = withDefaults(defineProps<{ user: Misskey.entities.UserDetailed; @@ -219,14 +219,6 @@ watch(moderationNote, async () => { await os.api('admin/update-user-note', { userId: props.user.id, text: moderationNote.value }); }); -const pagination = { - endpoint: 'users/featured-notes' as const, - limit: 10, - params: computed(() => ({ - userId: props.user.id, - })), -}; - const style = computed(() => { if (props.user.bannerUrl == null) return {}; return { diff --git a/packages/frontend/src/pages/user/index.timeline.vue b/packages/frontend/src/pages/user/index.timeline.vue index 6cf5bcf91..e5a0f49e3 100644 --- a/packages/frontend/src/pages/user/index.timeline.vue +++ b/packages/frontend/src/pages/user/index.timeline.vue @@ -4,18 +4,17 @@ SPDX-License-Identifier: AGPL-3.0-only -->