2020-11-25 06:31:34 -06:00
|
|
|
<template>
|
2022-01-04 06:37:16 -06:00
|
|
|
<div class="_formRoot">
|
|
|
|
<MkKeyValue>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #key>ID</template>
|
2020-12-18 19:55:52 -06:00
|
|
|
<template #value><span class="_monospace">{{ $i.id }}</span></template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
2020-11-25 06:31:34 -06:00
|
|
|
|
2022-01-04 06:37:16 -06:00
|
|
|
<FormSection>
|
|
|
|
<MkKeyValue>
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.registeredDate }}</template>
|
2020-12-18 19:55:52 -06:00
|
|
|
<template #value><MkTime :time="$i.createdAt" mode="detail"/></template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
</FormSection>
|
2020-11-25 06:31:34 -06:00
|
|
|
|
2022-01-04 06:37:16 -06:00
|
|
|
<FormSection v-if="stats">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #label>{{ $ts.statistics }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.notesCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.notesCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.repliesCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.repliesCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.renotesCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.renotesCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.repliedCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.repliedCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.renotedCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.renotedCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.pollVotesCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.pollVotesCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.pollVotedCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.pollVotedCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.sentReactionsCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.sentReactionsCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.receivedReactionsCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.receivedReactionsCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.noteFavoritesCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.noteFavoritesCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.followingCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.followingCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.followingCount }} ({{ $ts.local }})</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.localFollowingCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.followingCount }} ({{ $ts.remote }})</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.remoteFollowingCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.followersCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.followersCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.followersCount }} ({{ $ts.local }})</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.localFollowersCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.followersCount }} ({{ $ts.remote }})</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.remoteFollowersCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.pageLikesCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.pageLikesCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.pageLikedCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.pageLikedCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.driveFilesCount }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ number(stats.driveFilesCount) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #key>{{ $ts.driveUsage }}</template>
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #value>{{ bytes(stats.driveUsage) }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
</FormSection>
|
2020-11-25 06:31:34 -06:00
|
|
|
|
2022-01-04 06:37:16 -06:00
|
|
|
<FormSection>
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #label>{{ $ts.other }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #key>emailVerified</template>
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #value>{{ $i.emailVerified ? $ts.yes : $ts.no }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #key>twoFactorEnabled</template>
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #value>{{ $i.twoFactorEnabled ? $ts.yes : $ts.no }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #key>securityKeys</template>
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #value>{{ $i.securityKeys ? $ts.yes : $ts.no }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #key>usePasswordLessLogin</template>
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #value>{{ $i.usePasswordLessLogin ? $ts.yes : $ts.no }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #key>isModerator</template>
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #value>{{ $i.isModerator ? $ts.yes : $ts.no }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 06:31:34 -06:00
|
|
|
<template #key>isAdmin</template>
|
2020-12-25 19:47:36 -06:00
|
|
|
<template #value>{{ $i.isAdmin ? $ts.yes : $ts.no }}</template>
|
2022-01-04 06:37:16 -06:00
|
|
|
</MkKeyValue>
|
|
|
|
</FormSection>
|
|
|
|
</div>
|
2020-11-25 06:31:34 -06:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineAsyncComponent, defineComponent } from 'vue';
|
2022-01-04 06:37:16 -06:00
|
|
|
import FormSection from '@/components/form/section.vue';
|
|
|
|
import MkKeyValue from '@/components/key-value.vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import * as os from '@/os';
|
|
|
|
import number from '@/filters/number';
|
|
|
|
import bytes from '@/filters/bytes';
|
|
|
|
import * as symbols from '@/symbols';
|
2020-11-25 06:31:34 -06:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
2022-01-04 06:37:16 -06:00
|
|
|
FormSection,
|
|
|
|
MkKeyValue,
|
2020-11-25 06:31:34 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
emits: ['info'],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
2021-04-09 22:54:12 -05:00
|
|
|
[symbols.PAGE_INFO]: {
|
2020-12-25 19:47:36 -06:00
|
|
|
title: this.$ts.accountInfo,
|
2021-04-20 09:22:59 -05:00
|
|
|
icon: 'fas fa-info-circle'
|
2020-11-25 06:31:34 -06:00
|
|
|
},
|
|
|
|
stats: null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
os.api('users/stats', {
|
2020-12-18 19:55:52 -06:00
|
|
|
userId: this.$i.id
|
2020-11-25 06:31:34 -06:00
|
|
|
}).then(stats => {
|
|
|
|
this.stats = stats;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
number,
|
|
|
|
bytes,
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|