feat: 添加 API 密钥菜单和文档链接
- 侧边栏添加 API 密钥菜单项 - API 密钥列表页添加 API 文档链接 - 添加 /docs/ 路由服务文档文件 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% extends 'admin/model/list.html' %}
|
||||
|
||||
{% block tail %}
|
||||
{% block head_css %}
|
||||
{{ super() }}
|
||||
<style>
|
||||
.api-key-cell {
|
||||
@@ -13,5 +13,25 @@
|
||||
.api-key-masked {
|
||||
color: #6c757d;
|
||||
}
|
||||
.api-doc-link {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.api-doc-link a {
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.api-doc-link a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block list_cards %}
|
||||
{{ super() }}
|
||||
<div class="api-doc-link">
|
||||
<a href="{{ url_for('serve_doc', filename='API_DOC.md') }}" target="_blank">
|
||||
<span class="material-symbols-outlined" style="vertical-align: middle;">description</span>
|
||||
查看 API 文档
|
||||
</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user