web/frpc: redesign dashboard (#5145)

This commit is contained in:
fatedier
2026-01-31 12:43:31 +08:00
committed by GitHub
parent 266c492b5d
commit 886c9c2fdb
17 changed files with 1540 additions and 441 deletions

View File

@@ -28,6 +28,6 @@ export function formatFileSize(bytes: number): string {
// Prevent index out of bounds for extremely large numbers
const unit = sizes[i] || sizes[sizes.length - 1]
const val = bytes / Math.pow(k, i)
return parseFloat(val.toFixed(2)) + ' ' + unit
}