2019-02-15 23:50:58 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
2019-02-16 02:27:53 +02:00
|
|
|
<mk-user-list :make-promise="verifiedUsers">
|
2019-02-15 23:50:58 +02:00
|
|
|
<span><fa :icon="faBookmark"/> {{ $t('verified-users') }}</span>
|
|
|
|
</mk-user-list>
|
2019-02-16 02:27:53 +02:00
|
|
|
<mk-user-list :make-promise="popularUsers">
|
2019-02-15 23:50:58 +02:00
|
|
|
<span><fa :icon="faChartLine"/> {{ $t('popular-users') }}</span>
|
|
|
|
</mk-user-list>
|
2019-02-16 02:27:53 +02:00
|
|
|
<mk-user-list :make-promise="recentlyUpdatedUsers">
|
2019-02-15 23:50:58 +02:00
|
|
|
<span><fa :icon="faCommentAlt"/> {{ $t('recently-updated-users') }}</span>
|
|
|
|
</mk-user-list>
|
2019-02-17 10:53:51 +02:00
|
|
|
<mk-user-list :make-promise="recentlyRegisteredUsers">
|
|
|
|
<span><fa :icon="faPlus"/> {{ $t('recently-registered-users') }}</span>
|
|
|
|
</mk-user-list>
|
2019-02-15 23:50:58 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import i18n from '../../../i18n';
|
2019-02-17 10:53:51 +02:00
|
|
|
import { faChartLine, faPlus } from '@fortawesome/free-solid-svg-icons';
|
2019-02-15 23:50:58 +02:00
|
|
|
import { faBookmark, faCommentAlt } from '@fortawesome/free-regular-svg-icons';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
i18n: i18n('common/views/pages/explore.vue'),
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
2019-02-16 02:27:53 +02:00
|
|
|
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
|
|
|
|
}),
|
2019-02-17 10:53:51 +02:00
|
|
|
recentlyRegisteredUsers: () => this.$root.api('users', {
|
|
|
|
origin: 'local',
|
|
|
|
state: 'alive',
|
|
|
|
sort: '+createdAt',
|
|
|
|
limit: 10
|
|
|
|
}),
|
|
|
|
faBookmark, faChartLine, faCommentAlt, faPlus
|
2019-02-15 23:50:58 +02:00
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
</style>
|