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

@@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"dev:mock": "VITE_MOCK_MODE=true vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"