feat: display screen resolution, content stats, and advanced metrics on dashboard

This commit is contained in:
Usman Baig
2026-01-16 22:22:02 +01:00
parent 1e2fa71e5c
commit 19392ab385
9 changed files with 263 additions and 56 deletions

14
lib/utils/format_extra.ts Normal file
View File

@@ -0,0 +1,14 @@
/**
* Format duration in seconds to "1m 30s" or "30s"
*/
export function formatDuration(seconds: number): string {
if (!seconds) return '0s'
const m = Math.floor(seconds / 60)
const s = Math.floor(seconds % 60)
if (m > 0) {
return `${m}m ${s}s`
}
return `${s}s`
}