1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-15 07:08:56 +09:00
cherrypick/packages/frontend/src/pages/user/pages.vue
2023-12-27 15:55:09 +09:00

32 lines
766 B
Vue

<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<MkSpacer :contentMax="700">
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
<MkPagePreview v-for="page in items" :key="page.id" :page="page" class="_margin"/>
</MkPagination>
</MkSpacer>
</template>
<script lang="ts" setup>
import { computed } from 'vue';
import * as Misskey from 'misskey-js';
import MkPagePreview from '@/components/MkPagePreview.vue';
import MkPagination from '@/components/MkPagination.vue';
const props = defineProps<{
user: Misskey.entities.User;
}>();
const pagination = {
endpoint: 'users/pages' as const,
limit: 20,
params: computed(() => ({
userId: props.user.id,
})),
};
</script>