This commit is contained in:
ThatOneCalculator 2023-02-13 19:54:06 -08:00
parent 1b69006040
commit ac90543382
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 30 additions and 30 deletions

View file

@ -1,6 +1,6 @@
<template> <template>
<div :class="$style.root"> <div :class="$style.root">
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Chart</template> <template #header>Chart</template>
<div :class="$style.chart"> <div :class="$style.chart">
<div class="selects"> <div class="selects">
@ -34,9 +34,9 @@
<MkChart :src="chartSrc" :span="chartSpan" :limit="chartLimit" :detailed="true"></MkChart> <MkChart :src="chartSrc" :span="chartSpan" :limit="chartLimit" :detailed="true"></MkChart>
</div> </div>
</div> </div>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Active users heatmap</template> <template #header>Active users heatmap</template>
<MkSelect v-model="heatmapSrc" style="margin: 0 0 12px 0;"> <MkSelect v-model="heatmapSrc" style="margin: 0 0 12px 0;">
<option value="active-users">Active users</option> <option value="active-users">Active users</option>
@ -48,16 +48,16 @@
<div class="_panel" :class="$style.heatmap"> <div class="_panel" :class="$style.heatmap">
<MkHeatmap :src="heatmapSrc"/> <MkHeatmap :src="heatmapSrc"/>
</div> </div>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Retention rate</template> <template #header>Retention rate</template>
<div class="_panel" :class="$style.retention"> <div class="_panel" :class="$style.retention">
<MkRetentionHeatmap/> <MkRetentionHeatmap/>
</div> </div>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Federation</template> <template #header>Federation</template>
<div :class="$style.federation"> <div :class="$style.federation">
<div class="pies"> <div class="pies">
@ -71,7 +71,7 @@
</div> </div>
</div> </div>
</div> </div>
</MkFoldableSection> </MkFolder>
</div> </div>
</template> </template>
@ -84,7 +84,7 @@ import { useChartTooltip } from '@/scripts/use-chart-tooltip';
import * as os from '@/os'; import * as os from '@/os';
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import MkHeatmap from '@/components/MkHeatmap.vue'; import MkHeatmap from '@/components/MkHeatmap.vue';
import MkFoldableSection from '@/components/MkFoldableSection.vue'; import MkFolder from '@/components/MkFolder.vue';
import MkRetentionHeatmap from '@/components/MkRetentionHeatmap.vue'; import MkRetentionHeatmap from '@/components/MkRetentionHeatmap.vue';
import { initChart } from '@/scripts/init-chart'; import { initChart } from '@/scripts/init-chart';

View file

@ -1,55 +1,55 @@
<template> <template>
<MkSpacer :content-max="1000"> <MkSpacer :content-max="1000">
<div ref="rootEl" class="edbbcaef"> <div ref="rootEl" class="edbbcaef">
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Stats</template> <template #header>Stats</template>
<XStats/> <XStats/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Active users</template> <template #header>Active users</template>
<XActiveUsers/> <XActiveUsers/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Heatmap</template> <template #header>Heatmap</template>
<XHeatmap/> <XHeatmap/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Moderators</template> <template #header>Moderators</template>
<XModerators/> <XModerators/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Federation</template> <template #header>Federation</template>
<XFederation/> <XFederation/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Instances</template> <template #header>Instances</template>
<XInstances/> <XInstances/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Ap requests</template> <template #header>Ap requests</template>
<XApRequests/> <XApRequests/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>New users</template> <template #header>New users</template>
<XUsers/> <XUsers/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Deliver queue</template> <template #header>Deliver queue</template>
<XQueue domain="deliver"/> <XQueue domain="deliver"/>
</MkFoldableSection> </MkFolder>
<MkFoldableSection class="item"> <MkFolder class="item">
<template #header>Inbox queue</template> <template #header>Inbox queue</template>
<XQueue domain="inbox"/> <XQueue domain="inbox"/>
</MkFoldableSection> </MkFolder>
</div> </div>
</MkSpacer> </MkSpacer>
</template> </template>
@ -73,7 +73,7 @@ import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata'; import { definePageMetadata } from '@/scripts/page-metadata';
import { defaultStore } from '@/store'; import { defaultStore } from '@/store';
import MkFileListForAdmin from '@/components/MkFileListForAdmin.vue'; import MkFileListForAdmin from '@/components/MkFileListForAdmin.vue';
import MkFoldableSection from '@/components/MkFoldableSection.vue'; import MkFolder from '@/components/MkFolder.vue';
const rootEl = $shallowRef<HTMLElement>(); const rootEl = $shallowRef<HTMLElement>();
let serverInfo: any = $ref(null); let serverInfo: any = $ref(null);