feat: add API文档 nav item with embedded Swagger UI iframe

This commit is contained in:
2026-06-17 11:09:55 +08:00
parent 074800b741
commit 8ea2b9c7d2
3 changed files with 24 additions and 3 deletions

View File

@@ -28,6 +28,9 @@
<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>
@@ -212,6 +215,17 @@
<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>