2023-07-27 05:31:52 +00:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2023-05-19 01:06:12 +00:00
|
|
|
<template>
|
|
|
|
<MkStickyContainer>
|
|
|
|
<MkSpacer :contentMax="700">
|
|
|
|
<div>
|
|
|
|
<MkPagination v-slot="{items}" ref="pagingComponent" :pagination="pagination" class="lists">
|
|
|
|
<MkA v-for="list in items" :key="list.id" class="_panel" :class="$style.list" :to="`/list/${ list.id }`">
|
|
|
|
<div>{{ list.name }}</div>
|
|
|
|
<MkAvatars :userIds="list.userIds"/>
|
|
|
|
</MkA>
|
|
|
|
</MkPagination>
|
|
|
|
</div>
|
|
|
|
</MkSpacer>
|
|
|
|
</MkStickyContainer>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import {} from 'vue';
|
|
|
|
import * as misskey from 'misskey-js';
|
|
|
|
import MkPagination from '@/components/MkPagination.vue';
|
|
|
|
import MkStickyContainer from '@/components/global/MkStickyContainer.vue';
|
|
|
|
import MkSpacer from '@/components/global/MkSpacer.vue';
|
|
|
|
import MkAvatars from '@/components/MkAvatars.vue';
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
user: misskey.entities.UserDetailed;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const pagination = {
|
|
|
|
endpoint: 'users/lists/list' as const,
|
|
|
|
noPaging: true,
|
|
|
|
limit: 10,
|
|
|
|
params: {
|
|
|
|
userId: props.user.id,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" module>
|
|
|
|
.list {
|
|
|
|
display: block;
|
|
|
|
padding: 16px;
|
|
|
|
border: solid 1px var(--divider);
|
|
|
|
border-radius: 6px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: solid 1px var(--accent);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|