Expand ecash explorer capabilities

Add Fedimint discovery, dual SQLite/Postgres storage, richer review handling, and generated social imagery.
This commit is contained in:
michilis
2026-08-21 02:10:48 +02:00
parent aa1771ea20
commit 6f17b572b1
80 changed files with 7580 additions and 704 deletions
+5
View File
@@ -77,6 +77,8 @@ export interface Formatters {
serverTime(unix: number): string;
/** Grouped: 1,000,000 in English, 1.000.000 in Spanish and Dutch. */
number(n: number): string;
/** Compact: "500K" / "500 mil", for a limit quoted inside a meta description. */
compact(n: number): string;
/** A rating to one decimal, with the locale's own decimal separator. */
decimal(n: number, digits?: number): string;
}
@@ -159,6 +161,9 @@ export function formatters(t: Translator): Formatters {
number: (n) => numberFormat(tag).format(n),
compact: (n) =>
new Intl.NumberFormat(tag, { notation: 'compact', maximumFractionDigits: 1 }).format(n),
decimal: (n, digits = 1) =>
new Intl.NumberFormat(tag, {
minimumFractionDigits: digits,