From 9ad2daff7351b3b70e2ed14f883deb3a4042d423 Mon Sep 17 00:00:00 2001 From: wangwei Date: Wed, 17 Jun 2026 11:24:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20restore=20API=E6=96=87=E6=A1=A3=20nav?= =?UTF-8?q?=20item=20(iframe=20/docs)=20without=20touching=20other=204=20m?= =?UTF-8?q?odules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/static/css/app.css | 9 +++++++++ webapp/static/index.html | 14 ++++++++++++++ webapp/static/js/app.js | 4 ++-- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/webapp/static/css/app.css b/webapp/static/css/app.css index 4dfe8c0..f15f41e 100644 --- a/webapp/static/css/app.css +++ b/webapp/static/css/app.css @@ -308,6 +308,15 @@ table.group-table td { border-bottom: 1px solid #f1f5f9; font-variant-numeric: t .llm-role-label { font-size: 13px; font-weight: 600; min-width: 180px; color: var(--ink); } .llm-role-select { min-width: 240px; } +/* ---------- API 文档 iframe ---------- */ +#view-apidocs { padding: 0; display: flex; flex-direction: column; flex: 1; } +.apidocs-frame { + flex: 1; + width: 100%; + height: calc(100vh - 64px); + border: none; +} + .report-actions { display: flex; justify-content: flex-end; margin: 0 0 12px; } diff --git a/webapp/static/index.html b/webapp/static/index.html index 10764b9..5ab2fc2 100644 --- a/webapp/static/index.html +++ b/webapp/static/index.html @@ -28,6 +28,9 @@ + + + + diff --git a/webapp/static/js/app.js b/webapp/static/js/app.js index 485c920..a127244 100644 --- a/webapp/static/js/app.js +++ b/webapp/static/js/app.js @@ -5,8 +5,8 @@ const App = { currentRunId: null, activeView: null, - views: ["runs", "new", "report", "profiles"], - titles: { runs: "运行列表", new: "新建评估", report: "报告详情", profiles: "LLM 配置" }, + views: ["runs", "new", "report", "profiles", "apidocs"], + titles: { runs: "运行列表", new: "新建评估", report: "报告详情", profiles: "LLM 配置", apidocs: "API 文档" }, // 初始化:绑定导航、从 URL/sessionStorage 恢复上次位置、启动健康检查。 init() {