Integrate React Query for data management and enhance Debug Preferences

- Added React Query for managing API calls related to assistants and voices.
- Introduced `useAssistantsQuery` and `useVoicesQuery` hooks for fetching data.
- Implemented mutations for creating, updating, and deleting voices using React Query.
- Integrated a global `QueryClient` for managing query states and configurations.
- Refactored components to utilize the new query hooks, improving data handling and performance.
- Added a Zustand store for managing debug preferences, including WebSocket URL and audio settings.
This commit is contained in:
Xin Wang
2026-03-02 22:50:57 +08:00
parent 70b4043f9b
commit eecde9f0fb
12 changed files with 247 additions and 120 deletions

View File

@@ -9,7 +9,9 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.90.2",
"lucide-react": "^0.563.0",
"zustand": "^5.0.8",
"react-router-dom": "^7.13.0",
"@google/genai": "^1.39.0",
"react": "^19.2.4",