2023-07-27 07:31:52 +02:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2023-04-11 00:42:27 +02:00
|
|
|
<template>
|
|
|
|
<MkPagination :pagination="pagination">
|
|
|
|
<template #empty>
|
|
|
|
<div class="_fullinfo">
|
2023-06-09 07:00:53 +02:00
|
|
|
<img :src="infoImageUrl" class="_ghost"/>
|
2023-04-11 00:42:27 +02:00
|
|
|
<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';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
import { infoImageUrl } from '@/instance.js';
|
2023-04-11 00:42:27 +02:00
|
|
|
|
|
|
|
const props = withDefaults(defineProps<{
|
|
|
|
pagination: Paging;
|
|
|
|
noGap?: boolean;
|
|
|
|
extractor?: (item: any) => any;
|
|
|
|
}>(), {
|
|
|
|
extractor: (item) => item,
|
|
|
|
});
|
|
|
|
</script>
|