mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 10:40:46 +08:00
feat(UME): 增加RESTCONF对接与可视化运维页
- 支持 token 获取/续约/断开、DB共享缓存与跨进程单飞锁、keepalive 保活 - 新增 inventory/current/history 告警同步入库与查询接口,前端增加 UME 对接页面与分页 - 修复 stop_netx.ps1 在部分 PowerShell 版本下 Stop-Job -Force 报错 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ab1b76dd47
commit
7f2e4ec393
15 changed files with 2577 additions and 15 deletions
|
|
@ -5,8 +5,8 @@ import { AppLayout } from "./layout/AppLayout";
|
|||
import { AlarmsPage } from "./pages/AlarmsPage";
|
||||
import { DiagnosticsPage } from "./pages/DiagnosticsPage";
|
||||
import { AiAnalysisPage } from "./pages/AiAnalysisPage";
|
||||
import { JobsPage } from "./pages/JobsPage";
|
||||
import { IngestPage } from "./pages/IngestPage";
|
||||
import { UmePage } from "./pages/UmePage";
|
||||
import type { Alarm, Batch, Diagnostics, ImportHistoryItem } from "./types";
|
||||
import { apiDelete, apiPost, apiPostForm, fetchAlarms, fetchBatches, fetchDiagnostics, fetchIntegrationStatus } from "./services/api";
|
||||
import { fetchJobs } from "./services/api";
|
||||
|
|
@ -17,7 +17,6 @@ function App() {
|
|||
alarms: (import.meta.env.VITE_FEATURE_ALARMS ?? "1") !== "0",
|
||||
diagnostics: (import.meta.env.VITE_FEATURE_DIAGNOSTICS ?? "1") !== "0",
|
||||
aiAnalysis: (import.meta.env.VITE_FEATURE_AI_ANALYSIS ?? "1") !== "0",
|
||||
jobs: (import.meta.env.VITE_FEATURE_JOBS ?? "0") === "1",
|
||||
};
|
||||
|
||||
const [searchParams, setSearchParams] = useSearchParams();
|
||||
|
|
@ -336,7 +335,7 @@ function App() {
|
|||
/>
|
||||
}
|
||||
/>
|
||||
<Route path="/jobs" element={<JobsPage />} />
|
||||
<Route path="/ume" element={<UmePage />} />
|
||||
</Routes>
|
||||
{toast && <div className={`toast toast--${toast.type}`}>{toast.text}</div>}
|
||||
</AppLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue