diff --git a/frontend/src/i18n/locales/en/settings.json b/frontend/src/i18n/locales/en/settings.json index cc39a936c..5c3ae039f 100644 --- a/frontend/src/i18n/locales/en/settings.json +++ b/frontend/src/i18n/locales/en/settings.json @@ -389,7 +389,6 @@ "quotaResetPrioritySettings": "Quota scheduling settings" }, "access": { - "accessRestrictions": "Access restrictions", "deleteAdminApiKey": "Delete Admin API key", "deleteKeyDescription": "External systems will lose admin API access through this key", "areYouSureYouWantToDelete": "Are you sure you want to delete the current administrator API key? This operation will take effect immediately" diff --git a/frontend/src/i18n/locales/zh-Hans/settings.json b/frontend/src/i18n/locales/zh-Hans/settings.json index b3cce05c4..1c231e825 100644 --- a/frontend/src/i18n/locales/zh-Hans/settings.json +++ b/frontend/src/i18n/locales/zh-Hans/settings.json @@ -389,7 +389,6 @@ "quotaResetPrioritySettings": "额度调度设置" }, "access": { - "accessRestrictions": "访问限制", "deleteAdminApiKey": "删除管理员 API密钥", "deleteKeyDescription": "删除后外部系统将无法继续使用该 API密钥调用管理接口", "areYouSureYouWantToDelete": "确定要删除当前管理员 API密钥吗?此操作会立即生效" diff --git a/frontend/src/i18n/locales/zh-Hant/settings.json b/frontend/src/i18n/locales/zh-Hant/settings.json index 60e9e8301..c2d3d6612 100644 --- a/frontend/src/i18n/locales/zh-Hant/settings.json +++ b/frontend/src/i18n/locales/zh-Hant/settings.json @@ -389,7 +389,6 @@ "quotaResetPrioritySettings": "額度調度設置" }, "access": { - "accessRestrictions": "訪問限制", "deleteAdminApiKey": "刪除管理員 API密鑰", "deleteKeyDescription": "刪除後外部系統將無法繼續使用該 API密鑰調用管理接口", "areYouSureYouWantToDelete": "確定要刪除當前管理員 API密鑰嗎?此操作會立即生效" diff --git a/frontend/src/views/settings/components/settings-access/ResponseBodyLimitCard.vue b/frontend/src/views/settings/components/ResponseBodyLimitCard.vue similarity index 100% rename from frontend/src/views/settings/components/settings-access/ResponseBodyLimitCard.vue rename to frontend/src/views/settings/components/ResponseBodyLimitCard.vue diff --git a/frontend/src/views/settings/components/settings-access/index.vue b/frontend/src/views/settings/components/settings-access/index.vue index 3afafbe90..bc7007b26 100644 --- a/frontend/src/views/settings/components/settings-access/index.vue +++ b/frontend/src/views/settings/components/settings-access/index.vue @@ -3,23 +3,12 @@ import { ZConfirmDialog } from '@codex-proxy/ui' import { onMounted } from 'vue' import { useI18n } from 'vue-i18n' -import ClientVersionSettings from '../client-version/index.vue' import AdminApiKeyCard from './AdminApiKeyCard.vue' import AdminPasswordCard from './AdminPasswordCard.vue' -import ResponseBodyLimitCard from './ResponseBodyLimitCard.vue' import { useAdminApiKey } from './useAdminApiKey' -defineProps<{ - disabled: boolean - loading: boolean -}>() - const { t } = useI18n({ useScope: 'global' }) -const minCodexDesktopVersion = defineModel('minCodexDesktopVersion', { required: true }) -const minCodexCliVersion = defineModel('minCodexCliVersion', { required: true }) -const responsesMaxDecompressedBodyMiB = defineModel('responsesMaxDecompressedBodyMiB', { required: true }) - const { loading: adminKeyLoading, regenerating, @@ -51,15 +40,6 @@ onMounted(loadStatus) @copy="copyGeneratedKey" /> -
- - -
- !loading.value && route.hash === '#reset-credits', async (ready) => + @@ -309,7 +313,11 @@ watch(() => !loading.value && route.hash === '#reset-credits', async (ready) => v-model:enabled="form.accountWarmupEnabled" v-model:cron="form.accountWarmupCron" v-model:model="form.accountWarmupModel" - class="col-span-full" + /> +
@@ -322,12 +330,7 @@ watch(() => !loading.value && route.hash === '#reset-credits', async (ready) =>