Almost all sections with mock data

This commit is contained in:
2026-02-16 14:41:01 -06:00
parent 1761dcdfe8
commit 4235f640d9
43 changed files with 2782 additions and 4 deletions

View File

@@ -24,6 +24,14 @@ export function formatUptime(seconds: number): string {
return `${minutes}m`
}
export function formatDurationSeconds(seconds: number): string {
const h = Math.floor(seconds / 3600)
const m = Math.floor((seconds % 3600) / 60)
const s = Math.floor(seconds % 60)
const pad = (n: number) => n.toString().padStart(2, '0')
return `${pad(h)}:${pad(m)}:${pad(s)}`
}
export function formatDate(date: Date | string): string {
const d = new Date(date)
return d.toLocaleDateString('es-MX', {