Client - add application administration

This commit is contained in:
Sam
2021-10-24 20:13:28 +02:00
parent 04cf43cfd2
commit 2ba931dcf7
20 changed files with 351 additions and 28 deletions

View File

@ -12,3 +12,8 @@ export const getReadableFileSize = (
const suffix = suffixes[i]
return asText ? `${size}${suffix}` : { size, suffix }
}
export const getFileSizeInMB = (fileSize: number): number => {
const value = fileSize / 1048576
return (!fileSize && 0) || +value.toFixed(2)
}