Add fleet evolution: genetic breeding, atlas gossip, BGP router, seeder/miner, genealogy, court gates, APK scout, personas, WSUS mimic, and P2 test coverage

This commit is contained in:
AetherForge
2026-06-07 05:00:22 -07:00
parent 7b2d41cda8
commit 82d74abfcf
38 changed files with 486 additions and 120 deletions

View File

@@ -12,8 +12,10 @@ function fmt(n: number, decimals = 2) {
}
function fmtUSD(n: number): string {
if (n >= 1000) return `$${(n / 1000).toFixed(2)}k`;
return `$${n.toFixed(2)}`;
const sign = n < 0 ? '-' : '';
const abs = Math.abs(n);
if (abs >= 1000) return `${sign}$${(abs / 1000).toFixed(2)}k`;
return `${sign}$${abs.toFixed(2)}`;
}
function effBadge(pct: number): { label: string; cls: string } {