diff --git a/app/templates/auth.html b/app/templates/auth.html index abfcc1e..fab9768 100644 --- a/app/templates/auth.html +++ b/app/templates/auth.html @@ -5,13 +5,14 @@ 验证页面 +
-

请输入验证令牌

+ +

安全验证

- - +
+ + +
+
{% if error %}

{{ error }}

diff --git a/app/templates/keys_status.html b/app/templates/keys_status.html index 2ec0438..01bcd73 100644 --- a/app/templates/keys_status.html +++ b/app/templates/keys_status.html @@ -5,107 +5,189 @@ API密钥状态 + @@ -114,36 +196,70 @@

API密钥状态

- 有效密钥 - + + + 有效密钥 + +

- 无效密钥 - + + + 无效密钥 + +

- 总密钥数:{{ total }} + 总密钥数:{{ total }}
@@ -177,12 +293,12 @@ } function copyKeys(type) { - const keys = Array.from(document.querySelectorAll(`#${type}Keys li span:first-child`)).map(span => span.textContent.trim()); + const keys = Array.from(document.querySelectorAll(`#${type}Keys .key-text`)).map(span => span.textContent.trim()); const jsonKeys = JSON.stringify(keys); copyToClipboard(jsonKeys) .then(() => { - showCopyStatus(`已成功复制 ${type === 'valid' ? '有效' : '无效'} 密钥到剪贴板`); + showCopyStatus(`已成功复制${type === 'valid' ? '有效' : '无效'}密钥到剪贴板`); }) .catch((err) => { console.error('无法复制文本: ', err);