2023-07-27 08:31:52 +03:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-11-29 05:34:39 +02:00
|
|
|
<template>
|
2023-05-19 14:52:15 +03:00
|
|
|
<MkSpacer :contentMax="700">
|
|
|
|
<div>
|
|
|
|
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
|
|
|
|
<MkA v-for="item in items" :key="item.id" :to="`/clips/${item.id}`" :class="$style.item" class="_panel _margin">
|
2022-12-27 07:19:43 +02:00
|
|
|
<b>{{ item.name }}</b>
|
2023-05-19 14:52:15 +03:00
|
|
|
<div v-if="item.description" :class="$style.description">{{ item.description }}</div>
|
2022-12-27 07:19:43 +02:00
|
|
|
</MkA>
|
|
|
|
</MkPagination>
|
|
|
|
</div>
|
|
|
|
</MkSpacer>
|
2020-11-29 05:34:39 +02:00
|
|
|
</template>
|
|
|
|
|
2022-08-31 17:12:22 +03:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed } from 'vue';
|
2023-09-04 07:33:38 +03:00
|
|
|
import * as Misskey from 'misskey-js';
|
2022-09-06 12:21:49 +03:00
|
|
|
import MkPagination from '@/components/MkPagination.vue';
|
2020-11-29 05:34:39 +02:00
|
|
|
|
2022-08-31 17:12:22 +03:00
|
|
|
const props = defineProps<{
|
2023-09-04 07:33:38 +03:00
|
|
|
user: Misskey.entities.User;
|
2022-08-31 17:12:22 +03:00
|
|
|
}>();
|
2020-11-29 05:34:39 +02:00
|
|
|
|
2022-08-31 17:12:22 +03:00
|
|
|
const pagination = {
|
|
|
|
endpoint: 'users/clips' as const,
|
|
|
|
limit: 20,
|
|
|
|
params: computed(() => ({
|
|
|
|
userId: props.user.id,
|
|
|
|
})),
|
|
|
|
};
|
2020-11-29 05:34:39 +02:00
|
|
|
</script>
|
|
|
|
|
2023-05-19 14:52:15 +03:00
|
|
|
<style lang="scss" module>
|
|
|
|
.item {
|
|
|
|
display: block;
|
|
|
|
padding: 16px;
|
|
|
|
}
|
2020-11-29 05:34:39 +02:00
|
|
|
|
2023-05-19 14:52:15 +03:00
|
|
|
.description {
|
|
|
|
margin-top: 8px;
|
|
|
|
padding-top: 8px;
|
|
|
|
border-top: solid 0.5px var(--divider);
|
2022-12-27 07:19:43 +02:00
|
|
|
}
|
2020-11-29 05:34:39 +02:00
|
|
|
</style>
|