diff --git a/apps/web/src/views/detail.ejs b/apps/web/src/views/detail.ejs index c9e2bb9..ced518b 100644 --- a/apps/web/src/views/detail.ejs +++ b/apps/web/src/views/detail.ejs @@ -117,10 +117,6 @@
| <%~ c.up ? 'Up' : 'Down' %> | <%= c.status_code != null ? c.status_code : 'β' %> | <%= c.latency_ms != null ? c.latency_ms + 'ms' : 'β' %> | -<%= c.region ? (regionFlag[c.region] || 'π') + ' ' + c.region : 'β' %> | +<%= c.region || 'β' %> | <%= c.run_id || 'β' %> | <%~ it.timeAgoSSR(c.checked_at) %><% if (c.jitter_ms != null) { %> (+<%= c.jitter_ms %>ms)<% } %> | <%= c.error ? c.error : '' %> | @@ -200,9 +196,9 @@ 'eu-central': '#3b82f6', 'us-west': '#f59e0b', '__none__': '#6b7280' }; - const REGION_FLAGS = { - 'eu-central': 'π©πͺ EU Central', - 'us-west': 'πΊπΈ US West' + const REGION_LABELS = { + 'eu-central': 'EU Central', + 'us-west': 'US West' }; const MAX_RUNS = 100; @@ -360,7 +356,7 @@ if (regions.length > 1) { legendEl.innerHTML = regions.map(r => { const c = REGION_COLORS[r] || '#6b7280'; - const l = REGION_FLAGS[r] || r; + const l = REGION_LABELS[r] || r; return `${l}`; }).join(''); } else { @@ -433,7 +429,7 @@ result.group.sort((a, b) => (a.ping.latency_ms || 0) - (b.ping.latency_ms || 0)); for (const pt of result.group) { const c = REGION_COLORS[pt.region] || '#6b7280'; - const label = REGION_FLAGS[pt.region] || pt.region; + const label = REGION_LABELS[pt.region] || pt.region; const status = pt.ping.up ? '' : ' DOWN'; html += `${ping.up ? 'Up' : 'Down'} | ${ping.status_code ?? 'β'} | diff --git a/apps/web/src/views/partials/monitor-form.ejs b/apps/web/src/views/partials/monitor-form.ejs index cf36f68..ae9b297 100644 --- a/apps/web/src/views/partials/monitor-form.ejs +++ b/apps/web/src/views/partials/monitor-form.ejs @@ -12,7 +12,7 @@ const allIntervals = [['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 = allIntervals.filter(([val]) => Number(val) >= minInterval); const timeouts = [['5000','5 seconds'],['10000','10 seconds'],['20000','20 seconds'],['30000','30 seconds'],['40000','40 seconds'],['50000','50 seconds'],['60000','60 seconds']]; - const regions = [['eu-central','π©πͺ EU Central'],['us-west','πΊπΈ US West']]; + const regions = [['eu-central','EU Central'],['us-west','US West']]; const curMethod = monitor.method || 'GET'; const bodyHidden = ['GET','HEAD','OPTIONS'].includes(curMethod); %>