mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-18 10:40:50 +08:00
refactor(quota): consolidate quota sections into config-driven components
This commit is contained in:
@@ -8,9 +8,10 @@ import { Button } from '@/components/ui/Button';
|
||||
import { useAuthStore } from '@/stores';
|
||||
import { authFilesApi } from '@/services/api';
|
||||
import {
|
||||
AntigravitySection,
|
||||
CodexSection,
|
||||
GeminiCliSection
|
||||
QuotaSection,
|
||||
ANTIGRAVITY_CONFIG,
|
||||
CODEX_CONFIG,
|
||||
GEMINI_CLI_CONFIG
|
||||
} from '@/components/quota';
|
||||
import type { AuthFileItem } from '@/types';
|
||||
import styles from './QuotaPage.module.scss';
|
||||
@@ -57,9 +58,24 @@ export function QuotaPage() {
|
||||
|
||||
{error && <div className={styles.errorBox}>{error}</div>}
|
||||
|
||||
<AntigravitySection files={files} loading={loading} disabled={disableControls} />
|
||||
<CodexSection files={files} loading={loading} disabled={disableControls} />
|
||||
<GeminiCliSection files={files} loading={loading} disabled={disableControls} />
|
||||
<QuotaSection
|
||||
config={ANTIGRAVITY_CONFIG}
|
||||
files={files}
|
||||
loading={loading}
|
||||
disabled={disableControls}
|
||||
/>
|
||||
<QuotaSection
|
||||
config={CODEX_CONFIG}
|
||||
files={files}
|
||||
loading={loading}
|
||||
disabled={disableControls}
|
||||
/>
|
||||
<QuotaSection
|
||||
config={GEMINI_CLI_CONFIG}
|
||||
files={files}
|
||||
loading={loading}
|
||||
disabled={disableControls}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user