chore: remove us-east and ap-southeast regions from UI

This commit is contained in:
nate 2026-03-18 20:20:25 +04:00
parent 2d46491dee
commit 13beacbc5a
6 changed files with 5 additions and 10 deletions

View File

@ -26,14 +26,12 @@ const sparklineSSR = sparklineFromPings;
const REGION_COLORS: Record<string, string> = { const REGION_COLORS: Record<string, string> = {
'eu-central': '#3b82f6', // blue 'eu-central': '#3b82f6', // blue
'us-west': '#f59e0b', // amber 'us-west': '#f59e0b', // amber
'ap-southeast': '#a78bfa', // purple
'__none__': '#6b7280', // gray for null region '__none__': '#6b7280', // gray for null region
}; };
const REGION_LABELS: Record<string, string> = { const REGION_LABELS: Record<string, string> = {
'eu-central': '🇩🇪 EU', 'eu-central': '🇩🇪 EU',
'us-west': '🇺🇸 US-W', 'us-west': '🇺🇸 US-W',
'ap-southeast': '🇸🇬 AP',
'__none__': '?', '__none__': '?',
}; };

View File

@ -18,7 +18,6 @@ export function sparklineFromPings(pings: Array<{latency_ms?: number|null, regio
const COLORS: Record<string, string> = { const COLORS: Record<string, string> = {
'eu-central': '#3b82f6', 'eu-central': '#3b82f6',
'us-west': '#f59e0b', 'us-west': '#f59e0b',
'ap-southeast': '#a78bfa',
}; };
// Group by region // Group by region

View File

@ -94,7 +94,6 @@
const regionFlag = { const regionFlag = {
'eu-central': '🇩🇪', 'eu-central': '🇩🇪',
'us-west': '🇺🇸', 'us-west': '🇺🇸',
'ap-southeast': '🇸🇬',
}; };
%> %>
<thead> <thead>
@ -171,11 +170,11 @@
// ── Interactive latency chart ────────────────────────────────────── // ── Interactive latency chart ──────────────────────────────────────
const REGION_COLORS = { const REGION_COLORS = {
'eu-central': '#3b82f6', 'eu-central': '#3b82f6',
'us-west': '#f59e0b', 'ap-southeast': '#a78bfa', '__none__': '#6b7280' 'us-west': '#f59e0b', '__none__': '#6b7280'
}; };
const REGION_FLAGS = { const REGION_FLAGS = {
'eu-central': '🇩🇪 EU Central', 'eu-central': '🇩🇪 EU Central',
'us-west': '🇺🇸 US West', 'ap-southeast': '🇸🇬 AP Southeast' 'us-west': '🇺🇸 US West'
}; };
const MAX_RUNS = 25; const MAX_RUNS = 25;
@ -475,7 +474,7 @@
if (tbody) { if (tbody) {
const tr = document.createElement('tr'); const tr = document.createElement('tr');
tr.className = 'hover:bg-gray-800/50'; 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}` : '—'; const regionDisplay = ping.region ? `${regionFlags[ping.region] || '🌐'} ${ping.region}` : '—';
tr.innerHTML = ` tr.innerHTML = `
<td class="px-4 py-2">${ping.up ? '<span class="text-green-400">Up</span>' : '<span class="text-red-400">Down</span>'}</td> <td class="px-4 py-2">${ping.up ? '<span class="text-green-400">Up</span>' : '<span class="text-red-400">Down</span>'}</td>

View File

@ -91,7 +91,6 @@
const REGION_COLORS = { const REGION_COLORS = {
'eu-central': '#3b82f6', 'eu-central': '#3b82f6',
'us-west': '#f59e0b', 'us-west': '#f59e0b',
'ap-southeast': '#a78bfa',
}; };
// Per-monitor, per-region latency tracking for sparkline (mirrors SSR sparklineFromPings) // Per-monitor, per-region latency tracking for sparkline (mirrors SSR sparklineFromPings)

View File

@ -9,7 +9,7 @@
const methods = ['GET','POST','PUT','PATCH','DELETE','HEAD','OPTIONS']; 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 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 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 curMethod = monitor.method || 'GET';
const bodyHidden = ['GET','HEAD','OPTIONS'].includes(curMethod); const bodyHidden = ['GET','HEAD','OPTIONS'].includes(curMethod);
%> %>

View File

@ -12,7 +12,7 @@ SSH="ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519"
DB_HOST="root@142.132.190.209" DB_HOST="root@142.132.190.209"
API_HOST="root@88.99.123.102" API_HOST="root@88.99.123.102"
WEB_HOST="root@78.47.43.36" 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() { deploy_db() {
echo "[db] Restarting PostgreSQL on database-eu-central..." echo "[db] Restarting PostgreSQL on database-eu-central..."