website: snapshot

This commit is contained in:
nym21
2026-02-02 12:44:16 +01:00
parent f7d7c5704a
commit da923e409a
23 changed files with 2537 additions and 619 deletions

View File

@@ -108,6 +108,11 @@ export function initOptions(brk) {
for (let i = 0; i < arr.length; i++) {
const blueprint = arr[i];
// Check for undefined metric
if (!blueprint.metric) {
throw new Error(`Blueprint has undefined metric: ${blueprint.title}`);
}
// Check for price pattern blueprint (has dollars/sats sub-metrics)
// Use unknown cast for safe property access check
const maybePriceMetric = /** @type {{ dollars?: AnyMetricPattern, sats?: AnyMetricPattern }} */ (