summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-02-12 11:10:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-02-12 11:10:37 +0900
commite98740c28516414fc83d6939c68a8c72958fd861 (patch)
treeb7ac336946acc358d72853c2926f5d6838e78a6f
parentclean up (diff)
downloadmisskey-e98740c28516414fc83d6939c68a8c72958fd861.tar.gz
misskey-e98740c28516414fc83d6939c68a8c72958fd861.tar.bz2
misskey-e98740c28516414fc83d6939c68a8c72958fd861.zip
enhance(client): ユーザーのホーム画面にもTLを表示
-rw-r--r--packages/frontend/src/pages/user/home.vue10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue
index 8948e85ea4..6d942d4391 100644
--- a/packages/frontend/src/pages/user/home.vue
+++ b/packages/frontend/src/pages/user/home.vue
@@ -100,6 +100,7 @@
<XPhotos :key="user.id" :user="user"/>
<XActivity :key="user.id" :user="user"/>
</template>
+ <XNotes :no-gap="true" :pagination="pagination"/>
</div>
</div>
<div v-if="!narrow" class="sub _gaps" style="container-type: inline-size;">
@@ -132,6 +133,7 @@ import { i18n } from '@/i18n';
import { $i } from '@/account';
import { dateString } from '@/filters/date';
import { confetti } from '@/scripts/confetti';
+import XNotes from '@/components/MkNotes.vue';
const XPhotos = defineAsyncComponent(() => import('./index.photos.vue'));
const XActivity = defineAsyncComponent(() => import('./index.activity.vue'));
@@ -148,6 +150,14 @@ let narrow = $ref<null | boolean>(null);
let rootEl = $ref<null | HTMLElement>(null);
let bannerEl = $ref<null | HTMLElement>(null);
+const pagination = {
+ endpoint: 'users/notes' as const,
+ limit: 10,
+ params: computed(() => ({
+ userId: props.user.id,
+ })),
+};
+
const style = $computed(() => {
if (props.user.bannerUrl == null) return {};
return {