This commit is contained in:
mattyatea 2024-01-06 20:12:48 +09:00
parent 68aab48f4e
commit bc58540e62

View file

@ -1,5 +1,5 @@
<template> <template>
<div class="_gaps_m"> <div class="_gaps_m">
<FormSection v-if="stats" first> <FormSection v-if="stats" first>
<template #label>{{ i18n.ts.statistics }}</template> <template #label>{{ i18n.ts.statistics }}</template>
<MkKeyValue oneline style="margin: 1em 0;"> <MkKeyValue oneline style="margin: 1em 0;">
@ -83,20 +83,19 @@
<template #value>{{ bytes(stats.driveUsage) }}</template> <template #value>{{ bytes(stats.driveUsage) }}</template>
</MkKeyValue> </MkKeyValue>
</FormSection> </FormSection>
</div>
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, ref ,computed } from 'vue'; import { onMounted, ref, computed } from 'vue';
import FormSection from '@/components/form/section.vue'; import FormSection from '@/components/form/section.vue';
import MkKeyValue from '@/components/MkKeyValue.vue'; import MkKeyValue from '@/components/MkKeyValue.vue';
import * as os from '@/os';
import number from '@/filters/number'; import number from '@/filters/number';
import bytes from '@/filters/bytes'; import bytes from '@/filters/bytes';
import { $i } from '@/account'; import { $i } from '@/account';
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata'; import { definePageMetadata } from '@/scripts/page-metadata';
import { misskeyApi } from '@/scripts/misskey-api.js';
const stats = ref<any>({}); const stats = ref<any>({});