Initial commit: DashCaddy v1.0

Full codebase including API server (32 modules + routes), dashboard frontend,
DashCA certificate distribution, installer script, and deployment skills.
This commit is contained in:
2026-03-05 02:26:12 -08:00
commit f61e85d9a7
337 changed files with 75282 additions and 0 deletions

16
status/js/panel-tabs.js Normal file
View File

@@ -0,0 +1,16 @@
// ========== PANEL TAB SWITCHING (shared utility) ==========
(function() {
document.addEventListener('click', (e) => {
const tab = e.target.closest('.panel-tab');
if (!tab) return;
const panelId = tab.dataset.panel;
if (!panelId) return;
const tabBar = tab.closest('.panel-tabs');
const modalContent = tabBar.closest('.weather-modal-content');
tabBar.querySelectorAll('.panel-tab').forEach(t => t.classList.remove('active'));
tab.classList.add('active');
modalContent.querySelectorAll('.panel-section').forEach(s => s.classList.remove('active'));
const target = modalContent.querySelector('#' + panelId);
if (target) target.classList.add('active');
});
})();