From fa0730c6dde1f3b010a0ebbba5739e1164c3b763 Mon Sep 17 00:00:00 2001 From: bigcode Date: Thu, 1 Oct 2026 02:33:08 +0800 Subject: [PATCH] =?UTF-8?q?v2.7.0:=20=E9=A1=B6=E6=A0=8F=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=85=A5=E5=8F=A3,/docs=20=E9=A1=B5=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=20MCP=20=E4=B8=8E=20Console=20API(/api/v1)=E8=AF=B4?= =?UTF-8?q?=E6=98=8E(=E8=AE=A4=E8=AF=81=E3=80=81MCP=20=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E9=85=8D=E7=BD=AE=E4=B8=8E=E5=B7=A5=E5=85=B7=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E3=80=81REST=20=E7=AB=AF=E7=82=B9=E4=B8=8E=20curl=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/frontend/src/App.tsx | 10 ++ console/frontend/src/main.tsx | 2 + console/frontend/src/pages/Docs.tsx | 159 ++++++++++++++++++++++++++++ console/frontend/src/styles.css | 19 ++++ package.json | 2 +- tests/ui-smoke.ts | 25 +++++ 6 files changed, 216 insertions(+), 1 deletion(-) create mode 100644 console/frontend/src/pages/Docs.tsx diff --git a/console/frontend/src/App.tsx b/console/frontend/src/App.tsx index 3e5da0e..960e176 100644 --- a/console/frontend/src/App.tsx +++ b/console/frontend/src/App.tsx @@ -11,6 +11,7 @@ import { LogoutOutlined, SettingOutlined, HistoryOutlined, + BookOutlined, } from "@ant-design/icons"; import { health, logout, me } from "./api.ts"; import { SettingsModal } from "./components/SettingsModal.tsx"; @@ -36,6 +37,7 @@ const PAGE_META: Record = { "/mailboxes": { title: "邮箱", subtitle: "收件地址、保留策略与邮箱级 Webhook" }, "/inboxs": { title: "收件箱", subtitle: "已接收邮件(默认保留 1 天,可点保留永不过期),支持按域名筛选" }, "/logs": { title: "日志", subtitle: "账号 / 域名 / 邮箱 / Webhook 的操作记录(最多保留 10000 条)" }, + "/docs": { title: "文档", subtitle: "MCP 与 Console API(/api/v1)使用说明" }, }; /** # 成员变量: 主题切换按钮的太阳/月亮 SVG 图标 **/ @@ -104,6 +106,14 @@ export function App() {
{meta.subtitle}
+ {/* 文档入口:MCP / API 说明页,位于主题切换左侧 */} +