chore: minor admin pages refactorings (#24160)

This commit is contained in:
Daniel Dietzler
2025-11-25 13:57:30 +01:00
committed by GitHub
parent 2801a6e672
commit 939d2c8b27
3 changed files with 31 additions and 46 deletions

View File

@@ -7,20 +7,11 @@
import { mdiCameraIris, mdiChartPie, mdiPlayCircle } from '@mdi/js';
import { t } from 'svelte-i18n';
interface Props {
stats?: ServerStatsResponseDto;
}
type Props = {
stats: ServerStatsResponseDto;
};
let {
stats = {
photos: 0,
videos: 0,
usage: 0,
usagePhotos: 0,
usageVideos: 0,
usageByUser: [],
},
}: Props = $props();
const { stats }: Props = $props();
const zeros = (value: number) => {
const maxLength = 13;