From 4ad80d8df9fdb68ffe76937e2d1d393fa0ac9220 Mon Sep 17 00:00:00 2001 From: lsy Date: Sun, 22 Feb 2026 00:47:51 +0800 Subject: [PATCH] =?UTF-8?q?add:=E9=80=82=E9=85=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ui/src/features/AppLayout.tsx | 156 +++++++++++----- apps/ui/src/features/ChannelsView.tsx | 162 ++++++++++++---- apps/ui/src/features/DashboardView.tsx | 249 +++++++++++++------------ apps/ui/src/features/ModelsView.tsx | 48 ++--- apps/ui/src/features/TokensView.tsx | 155 +++++++++++---- apps/ui/src/features/UsageView.tsx | 50 ++--- helloagents/CHANGELOG.md | 7 + helloagents/modules/admin-ui.md | 3 + 8 files changed, 536 insertions(+), 294 deletions(-) diff --git a/apps/ui/src/features/AppLayout.tsx b/apps/ui/src/features/AppLayout.tsx index 72339ca..967ec4a 100644 --- a/apps/ui/src/features/AppLayout.tsx +++ b/apps/ui/src/features/AppLayout.tsx @@ -29,62 +29,122 @@ export const AppLayout = ({ onTabChange, onLogout, children, -}: AppLayoutProps) => ( -
- -
-
-
-

- {activeLabel} -

-

- 集中管理渠道、模型、令牌与使用情况。 -

-
+}: AppLayoutProps) => { + const closeMobileNav = () => { + const toggle = document.querySelector("#app-nav-toggle"); + if (toggle) { + toggle.checked = false; + } + }; + + return ( +
+ +
- + +
+ + api-workers + + {activeLabel} +
+
+
+ {token ? "已登录" : "未登录"}
-
- {notice && ( -
- {notice} + +
-
-); + + +
+
+
+

+ {activeLabel} +

+

+ 集中管理渠道、模型、令牌与使用情况。 +

+
+ +
+ {notice && ( +
+ {notice} +
+ )} + {children} +
+