feat: harden analytics dashboard

This commit is contained in:
2026-05-27 15:19:31 +08:00
parent 5e0ca6a504
commit 356039d9cf
34 changed files with 1424 additions and 879 deletions

5
lib/metrics.ts Normal file
View File

@@ -0,0 +1,5 @@
export const QUOTA_UNITS_PER_USD = 500000;
export function quotaToUsd(quota: number): number {
return quota / QUOTA_UNITS_PER_USD;
}