mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 05:45:32 +02:00
49 lines
1.1 KiB
Vue
49 lines
1.1 KiB
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<div class="_spacer" style="--MI_SPACER-w: 700px;">
|
|
<div>
|
|
<MkPagination v-slot="{items}" :paginator="paginator" withControl>
|
|
<MkA v-for="item in items" :key="item.id" :to="`/clips/${item.id}`" :class="$style.item" class="_panel _margin">
|
|
<b>{{ item.name }}</b>
|
|
<div v-if="item.description" :class="$style.description">{{ item.description }}</div>
|
|
</MkA>
|
|
</MkPagination>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { computed, markRaw } from 'vue';
|
|
import * as Misskey from 'misskey-js';
|
|
import MkPagination from '@/components/MkPagination.vue';
|
|
import { Paginator } from '@/utility/paginator.js';
|
|
|
|
const props = defineProps<{
|
|
user: Misskey.entities.User;
|
|
}>();
|
|
|
|
const paginator = markRaw(new Paginator('users/clips', {
|
|
limit: 20,
|
|
computedParams: computed(() => ({
|
|
userId: props.user.id,
|
|
})),
|
|
}));
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.item {
|
|
display: block;
|
|
padding: 16px;
|
|
}
|
|
|
|
.description {
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: solid 0.5px var(--MI_THEME-divider);
|
|
}
|
|
</style>
|