mirror of
https://github.com/myronblair/novacpx
synced 2026-06-30 17:50:41 -05:00
feat: merge Dashboard + Server Status (careful surgical approach)
- Added history chart to dashboard: fetches stats/server API, renders 24-hour CPU/RAM/Disk chart with Chart.js lazy-loaded - setTimeout properly INSIDE function before closing brace - Removed ONLY serverStatus() function body (2521 chars), kept initStatsChart - pages object redirects server-status → dashboard - Removed server-status from admin sidebar nav - All 26 functions intact, backticks balanced, accounts/packages/DNS all kept
This commit is contained in:
@@ -38,10 +38,6 @@ require_once dirname(__DIR__) . '/_branding.php';
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/></svg>
|
||||
Dashboard
|
||||
</a>
|
||||
<a href="#" class="sidebar-link" data-page="server-status">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/></svg>
|
||||
Server Status
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="sidebar-section">
|
||||
|
||||
Reference in New Issue
Block a user