g2api-test / templates /index.html
misonL's picture
Fix: Refactor image handling and improve table styling
98a3470
Raw
History Blame Contribute Delete
1.98 kB
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grok API System Status</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css', v='1.2') }}"> {# 更新版本参数防止缓存 #}
</head>
<body>
<div class="container">
<h1>Grok API 系统状态</h1>
<section class="status-section">
<h2>配置信息</h2>
<div id="config-info">
<p><strong>API Base URL:</strong> <span id="api-base-url">加载中...</span></p>
<p><strong>Log Level:</strong> <span id="log-level">加载中...</span></p>
<!-- 其他配置项 -->
</div>
</section>
<section class="status-section">
<h2>令牌状态</h2>
<div id="token-status">
<p><strong>总令牌数:</strong> <span id="total-tokens">加载中...</span></p>
<p><strong>可用令牌数:</strong></p>
<table id="available-tokens-table">
<thead>
<tr>
<th>模型</th>
<th>可用数量</th>
</tr>
</thead>
<tbody>
<!-- 可用令牌数据将在此处加载 -->
</tbody>
</table>
<p><strong>请求次数:</strong> <span id="request-count">加载中...</span></p>
<!-- 其他令牌状态 -->
</div>
</section>
<section class="status-section">
<h2>日志摘要</h2>
<div id="log-summary">
<p>加载中...</p>
<!-- 日志内容将在此处加载 -->
</div>
</section>
</div>
<script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>