cc-switch
cc-switch copied to clipboard
[WIP] Some refactors
- Use react-hook-form to handle form state
- Use @tanstack/react-query to handle async task and mutations
- Remove global
windowbinding. - Use shadcn/ui
感谢大佬的重构!我检查了一下认为还有一点残留的小问题:src/components/SettingsModal.tsx:86、src/components/ProviderList.tsx:93 等还有残留的 window.api.* ; src/vite-env.d.ts:4 处的 AppType 已经不再导出;src/App.tsx:29 处的 confirmDialog 相关状态已经无用,您看看