1
0
forked from mirror/misskey
This commit is contained in:
syuilo 2024-08-28 15:15:22 +09:00
parent 04fe0e6227
commit 2f741d8674
2 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
--> -->
<template> <template>
<MkPagination ref="pagingComponent" :pagination="pagination" :disableAutoLoad="disableAutoLoad"> <EmPagination ref="pagingComponent" :pagination="pagination" :disableAutoLoad="disableAutoLoad">
<template #empty> <template #empty>
<div class="_fullinfo"> <div class="_fullinfo">
<img :src="infoImageUrl" class="_ghost"/> <img :src="infoImageUrl" class="_ghost"/>
@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #default="{ items: notes }"> <template #default="{ items: notes }">
<div :class="[$style.root, { [$style.noGap]: noGap }]"> <div :class="[$style.root, { [$style.noGap]: noGap }]">
<MkDateSeparatedList <EmDateSeparatedList
ref="notes" ref="notes"
v-slot="{ item: note }" v-slot="{ item: note }"
:items="notes" :items="notes"
@ -25,17 +25,17 @@ SPDX-License-Identifier: AGPL-3.0-only
:class="$style.notes" :class="$style.notes"
> >
<EmNote :key="note._featuredId_ || note._prId_ || note.id" :class="$style.note" :note="note" :withHardMute="true"/> <EmNote :key="note._featuredId_ || note._prId_ || note.id" :class="$style.note" :note="note" :withHardMute="true"/>
</MkDateSeparatedList> </EmDateSeparatedList>
</div> </div>
</template> </template>
</MkPagination> </EmPagination>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { shallowRef } from 'vue'; import { shallowRef } from 'vue';
import EmNote from '@/components/EmNote.vue'; import EmNote from '@/components/EmNote.vue';
import MkDateSeparatedList from '@/components/MkDateSeparatedList.vue'; import EmDateSeparatedList from '@/components/EmDateSeparatedList.vue';
import MkPagination, { Paging } from '@/components/MkPagination.vue'; import EmPagination, { Paging } from '@/components/EmPagination.vue';
import { i18n } from '@/i18n.js'; import { i18n } from '@/i18n.js';
import { infoImageUrl } from '@/instance.js'; import { infoImageUrl } from '@/instance.js';
@ -48,7 +48,7 @@ const props = withDefaults(defineProps<{
ad: true, ad: true,
}); });
const pagingComponent = shallowRef<InstanceType<typeof MkPagination>>(); const pagingComponent = shallowRef<InstanceType<typeof EmPagination>>();
defineExpose({ defineExpose({
pagingComponent, pagingComponent,

View File

@ -5,18 +5,18 @@ SPDX-License-Identifier: AGPL-3.0-only
<template> <template>
<div> <div>
<MkLoading v-if="loading"/> <EmLoading v-if="loading"/>
<EmTimelineContainer v-else-if="user" :showHeader="embedParams.header"> <EmTimelineContainer v-else-if="user" :showHeader="embedParams.header">
<template #header> <template #header>
<div :class="$style.userHeader"> <div :class="$style.userHeader">
<a :href="`/@${user.username}`" target="_blank" rel="noopener noreferrer" :class="$style.avatarLink"> <a :href="`/@${user.username}`" target="_blank" rel="noopener noreferrer" :class="$style.avatarLink">
<MkAvatar :class="$style.avatar" :user="user"/> <EmAvatar :class="$style.avatar" :user="user"/>
</a> </a>
<div :class="$style.headerTitle"> <div :class="$style.headerTitle">
<I18n :src="i18n.ts.noteOf" tag="div" class="_nowrap"> <I18n :src="i18n.ts.noteOf" tag="div" class="_nowrap">
<template #user> <template #user>
<a v-if="user != null" :href="`/@${user.username}`" target="_blank" rel="noopener noreferrer"> <a v-if="user != null" :href="`/@${user.username}`" target="_blank" rel="noopener noreferrer">
<MkUserName :user="user"/> <EmUserName :user="user"/>
</a> </a>
<span v-else>{{ i18n.ts.user }}</span> <span v-else>{{ i18n.ts.user }}</span>
</template> </template>