From 587c530f35eb8bd598cb0ccf7679240c43eb1c35 Mon Sep 17 00:00:00 2001 From: erio Date: Sat, 7 Mar 2026 23:43:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20unify=20quota=20sections=20into=20s?= =?UTF-8?q?ingle=20"=E9=85=8D=E9=A2=9D=E6=8E=A7=E5=88=B6"=20card?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge the separate "配额限制" and "配额控制" sections into one unified "配额控制" section per account type. For Anthropic OAuth/SetupToken accounts, AffinityConfigCard is now inside the quota control section instead of a separate card. Co-Authored-By: Claude Opus 4.6 --- .../components/account/CreateAccountModal.vue | 8 +++---- .../components/account/EditAccountModal.vue | 23 +++++++++++++------ frontend/src/i18n/locales/en.ts | 2 +- frontend/src/i18n/locales/zh.ts | 2 +- 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/account/CreateAccountModal.vue b/frontend/src/components/account/CreateAccountModal.vue index 48717c8fd6..b56acceee1 100644 --- a/frontend/src/components/account/CreateAccountModal.vue +++ b/frontend/src/components/account/CreateAccountModal.vue @@ -1227,13 +1227,13 @@ - +
-

{{ t('admin.accounts.quotaLimit') }}

+

{{ t('admin.accounts.quotaControl.title') }}

{{ t('admin.accounts.quotaLimitHint') }}

@@ -1249,13 +1249,13 @@ />
- +
-

{{ t('admin.accounts.quotaLimit') }}

+

{{ t('admin.accounts.quotaControl.title') }}

{{ t('admin.accounts.quotaLimitHint') }}

diff --git a/frontend/src/components/account/EditAccountModal.vue b/frontend/src/components/account/EditAccountModal.vue index cfb3b63060..bee33a1e8d 100644 --- a/frontend/src/components/account/EditAccountModal.vue +++ b/frontend/src/components/account/EditAccountModal.vue @@ -904,18 +904,18 @@
- +
-

{{ t('admin.accounts.quotaLimit') }}

+

{{ t('admin.accounts.quotaControl.title') }}

{{ t('admin.accounts.quotaLimitHint') }}

- +
- +
-

{{ t('admin.accounts.quotaLimit') }}

+

{{ t('admin.accounts.quotaControl.title') }}

{{ t('admin.accounts.quotaLimitHint') }}

@@ -998,7 +998,7 @@
- +
+ +
diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 5ebb4084a7..73559bb5e2 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -1965,7 +1965,7 @@ export default { // Quota control (Anthropic OAuth/SetupToken only) quotaControl: { title: 'Quota Control', - hint: 'Only applies to Anthropic OAuth/Setup Token accounts', + hint: 'Configure cost window, session limits, client affinity and other scheduling controls.', windowCost: { label: '5h Window Cost Limit', hint: 'Limit account cost usage within the 5-hour window', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index f4e4ffe243..bc06f479d6 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -2099,7 +2099,7 @@ export default { // Quota control (Anthropic OAuth/SetupToken only) quotaControl: { title: '配额控制', - hint: '仅适用于 Anthropic OAuth/Setup Token 账号', + hint: '配置费用窗口、会话限制、客户端亲和等调度控制。', windowCost: { label: '5h窗口费用控制', hint: '限制账号在5小时窗口内的费用使用',