mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-26 20:48:11 +09:00
51 lines
1.2 KiB
Vue
51 lines
1.2 KiB
Vue
<template>
|
|
<div>
|
|
<mk-user-list :make-promise="verifiedUsers">
|
|
<span><fa :icon="faBookmark"/> {{ $t('verified-users') }}</span>
|
|
</mk-user-list>
|
|
<mk-user-list :make-promise="popularUsers">
|
|
<span><fa :icon="faChartLine"/> {{ $t('popular-users') }}</span>
|
|
</mk-user-list>
|
|
<mk-user-list :make-promise="recentlyUpdatedUsers">
|
|
<span><fa :icon="faCommentAlt"/> {{ $t('recently-updated-users') }}</span>
|
|
</mk-user-list>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import i18n from '../../../i18n';
|
|
import { faChartLine } from '@fortawesome/free-solid-svg-icons';
|
|
import { faBookmark, faCommentAlt } from '@fortawesome/free-regular-svg-icons';
|
|
|
|
export default Vue.extend({
|
|
i18n: i18n('common/views/pages/explore.vue'),
|
|
|
|
data() {
|
|
return {
|
|
verifiedUsers: () => this.$root.api('users', {
|
|
state: 'verified',
|
|
origin: 'local',
|
|
sort: '+follower',
|
|
limit: 10
|
|
}),
|
|
popularUsers: () => this.$root.api('users', {
|
|
state: 'alive',
|
|
origin: 'local',
|
|
sort: '+follower',
|
|
limit: 10
|
|
}),
|
|
recentlyUpdatedUsers: () => this.$root.api('users', {
|
|
origin: 'local',
|
|
sort: '+updatedAt',
|
|
limit: 10
|
|
}),
|
|
faBookmark, faChartLine, faCommentAlt
|
|
};
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
</style>
|