chore: remove us-east and ap-southeast regions from UI
This commit is contained in:
parent
2d46491dee
commit
13beacbc5a
|
|
@ -26,14 +26,12 @@ const sparklineSSR = sparklineFromPings;
|
|||
const REGION_COLORS: Record<string, string> = {
|
||||
'eu-central': '#3b82f6', // blue
|
||||
'us-west': '#f59e0b', // amber
|
||||
'ap-southeast': '#a78bfa', // purple
|
||||
'__none__': '#6b7280', // gray for null region
|
||||
};
|
||||
|
||||
const REGION_LABELS: Record<string, string> = {
|
||||
'eu-central': '🇩🇪 EU',
|
||||
'us-west': '🇺🇸 US-W',
|
||||
'ap-southeast': '🇸🇬 AP',
|
||||
'__none__': '?',
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ export function sparklineFromPings(pings: Array<{latency_ms?: number|null, regio
|
|||
const COLORS: Record<string, string> = {
|
||||
'eu-central': '#3b82f6',
|
||||
'us-west': '#f59e0b',
|
||||
'ap-southeast': '#a78bfa',
|
||||
};
|
||||
|
||||
// Group by region
|
||||
|
|
|
|||
|
|
@ -94,7 +94,6 @@
|
|||
const regionFlag = {
|
||||
'eu-central': '🇩🇪',
|
||||
'us-west': '🇺🇸',
|
||||
'ap-southeast': '🇸🇬',
|
||||
};
|
||||
%>
|
||||
<thead>
|
||||
|
|
@ -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 = `
|
||||
<td class="px-4 py-2">${ping.up ? '<span class="text-green-400">Up</span>' : '<span class="text-red-400">Down</span>'}</td>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
%>
|
||||
|
|
|
|||
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue