mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-19 17:18:27 +09:00
31 lines
588 B
Vue
31 lines
588 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<mk-user-list :make-promise="makePromise">{{ $t('@.followers') }}</mk-user-list>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import Vue from 'vue';
|
||
|
import parseAcct from '../../../../../misc/acct/parse';
|
||
|
import i18n from '../../../i18n';
|
||
|
|
||
|
export default Vue.extend({
|
||
|
i18n: i18n(''),
|
||
|
|
||
|
data() {
|
||
|
return {
|
||
|
makePromise: cursor => this.$root.api('users/followers', {
|
||
|
...parseAcct(this.$route.params.user),
|
||
|
limit: 30,
|
||
|
cursor: cursor ? cursor : undefined
|
||
|
}).then(x => {
|
||
|
return {
|
||
|
users: x.users,
|
||
|
cursor: x.next
|
||
|
};
|
||
|
}),
|
||
|
};
|
||
|
},
|
||
|
});
|
||
|
</script>
|