mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-15 20:06:54 +01:00
34a32a8334
* エラー画像URLを設定可能に * Update CHANGELOG.md * 設定したエラーアイコンをprefetchするようにbase.pugを変更 * 不足していたデータを追加 * enhance(frontend): デザイン調整
29 lines
777 B
Vue
29 lines
777 B
Vue
<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';
|
|
import { infoImageUrl } from '@/instance';
|
|
|
|
const props = withDefaults(defineProps<{
|
|
pagination: Paging;
|
|
noGap?: boolean;
|
|
extractor?: (item: any) => any;
|
|
}>(), {
|
|
extractor: (item) => item,
|
|
});
|
|
</script>
|