fix: fix building UI project (#2794)

* fix: fix building UI project

* fix makefile

* inputspec instead of config

---------

Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
Alex Inkin
2024-12-03 03:44:27 +04:00
committed by GitHub
parent 75e7556bfa
commit 9f640b24b3
54 changed files with 9188 additions and 6748 deletions

View File

@@ -31,15 +31,6 @@ export class DurationToSecondsPipe implements PipeTransform {
}
}
export function convertBytes(bytes: number) {
if (bytes === 0) return '0 Bytes'
const k = 1000
const i = Math.floor(Math.log(bytes) / Math.log(k))
return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + ' ' + sizes[i]
}
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
const unitsToSeconds: Record<string, number> = {