From ef11d9cf134d6f7f74e3306f24e65feece029041 Mon Sep 17 00:00:00 2001 From: CJACK Date: Sun, 1 Feb 2026 06:14:49 +0800 Subject: [PATCH] feat: Implement a modern flat theme with updated UI components and styling. --- core/auth.py | 9 +- webui/src/App.jsx | 66 ++++--- webui/src/components/AccountManager.jsx | 235 ++++++++++++------------ webui/src/components/ApiTester.jsx | 171 +++++++++-------- webui/src/components/BatchImport.jsx | 22 +-- webui/src/components/Login.jsx | 148 ++++++++------- webui/src/components/VercelSync.jsx | 18 +- webui/src/styles.css | 61 +++--- 8 files changed, 386 insertions(+), 344 deletions(-) diff --git a/core/auth.py b/core/auth.py index cddeb1a..20c5762 100644 --- a/core/auth.py +++ b/core/auth.py @@ -104,10 +104,11 @@ def release_account(account: dict): # 从使用中移除 if acc_id in in_use_accounts: del in_use_accounts[acc_id] - - # 放回队尾 - account_queue.append(account) - logger.debug(f"[release_account] 释放账号: {acc_id} | 队列长度: {len(account_queue)}") + # 放回队尾 + account_queue.append(account) + logger.debug(f"[release_account] 释放账号: {acc_id} | 队列长度: {len(account_queue)}") + else: + logger.warning(f"[release_account] 账号 {acc_id} 不在使用列表中 (可能是因为重置了队列),跳过释放") # ---------------------------------------------------------------------- diff --git a/webui/src/App.jsx b/webui/src/App.jsx index 2f14071..c58fafb 100644 --- a/webui/src/App.jsx +++ b/webui/src/App.jsx @@ -174,18 +174,20 @@ export default function App() { {/* Sidebar */}