파일 업로드/다운로드 현황을 모두 볼 수 있는 페이지 구현

This commit is contained in:
static
2025-01-18 10:26:35 +09:00
parent bde090c464
commit 811713cd03
21 changed files with 322 additions and 52 deletions

View File

@@ -1,7 +1,3 @@
import { formatFileSize } from "$lib/modules/util";
export { formatDateTime } from "$lib/modules/util";
export enum SortBy {
NAME_ASC,
NAME_DESC,
@@ -31,11 +27,3 @@ export const sortEntries = <T extends { name?: string }>(
entries.sort((a, b) => sortFunc(a.name, b.name));
};
export const formatUploadProgress = (progress?: number) => {
return `${Math.floor((progress ?? 0) * 100)}%`;
};
export const formatUploadRate = (rate?: number) => {
return `${formatFileSize((rate ?? 0) / 8)}/s`;
};