diff --git a/static/banners/banner.png b/static/banners/banner.png new file mode 100644 index 0000000..1a4b66c Binary files /dev/null and b/static/banners/banner.png differ diff --git a/static/js/app.js b/static/js/app.js index b602210..6fffc2f 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -105,6 +105,9 @@ function openNodeFocus(clientId) { document.getElementById('tab-aprs').classList.remove('active'); document.getElementById('view-focus').style.display = 'block'; + + + window.scrollTo({ top: 0, behavior: 'smooth' }); const role = me.role || ''; @@ -1369,13 +1372,7 @@ function urlB64ToUint8Array(base64String) { const padding = '='.repeat((4 - base async function checkServerUpdate() { if (!isAuthenticated || me.role !== 'admin') return; - try { - // Modifica: la dashboard chiede solo al backend senza innescare comandi git - const res = await fetch('/api/server_update/status'); - const data = await res.json(); - const btn = document.getElementById('server-update-btn'); - if (btn) { btn.style.display = data.update_available ? 'inline-block' : 'none'; } - } catch (e) { console.error(e); } + try { const res = await fetch('/api/server_update/check'); const data = await res.json(); const btn = document.getElementById('server-update-btn'); if (btn) { btn.style.display = data.update_available ? 'inline-block' : 'none'; } } catch (e) { console.error(e); } } function confirmServerUpdate() { diff --git a/templates/index.html b/templates/index.html index 1f88d16..ec8cb89 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,31 +25,45 @@
-