diff --git a/apps/web/app/dashboard/charge-points/[id]/page.tsx b/apps/web/app/dashboard/charge-points/[id]/page.tsx index cc08bd8..4ea3063 100644 --- a/apps/web/app/dashboard/charge-points/[id]/page.tsx +++ b/apps/web/app/dashboard/charge-points/[id]/page.tsx @@ -20,6 +20,7 @@ import { ArrowLeft, Pencil, PlugConnection, ArrowRotateRight } from "@gravity-ui import { api } from "@/lib/api"; import { useSession } from "@/lib/auth-client"; import dayjs from "@/lib/dayjs"; +import { Plug } from "lucide-react"; // ── Status maps ──────────────────────────────────────────────────────────── @@ -418,7 +419,7 @@ export default function ChargePointDetailPage({ params }: { params: Promise<{ id className="flex min-w-40 flex-col gap-2 rounded-xl border border-border bg-surface p-3" >
- + 接口 #{conn.connectorId} diff --git a/apps/web/app/dashboard/page.tsx b/apps/web/app/dashboard/page.tsx index fd0044d..56def03 100644 --- a/apps/web/app/dashboard/page.tsx +++ b/apps/web/app/dashboard/page.tsx @@ -26,6 +26,7 @@ import { type ChartRange, type ChartDataPoint, } from "@/lib/api"; +import { BanknoteArrowDown, EvCharger, Plug, Users } from "lucide-react"; // ── Helpers ──────────────────────────────────────────────────────────────── @@ -259,7 +260,7 @@ function TrendChart() { showXAxis={true} curveType="monotone" showAnimation - className="h-56" + className="h-56 text-sm" /> )} {/* Legend */} @@ -310,7 +311,9 @@ function RecentTransactions({ txns }: { txns: Transaction[] }) { - +

@@ -404,7 +407,7 @@ function ChargePointStatus({ cps }: { cps: ChargePoint[] }) {

)}
- + {availableCount}
@@ -531,7 +534,7 @@ export default function DashboardPage() { @@ -552,7 +555,7 @@ export default function DashboardPage() { 系统用户总数} /> diff --git a/apps/web/components/sidebar.tsx b/apps/web/components/sidebar.tsx index a6d7912..1febe60 100644 --- a/apps/web/components/sidebar.tsx +++ b/apps/web/components/sidebar.tsx @@ -17,23 +17,24 @@ 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"; const chargeItems = [ - { href: "/dashboard/charge", label: "立即充电", icon: ThunderboltFill, adminOnly: false }, + { href: "/dashboard/charge", label: "立即充电", icon: Thunderbolt, adminOnly: false }, { href: "/dashboard/pricing", label: "电价标准", icon: TagDollar, adminOnly: false }, ]; const navItems = [ - { href: "/dashboard", label: "概览", icon: Thunderbolt, exact: true, adminOnly: false }, - { href: "/dashboard/charge-points", label: "充电桩", icon: PlugConnection, adminOnly: false }, + { href: "/dashboard", label: "概览", icon: Gauge, exact: true, adminOnly: false }, + { href: "/dashboard/charge-points", label: "充电桩", icon: EvCharger, adminOnly: false }, { href: "/dashboard/id-tags", label: "储值卡", icon: CreditCard, adminOnly: false }, - { href: "/dashboard/transactions", label: "充电记录", icon: ListCheck, adminOnly: false }, + { href: "/dashboard/transactions", label: "充电记录", icon: ReceiptText, adminOnly: false }, { href: "/dashboard/settings/pricing", label: "峰谷电价", icon: TagDollar, adminOnly: true }, - { href: "/dashboard/users", label: "用户管理", icon: Person, adminOnly: true }, + { href: "/dashboard/users", label: "用户管理", icon: Users, adminOnly: true }, ]; const settingsItems = [ - { href: "/dashboard/settings/user", label: "账号设置", icon: Gear, adminOnly: false }, + { href: "/dashboard/settings/user", label: "账号设置", icon: UserCog, adminOnly: false }, ]; function NavContent({