feat(web): 添加拓扑图页面和相关组件
feat(csms): 添加获取当前连接状态的API feat(csms): 添加获取当前活动OCPP WebSocket连接的接口 deps(web): 添加@xyflow/react依赖
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
} from "@gravity-ui/icons";
|
||||
import SidebarFooter from "@/components/sidebar-footer";
|
||||
import { useSession } from "@/lib/auth-client";
|
||||
import { EvCharger, Gauge, ReceiptText, UserCog, Users } from "lucide-react";
|
||||
import { EvCharger, Gauge, Network, ReceiptText, UserCog, Users } from "lucide-react";
|
||||
|
||||
const chargeItems = [
|
||||
{ href: "/dashboard/charge", label: "立即充电", icon: Thunderbolt, adminOnly: false },
|
||||
@@ -27,6 +27,7 @@ const chargeItems = [
|
||||
const navItems = [
|
||||
{ href: "/dashboard", label: "概览", icon: Gauge, exact: true, adminOnly: false },
|
||||
{ href: "/dashboard/charge-points", label: "充电桩", icon: EvCharger, adminOnly: false },
|
||||
{ href: "/dashboard/topology", label: "拓扑图", icon: Network, adminOnly: false },
|
||||
{ href: "/dashboard/id-tags", label: "储值卡", icon: CreditCard, adminOnly: false },
|
||||
{ href: "/dashboard/transactions", label: "充电记录", icon: ReceiptText, adminOnly: false },
|
||||
{ href: "/dashboard/settings/pricing", label: "峰谷电价", icon: TagDollar, adminOnly: true },
|
||||
|
||||
Reference in New Issue
Block a user