feat: 优化web

This commit is contained in:
2026-04-23 18:58:13 +08:00
commit 544a2f3428
160 changed files with 27327 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
# WebNext.js
对接 [`../docs/auth-api.md`](../docs/auth-api.md) 与 Go `/api/v1`
## 本地开发
```bash
cp .env.example .env.local
npm install
npm run dev
```
`NEXT_PUBLIC_API_ORIGIN` 指向 Go 监听地址(默认开发 `http://127.0.0.1:8000`)。
## 目录约定
- `lib/api/` — HTTP 客户端与各领域 API
- `stores/` — Zustand 状态
- `lib/env.ts` — 公共环境变量读取