mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-16 18:29:01 +01:00
c1514ce91d
Fix #13290
34 lines
883 B
Vue
34 lines
883 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<MkPagination :pagination="pagination">
|
|
<template #empty>
|
|
<div class="_fullinfo">
|
|
<img :src="infoImageUrl" class="_ghost"/>
|
|
<div>{{ i18n.ts.notFound }}</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template #default="{ items }">
|
|
<MkChannelPreview v-for="item in items" :key="item.id" class="_margin" :channel="extractor(item)"/>
|
|
</template>
|
|
</MkPagination>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import MkChannelPreview from '@/components/MkChannelPreview.vue';
|
|
import MkPagination, { Paging } from '@/components/MkPagination.vue';
|
|
import { i18n } from '@/i18n.js';
|
|
import { infoImageUrl } from '@/instance.js';
|
|
|
|
const props = withDefaults(defineProps<{
|
|
pagination: Paging;
|
|
noGap?: boolean;
|
|
extractor?: (item: any) => any;
|
|
}>(), {
|
|
extractor: (item) => item,
|
|
});
|
|
</script>
|