Initial commit: Vue rewrite frontend

This commit is contained in:
2026-07-10 18:20:06 +08:00
commit 22bdfdc4d5
65 changed files with 17290 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
# SuperTale Vue Rewrite
Vue 3 + JavaScript rewrite workspace for the existing SuperTale creator frontend.
## Stack
- Vite
- Vue 3
- JavaScript
- Vue Router
- Pinia
- TanStack Vue Query
- Element Plus
- SCSS
- Vue I18n
- Vue Flow
## Explicitly Not Migrated
- `piko-mini-game`
- `rewards`
- `companion`
## Commands
```bash
pnpm --filter supertale-vue-rewrite dev
pnpm --filter supertale-vue-rewrite build
```
The dev server defaults to `http://localhost:5174` and proxies `/api/v1` and `/static` to `VITE_API_URL` or `http://127.0.0.1:8780`.
## Mock Mode
Mock API is enabled by default unless `VITE_USE_MOCK=false` is set.
```bash
VITE_USE_MOCK=true
```
In mock mode, auth is auto-restored as `mock_user`, project and task APIs use local in-memory data, and the app can be navigated without a backend.