From 13beacbc5a7e1c28f3892de4d87573afc6f7eb86 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 18 Mar 2026 20:20:25 +0400 Subject: [PATCH] chore: remove us-east and ap-southeast regions from UI --- apps/web/src/routes/dashboard.ts | 2 -- apps/web/src/utils/sparkline.ts | 1 - apps/web/src/views/detail.ejs | 7 +++---- apps/web/src/views/home.ejs | 1 - apps/web/src/views/partials/monitor-form.ejs | 2 +- deploy.sh | 2 +- 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/apps/web/src/routes/dashboard.ts b/apps/web/src/routes/dashboard.ts index 7c30a7d..e1a4f03 100644 --- a/apps/web/src/routes/dashboard.ts +++ b/apps/web/src/routes/dashboard.ts @@ -26,14 +26,12 @@ const sparklineSSR = sparklineFromPings; const REGION_COLORS: Record = { 'eu-central': '#3b82f6', // blue 'us-west': '#f59e0b', // amber - 'ap-southeast': '#a78bfa', // purple '__none__': '#6b7280', // gray for null region }; const REGION_LABELS: Record = { 'eu-central': 'πŸ‡©πŸ‡ͺ EU', 'us-west': 'πŸ‡ΊπŸ‡Έ US-W', - 'ap-southeast': 'πŸ‡ΈπŸ‡¬ AP', '__none__': '?', }; diff --git a/apps/web/src/utils/sparkline.ts b/apps/web/src/utils/sparkline.ts index 63fc41b..ed9f182 100644 --- a/apps/web/src/utils/sparkline.ts +++ b/apps/web/src/utils/sparkline.ts @@ -18,7 +18,6 @@ export function sparklineFromPings(pings: Array<{latency_ms?: number|null, regio const COLORS: Record = { 'eu-central': '#3b82f6', 'us-west': '#f59e0b', - 'ap-southeast': '#a78bfa', }; // Group by region diff --git a/apps/web/src/views/detail.ejs b/apps/web/src/views/detail.ejs index ad1329b..26ea6bf 100644 --- a/apps/web/src/views/detail.ejs +++ b/apps/web/src/views/detail.ejs @@ -94,7 +94,6 @@ const regionFlag = { 'eu-central': 'πŸ‡©πŸ‡ͺ', 'us-west': 'πŸ‡ΊπŸ‡Έ', - 'ap-southeast': 'πŸ‡ΈπŸ‡¬', }; %> @@ -171,11 +170,11 @@ // ── Interactive latency chart ────────────────────────────────────── const REGION_COLORS = { 'eu-central': '#3b82f6', - 'us-west': '#f59e0b', 'ap-southeast': '#a78bfa', '__none__': '#6b7280' + 'us-west': '#f59e0b', '__none__': '#6b7280' }; const REGION_FLAGS = { 'eu-central': 'πŸ‡©πŸ‡ͺ EU Central', - 'us-west': 'πŸ‡ΊπŸ‡Έ US West', 'ap-southeast': 'πŸ‡ΈπŸ‡¬ AP Southeast' + 'us-west': 'πŸ‡ΊπŸ‡Έ US West' }; const MAX_RUNS = 25; @@ -475,7 +474,7 @@ if (tbody) { const tr = document.createElement('tr'); tr.className = 'hover:bg-gray-800/50'; - const regionFlags = {'eu-central':'πŸ‡©πŸ‡ͺ','us-west':'πŸ‡ΊπŸ‡Έ','ap-southeast':'πŸ‡ΈπŸ‡¬'}; + const regionFlags = {'eu-central':'πŸ‡©πŸ‡ͺ','us-west':'πŸ‡ΊπŸ‡Έ'}; const regionDisplay = ping.region ? `${regionFlags[ping.region] || '🌐'} ${ping.region}` : 'β€”'; tr.innerHTML = ` ${ping.up ? 'Up' : 'Down'} diff --git a/apps/web/src/views/home.ejs b/apps/web/src/views/home.ejs index d452e70..247d242 100644 --- a/apps/web/src/views/home.ejs +++ b/apps/web/src/views/home.ejs @@ -91,7 +91,6 @@ const REGION_COLORS = { 'eu-central': '#3b82f6', 'us-west': '#f59e0b', - 'ap-southeast': '#a78bfa', }; // Per-monitor, per-region latency tracking for sparkline (mirrors SSR sparklineFromPings) diff --git a/apps/web/src/views/partials/monitor-form.ejs b/apps/web/src/views/partials/monitor-form.ejs index ad5a549..e2572f1 100644 --- a/apps/web/src/views/partials/monitor-form.ejs +++ b/apps/web/src/views/partials/monitor-form.ejs @@ -9,7 +9,7 @@ const methods = ['GET','POST','PUT','PATCH','DELETE','HEAD','OPTIONS']; const intervals = [['1','1 second'],['2','2 seconds'],['5','5 seconds'],['10','10 seconds'],['20','20 seconds'],['30','30 seconds'],['60','1 minute'],['300','5 minutes'],['600','10 minutes'],['1800','30 minutes'],['3600','1 hour']]; const timeouts = [['5000','5 seconds'],['10000','10 seconds'],['30000','30 seconds'],['60000','60 seconds']]; - const regions = [['eu-central','πŸ‡©πŸ‡ͺ EU Central'],['us-west','πŸ‡ΊπŸ‡Έ US West'],['ap-southeast','πŸ‡ΈπŸ‡¬ AP Southeast']]; + const regions = [['eu-central','πŸ‡©πŸ‡ͺ EU Central'],['us-west','πŸ‡ΊπŸ‡Έ US West']]; const curMethod = monitor.method || 'GET'; const bodyHidden = ['GET','HEAD','OPTIONS'].includes(curMethod); %> diff --git a/deploy.sh b/deploy.sh index c6add7c..38cc015 100755 --- a/deploy.sh +++ b/deploy.sh @@ -12,7 +12,7 @@ SSH="ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519" DB_HOST="root@142.132.190.209" API_HOST="root@88.99.123.102" WEB_HOST="root@78.47.43.36" -MONITOR_HOSTS=("root@5.161.76.127" "root@5.78.178.12" "root@5.223.51.251" "root@49.13.118.44") +MONITOR_HOSTS=("root@5.78.178.12" "root@49.13.118.44") deploy_db() { echo "[db] Restarting PostgreSQL on database-eu-central..."