2020-11-25 21:31:34 +09:00
|
|
|
<template>
|
2022-01-04 21:37:16 +09:00
|
|
|
<div class="_formRoot">
|
|
|
|
<MkKeyValue>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #key>ID</template>
|
2020-12-19 10:55:52 +09:00
|
|
|
<template #value><span class="_monospace">{{ $i.id }}</span></template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-01-04 21:37:16 +09:00
|
|
|
<FormSection>
|
|
|
|
<MkKeyValue>
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.registeredDate }}</template>
|
2020-12-19 10:55:52 +09:00
|
|
|
<template #value><MkTime :time="$i.createdAt" mode="detail"/></template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
</FormSection>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-01-04 21:37:16 +09:00
|
|
|
<FormSection v-if="stats">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #label>{{ i18n.ts.statistics }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.notesCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.notesCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.repliesCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.repliesCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.renotesCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.renotesCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.repliedCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.repliedCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.renotedCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.renotedCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.pollVotesCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.pollVotesCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.pollVotedCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.pollVotedCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.sentReactionsCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.sentReactionsCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.receivedReactionsCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.receivedReactionsCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.noteFavoritesCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.noteFavoritesCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.followingCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.followingCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.followingCount }} ({{ i18n.ts.local }})</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.localFollowingCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.followingCount }} ({{ i18n.ts.remote }})</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.remoteFollowingCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.followersCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.followersCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.followersCount }} ({{ i18n.ts.local }})</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.localFollowersCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.followersCount }} ({{ i18n.ts.remote }})</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.remoteFollowersCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.pageLikesCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.pageLikesCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.pageLikedCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.pageLikedCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.driveFilesCount }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ number(stats.driveFilesCount) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #key>{{ i18n.ts.driveUsage }}</template>
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #value>{{ bytes(stats.driveUsage) }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
</FormSection>
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-01-04 21:37:16 +09:00
|
|
|
<FormSection>
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #label>{{ i18n.ts.other }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #key>emailVerified</template>
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #value>{{ $i.emailVerified ? i18n.ts.yes : i18n.ts.no }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #key>twoFactorEnabled</template>
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #value>{{ $i.twoFactorEnabled ? i18n.ts.yes : i18n.ts.no }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #key>securityKeys</template>
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #value>{{ $i.securityKeys ? i18n.ts.yes : i18n.ts.no }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #key>usePasswordLessLogin</template>
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #value>{{ $i.usePasswordLessLogin ? i18n.ts.yes : i18n.ts.no }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #key>isModerator</template>
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #value>{{ $i.isModerator ? i18n.ts.yes : i18n.ts.no }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
<MkKeyValue oneline style="margin: 1em 0;">
|
2020-11-25 21:31:34 +09:00
|
|
|
<template #key>isAdmin</template>
|
2022-05-04 10:16:14 +09:00
|
|
|
<template #value>{{ $i.isAdmin ? i18n.ts.yes : i18n.ts.no }}</template>
|
2022-01-04 21:37:16 +09:00
|
|
|
</MkKeyValue>
|
|
|
|
</FormSection>
|
|
|
|
</div>
|
2020-11-25 21:31:34 +09:00
|
|
|
</template>
|
|
|
|
|
2022-05-04 10:16:14 +09:00
|
|
|
<script lang="ts" setup>
|
2022-06-20 17:38:49 +09:00
|
|
|
import { onMounted, ref } from 'vue';
|
2022-01-04 21:37:16 +09:00
|
|
|
import FormSection from '@/components/form/section.vue';
|
2022-08-31 00:24:33 +09:00
|
|
|
import MkKeyValue from '@/components/MkKeyValue.vue';
|
2021-11-12 02:02:25 +09:00
|
|
|
import * as os from '@/os';
|
|
|
|
import number from '@/filters/number';
|
|
|
|
import bytes from '@/filters/bytes';
|
2022-05-04 10:16:14 +09:00
|
|
|
import { $i } from '@/account';
|
|
|
|
import { i18n } from '@/i18n';
|
2022-06-20 17:38:49 +09:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-05-04 10:16:14 +09:00
|
|
|
const stats = ref<any>({});
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-05-04 10:16:14 +09:00
|
|
|
onMounted(() => {
|
|
|
|
os.api('users/stats', {
|
2022-06-20 17:38:49 +09:00
|
|
|
userId: $i!.id,
|
2022-05-04 10:16:14 +09:00
|
|
|
}).then(response => {
|
|
|
|
stats.value = response;
|
|
|
|
});
|
|
|
|
});
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.accountInfo,
|
2022-12-19 19:01:30 +09:00
|
|
|
icon: 'ti ti-info-circle',
|
2020-11-25 21:31:34 +09:00
|
|
|
});
|
|
|
|
</script>
|