feat: update document title for clarity, add logo image, enhance OAuthPage with iFlow cookie authentication feature, and improve localization for remote access messages

This commit is contained in:
Supra4E8C
2025-12-11 01:18:32 +08:00
parent 95218676db
commit 673ab15ad4
6 changed files with 147 additions and 24 deletions

View File

@@ -17,6 +17,15 @@ export interface OAuthStartResponse {
state?: string;
}
export interface IFlowCookieAuthResponse {
status: 'ok' | 'error';
error?: string;
saved_path?: string;
email?: string;
expired?: string;
type?: string;
}
const WEBUI_SUPPORTED: OAuthProvider[] = ['codex', 'anthropic', 'antigravity', 'gemini-cli', 'iflow'];
export const oauthApi = {
@@ -28,5 +37,9 @@ export const oauthApi = {
getAuthStatus: (state: string) =>
apiClient.get<{ status: 'ok' | 'wait' | 'error'; error?: string }>(`/get-auth-status`, {
params: { state }
})
}),
/** iFlow cookie 认证 */
iflowCookieAuth: (cookie: string) =>
apiClient.post<IFlowCookieAuthResponse>('/iflow-auth-url', { cookie })
};