mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-03 19:30:51 +08:00
feat: enhance MainLayout with header height management using useLayoutEffect, improve AiProvidersPage by removing priority field, and update UsagePage with dynamic stats cards and sparkline charts for better data visualization
This commit is contained in:
@@ -17,8 +17,13 @@ export interface OAuthStartResponse {
|
||||
state?: string;
|
||||
}
|
||||
|
||||
const WEBUI_SUPPORTED: OAuthProvider[] = ['codex', 'anthropic', 'antigravity', 'gemini-cli', 'iflow'];
|
||||
|
||||
export const oauthApi = {
|
||||
startAuth: (provider: OAuthProvider) => apiClient.get<OAuthStartResponse>(`/${provider}-auth-url`, { params: { is_webui: 1 } }),
|
||||
startAuth: (provider: OAuthProvider) =>
|
||||
apiClient.get<OAuthStartResponse>(`/${provider}-auth-url`, {
|
||||
params: WEBUI_SUPPORTED.includes(provider) ? { is_webui: true } : undefined
|
||||
}),
|
||||
|
||||
getAuthStatus: (state: string) =>
|
||||
apiClient.get<{ status: 'ok' | 'wait' | 'error'; error?: string }>(`/get-auth-status`, {
|
||||
|
||||
Reference in New Issue
Block a user