v2: live console (SSE+fast-poll), scheduled tasks, tag-group commands, CPU sparklines, dead-node alerts
This commit is contained in:
@@ -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>' +
|
||||
|
||||
Reference in New Issue
Block a user