feat(web): 添加拓扑图页面和相关组件

feat(csms): 添加获取当前连接状态的API
feat(csms): 添加获取当前活动OCPP WebSocket连接的接口
deps(web): 添加@xyflow/react依赖
This commit is contained in:
2026-03-16 12:59:05 +08:00
parent 6888454727
commit 0118dd2e15
7 changed files with 473 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
"use client";
import dynamic from "next/dynamic";
const TopologyFlow = dynamic(() => import("./topology-flow"), {
ssr: false,
loading: () => (
<div className="flex flex-1 items-center justify-center text-muted text-sm"></div>
),
});
export default function TopologyClient() {
return (
<div style={{ width: "100%", height: "100%" }}>
<TopologyFlow />
</div>
);
}