chore: remove API docs iframe nav item, rename title to RAGAS 评估控制台

This commit is contained in:
2026-06-17 11:18:01 +08:00
parent 8ea2b9c7d2
commit e8af5b906c
3 changed files with 3 additions and 25 deletions

View File

@@ -308,14 +308,6 @@ 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); /* 64px = topbar 高度 */
border: none;
}
.report-actions {
display: flex; justify-content: flex-end; margin: 0 0 12px;
}

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Siemens RAGAS 评估控制台</title>
<title>RAGAS 评估控制台</title>
<link rel="stylesheet" href="/static/css/app.css" />
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
</head>
@@ -28,9 +28,6 @@
<button class="nav-item" data-view="profiles">
<span class="nav-ico"></span><span>LLM 配置</span>
</button>
<button class="nav-item" data-view="apidocs">
<span class="nav-ico"></span><span>API 文档</span>
</button>
</nav>
<div class="sidebar-foot">
<span class="dot" id="health-dot"></span>
@@ -215,17 +212,6 @@
<p class="muted">点击「新建配置」添加第一个。</p>
</div>
</section>
<!-- API 文档视图 -->
<section class="view" id="view-apidocs" hidden>
<iframe
id="apidocs-frame"
src="/docs"
class="apidocs-frame"
title="API 文档"
allowfullscreen>
</iframe>
</section>
</main>
</div>

View File

@@ -5,8 +5,8 @@
const App = {
currentRunId: null,
activeView: null,
views: ["runs", "new", "report", "profiles", "apidocs"],
titles: { runs: "运行列表", new: "新建评估", report: "报告详情", profiles: "LLM 配置", apidocs: "API 文档" },
views: ["runs", "new", "report", "profiles"],
titles: { runs: "运行列表", new: "新建评估", report: "报告详情", profiles: "LLM 配置" },
// 初始化:绑定导航、从 URL/sessionStorage 恢复上次位置、启动健康检查。
init() {