2023-07-27 14:31:52 +09:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2023-05-08 17:29:19 +09:00
|
|
|
<template>
|
|
|
|
<div class="_gaps">
|
|
|
|
<div style="text-align: center;">{{ i18n.ts._initialAccountSetting.followUsers }}</div>
|
|
|
|
|
2023-05-19 13:58:09 +09:00
|
|
|
<MkFolder :defaultOpen="true">
|
2023-05-08 17:29:19 +09:00
|
|
|
<template #label>{{ i18n.ts.recommended }}</template>
|
|
|
|
|
|
|
|
<MkPagination :pagination="pinnedUsers">
|
|
|
|
<template #default="{ items }">
|
|
|
|
<div :class="$style.users">
|
|
|
|
<XUser v-for="item in items" :key="item.id" :user="item"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</MkPagination>
|
|
|
|
</MkFolder>
|
|
|
|
|
2023-05-19 13:58:09 +09:00
|
|
|
<MkFolder :defaultOpen="true">
|
2023-05-08 17:29:19 +09:00
|
|
|
<template #label>{{ i18n.ts.popularUsers }}</template>
|
|
|
|
|
|
|
|
<MkPagination :pagination="popularUsers">
|
|
|
|
<template #default="{ items }">
|
|
|
|
<div :class="$style.users">
|
|
|
|
<XUser v-for="item in items" :key="item.id" :user="item"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</MkPagination>
|
|
|
|
</MkFolder>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed, ref, watch } from 'vue';
|
2023-09-19 16:37:43 +09:00
|
|
|
import { instance } from '@/instance.js';
|
|
|
|
import { i18n } from '@/i18n.js';
|
2023-05-08 17:29:19 +09:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
|
|
|
import MkFolder from '@/components/MkFolder.vue';
|
|
|
|
import XUser from '@/components/MkUserSetupDialog.User.vue';
|
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
2023-09-19 16:37:43 +09:00
|
|
|
import * as os from '@/os.js';
|
|
|
|
import { $i } from '@/account.js';
|
2023-05-08 17:29:19 +09:00
|
|
|
import MkPagination from '@/components/MkPagination.vue';
|
|
|
|
|
|
|
|
const pinnedUsers = { endpoint: 'pinned-users', noPaging: true };
|
|
|
|
|
|
|
|
const popularUsers = { endpoint: 'users', limit: 10, noPaging: true, params: {
|
|
|
|
state: 'alive',
|
|
|
|
origin: 'local',
|
|
|
|
sort: '+follower',
|
|
|
|
} };
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" module>
|
|
|
|
.users {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
|
|
grid-gap: var(--margin);
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
</style>
|