ADD: sites and architecture module

This commit is contained in:
2026-06-07 17:52:26 +01:00
parent dbc83830ef
commit 6df165d8d7
9 changed files with 1130 additions and 3 deletions

View File

@@ -558,6 +558,7 @@ a.sidebar-brand-link {
transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: rgba(239,68,68,0.12); color: #ef4444; }
.modal-body { padding: 20px 24px 24px; }
.audit-footer {
display: flex; gap: 8px; margin-top: 18px; padding-top: 14px;
border-top: 1px solid #1e2330;

View File

@@ -603,8 +603,16 @@ function pollRestore() {
function refreshAll() {
const btn = document.querySelector('.icon-btn');
if (btn) btn.classList.add('spinning');
Promise.all([checkServerStatus(), refreshSystemMetrics(), refreshContainerStats(), refreshSidebarNavBadges()])
.finally(() => { if (btn) btn.classList.remove('spinning'); });
const extras = [];
if (typeof window.loadSites === 'function') extras.push(window.loadSites(false));
if (typeof window.loadArchitecture === 'function') extras.push(window.loadArchitecture());
Promise.all([
checkServerStatus(),
refreshSystemMetrics(),
refreshContainerStats(),
refreshSidebarNavBadges(),
...extras,
]).finally(() => { if (btn) btn.classList.remove('spinning'); });
}
document.addEventListener('DOMContentLoaded', () => {