Thêm phần 5. Monitoring và 6. System
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-25 16:00:18 +07:00
parent e0e864ea13
commit 77ea3cc361
27 changed files with 3564 additions and 31 deletions

View File

@@ -26,10 +26,20 @@
],
},
monitoring: {
items: [{ section: "monitoring-log", page: "monitoring" }],
items: [
{ section: "analytics", page: "monitoring" },
{ section: "monitoring-log", page: "monitoring" },
{ section: "error-logs", page: "monitoring" },
{ section: "hardware-health", page: "monitoring" },
{ section: "safety-system", page: "monitoring" },
{ section: "mission-log", page: "monitoring" },
],
},
system: {
items: [{ section: "integrations", page: "integrations" }],
items: [
{ section: "settings", page: "settings" },
{ section: "integrations", page: "integrations" },
],
},
help: {
items: [{ section: "help-api", page: "help" }],
@@ -49,7 +59,8 @@
"path-guides": { module: "setup", section: "path-guides" },
users: { module: "setup", section: "users" },
integrations: { module: "system", section: "integrations" },
monitoring: { module: "monitoring", section: "monitoring-log" },
settings: { module: "system", section: "settings" },
monitoring: { module: "monitoring", section: "analytics" },
help: { module: "help", section: "help-api" },
};
@@ -191,6 +202,7 @@
updateRailUI();
navigateToPage(page);
if (page === "dashboard") window.DashboardApp?.handleNav?.(section);
if (page === "monitoring") window.MonitoringApp?.showSection?.(section);
}
function syncDashboardSection(section) {
@@ -212,6 +224,7 @@
saveState();
updateRailUI();
if (page === "dashboard") window.DashboardApp?.handleNav?.(activeSection);
if (page === "monitoring") window.MonitoringApp?.showSection?.(activeSection);
}
function toggleFlyout() {
@@ -310,5 +323,6 @@
selectSection,
toggleFlyout,
refreshFlyout,
getActiveSection: () => activeSection,
};
})();