Emdash source with visual editor image upload fix

Fixes:
1. media.ts: wrap placeholder generation in try-catch
2. toolbar.ts: check r.ok, display error message in popover
This commit is contained in:
2026-05-03 10:44:54 +07:00
parent 78f81bebb6
commit 2d1be52177
2352 changed files with 662964 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
-- Perf monitor D1 schema
CREATE TABLE IF NOT EXISTS perf_results (
id TEXT PRIMARY KEY,
sha TEXT,
pr_number INTEGER,
route TEXT NOT NULL,
region TEXT NOT NULL,
cold_ttfb_ms REAL,
warm_ttfb_ms REAL,
p95_ttfb_ms REAL,
status_code INTEGER,
cf_colo TEXT,
cf_placement TEXT,
timestamp TEXT NOT NULL DEFAULT (datetime('now')),
source TEXT NOT NULL, -- 'deploy' | 'cron' | 'manual'
site TEXT NOT NULL DEFAULT 'blog'
);
CREATE INDEX IF NOT EXISTS idx_perf_route_region_ts ON perf_results(route, region, timestamp);
CREATE INDEX IF NOT EXISTS idx_perf_sha ON perf_results(sha);
CREATE INDEX IF NOT EXISTS idx_perf_pr ON perf_results(pr_number);
CREATE INDEX IF NOT EXISTS idx_perf_source_ts ON perf_results(source, timestamp);
CREATE INDEX IF NOT EXISTS idx_perf_timestamp ON perf_results(timestamp);
CREATE INDEX IF NOT EXISTS idx_perf_site_ts ON perf_results(site, timestamp);
CREATE INDEX IF NOT EXISTS idx_perf_site_route_region_ts ON perf_results(site, route, region, timestamp);