Logo
Explore Help
Register Sign In
admin/cc-switch
1
0
Fork 0
You've already forked cc-switch
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
577998fef2c86dd8992ad5b8bda4c3af23693db3
cc-switch/src/components/providers/forms/hooks/index.ts

5 lines
214 B
TypeScript
Raw Normal View History

refactor: create modular hooks and integrate API key input - Create custom hooks for state management: - useProviderCategory: manages provider category state - useApiKeyState: manages API key input with auto-sync to config - useBaseUrlState: manages base URL for Claude and Codex - useModelState: manages model selection state - Integrate API key input into simplified ProviderForm: - Add ApiKeyInput component for Claude mode - Auto-populate API key into settings config - Disable for official providers - Fix EndpointSpeedTest type errors: - Fix import paths to use @ alias - Add temporary type definitions - Format all TODO comments properly - Remove incorrect type assertions - Comment out unimplemented window.api checks All TypeScript type checks now pass.
2025-10-16 17:40:25 +08:00
export { useProviderCategory } from "./useProviderCategory";
export { useApiKeyState } from "./useApiKeyState";
export { useBaseUrlState } from "./useBaseUrlState";
export { useModelState } from "./useModelState";
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 67ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API