feat: Add mock mode for UI-only development

- Created mock API implementation in src/api/mock.ts
- Added isMockMode toggle to useStore
- Implemented switching between real and mock API in client.ts
- Added Mock Mode toggle to Login page
- Added 'npm run dev:mock' command

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-04-11 00:51:43 +03:00
parent 5ec94df727
commit 7cbe5ab6e2
6 changed files with 61 additions and 2 deletions

View File

@@ -1 +1,2 @@
VITE_API_DOMAIN=http://localhost:3000
VITE_MOCK_MODE=false