cc-switch icon indicating copy to clipboard operation
cc-switch copied to clipboard

[WIP] Some refactors

Open djyde opened this issue 3 months ago • 1 comments

  • Use react-hook-form to handle form state
  • Use @tanstack/react-query to handle async task and mutations
  • Remove global window binding.
  • Use shadcn/ui

djyde avatar Sep 30 '25 11:09 djyde

感谢大佬的重构!我检查了一下认为还有一点残留的小问题:src/components/SettingsModal.tsx:86、src/components/ProviderList.tsx:93 等还有残留的 window.api.* ; src/vite-env.d.ts:4 处的 AppType 已经不再导出;src/App.tsx:29 处的 confirmDialog 相关状态已经无用,您看看

farion1231 avatar Sep 30 '25 13:09 farion1231