fix(webui): replace template literals to avoid backticks inside Go raw string; build again

This commit is contained in:
Thomas Cravey 2025-08-16 15:26:25 -05:00
parent 45d1d98e56
commit bb60430df2

View file

@ -236,7 +236,7 @@ func (s *Server) handleUI(w http.ResponseWriter, r *http.Request) {
document.getElementById('built').textContent = data.builtAt; document.getElementById('built').textContent = data.builtAt;
document.getElementById('uptime').textContent = data.uptime; document.getElementById('uptime').textContent = data.uptime;
document.getElementById('connected').textContent = data.connected? 'yes':'no'; document.getElementById('connected').textContent = data.connected? 'yes':'no';
document.getElementById('counts').textContent = `ingested ${data.messagesIngested}, notified ${data.notificationsSent}, pruned ${data.messagesPruned}`; document.getElementById('counts').textContent = 'ingested ' + data.messagesIngested + ', notified ' + data.notificationsSent + ', pruned ' + data.messagesPruned;
}catch(e){ console.error(e); } }catch(e){ console.error(e); }
} }
async function loadChannels(){ async function loadChannels(){
@ -249,7 +249,7 @@ func (s *Server) handleUI(w http.ResponseWriter, r *http.Request) {
const ch = document.getElementById('channel').value; const ch = document.getElementById('channel').value;
const lim = document.getElementById('limit').value || '100'; const lim = document.getElementById('limit').value || '100';
try{ const data = await api('/api/tail',{query:{channel:ch,limit:lim}}); try{ const data = await api('/api/tail',{query:{channel:ch,limit:lim}});
const out = data.map(m=>`${m.time} ${m.author}: ${m.body}`).join('\n'); const out = data.map(m => (m.time + ' ' + m.author + ': ' + m.body)).join('\n');
document.getElementById('tail').textContent = out; document.getElementById('tail').textContent = out;
}catch(e){ document.getElementById('tail').textContent = 'error: '+e; } }catch(e){ document.getElementById('tail').textContent = 'error: '+e; }
} }