mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-09-04 23:19:17 +08:00
- 添加API密钥分页显示功能,每页显示20个密钥
- 实现分页控件和搜索功能的集成 - 优化API密钥的数据处理逻辑,从DOM操作改为数组操作 - 修改登录成功后重定向路径从/config改为/keys - 重构routes.py的import语句,按字母顺序排列 - 改进代码格式和缩进风格
This commit is contained in:
@@ -961,6 +961,31 @@ endblock %} {% block head_extra_styles %}
|
||||
<div class="array-container" id="API_KEYS_container">
|
||||
<!-- 数组项将在这里动态添加 -->
|
||||
</div>
|
||||
<!-- API密钥分页控件 -->
|
||||
<div id="apiKeyPagination" class="flex items-center justify-between mt-2 mb-2" style="display: none;">
|
||||
<div class="flex items-center gap-2">
|
||||
<button
|
||||
type="button"
|
||||
id="apiKeyPrevBtn"
|
||||
onclick="prevApiKeyPage()"
|
||||
class="px-3 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 cursor-pointer"
|
||||
>
|
||||
<i class="fas fa-chevron-left"></i> 上一页
|
||||
</button>
|
||||
<span id="apiKeyPageInfo" class="text-sm text-gray-600">第 1 页,共 1 页</span>
|
||||
<button
|
||||
type="button"
|
||||
id="apiKeyNextBtn"
|
||||
onclick="nextApiKeyPage()"
|
||||
class="px-3 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 cursor-pointer"
|
||||
>
|
||||
下一页 <i class="fas fa-chevron-right"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="text-xs text-gray-500">
|
||||
每页显示 20 个密钥
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-end gap-2">
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user