1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-27 22:38:39 +09:00

register timeline ui as a container

This commit is contained in:
kakkokari-gtyih 2024-08-20 16:25:01 +09:00
parent 0725d95d49
commit e4ef400923
4 changed files with 9 additions and 9 deletions

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div>
<MkLoading v-if="loading"/>
<XEmTimelineUI v-else-if="clip" :showHeader="embedParams.header">
<MkEmTimelineContainer v-else-if="clip" :showHeader="embedParams.header">
<template #header>
<div :class="$style.clipHeader">
<div :class="$style.headerClipIconRoot">
@ -33,7 +33,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:ad="false"
/>
</template>
</XEmTimelineUI>
</MkEmTimelineContainer>
<XNotFound v-else/>
</div>
</template>
@ -43,7 +43,7 @@ import { ref, computed, shallowRef, inject, onActivated } from 'vue';
import * as Misskey from 'misskey-js';
import MkNotes from '@/components/MkNotes.vue';
import XNotFound from '@/pages/not-found.vue';
import XEmTimelineUI from '@/embed/ui/timeline.vue';
import MkEmTimelineContainer from '@/embed/components/MkEmTimelineContainer.vue';
import type { Paging } from '@/components/MkPagination.vue';
import { misskeyApi } from '@/scripts/misskey-api.js';
import { i18n } from '@/i18n.js';

View File

@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div>
<XEmTimelineUI v-if="tag" :showHeader="embedParams.header">
<MkEmTimelineContainer v-if="tag" :showHeader="embedParams.header">
<template #header>
<div :class="$style.clipHeader">
<div :class="$style.headerClipIconRoot">
@ -32,7 +32,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:ad="false"
/>
</template>
</XEmTimelineUI>
</MkEmTimelineContainer>
<XNotFound v-else/>
</div>
</template>
@ -41,7 +41,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import { computed, shallowRef, inject, onActivated } from 'vue';
import MkNotes from '@/components/MkNotes.vue';
import XNotFound from '@/pages/not-found.vue';
import XEmTimelineUI from '@/embed/ui/timeline.vue';
import MkEmTimelineContainer from '@/embed/components/MkEmTimelineContainer.vue';
import type { Paging } from '@/components/MkPagination.vue';
import { i18n } from '@/i18n.js';
import { instance } from '@/instance.js';

View File

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div>
<MkLoading v-if="loading"/>
<XEmTimelineUI v-else-if="user" :showHeader="embedParams.header">
<MkEmTimelineContainer v-else-if="user" :showHeader="embedParams.header">
<template #header>
<div :class="$style.userHeader">
<a :href="`/@${user.username}`" target="_blank" rel="noopener noreferrer" :class="$style.avatarLink">
@ -40,7 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:ad="false"
/>
</template>
</XEmTimelineUI>
</MkEmTimelineContainer>
<XNotFound v-else/>
</div>
</template>
@ -50,7 +50,7 @@ import { ref, computed, shallowRef, inject, onActivated } from 'vue';
import * as Misskey from 'misskey-js';
import MkNotes from '@/components/MkNotes.vue';
import XNotFound from '@/pages/not-found.vue';
import XEmTimelineUI from '@/embed/ui/timeline.vue';
import MkEmTimelineContainer from '@/embed/components/MkEmTimelineContainer.vue';
import type { Paging } from '@/components/MkPagination.vue';
import { misskeyApi } from '@/scripts/misskey-api.js';
import { i18n } from '@/i18n.js';