Files
admin-frontend/README.md
T

52 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 多小程序后台前端(admin-frontend
## 启动开发
```bash
npm install
npm run dev
```
默认通过 Vite 代理把 `/api/*` 转发到 `http://localhost:8080`,请先启动 `wx_service`
## 构建
```bash
npm run build
```
## 当前已完成
- 管理员登录与认证(`/api/admin/login``/api/admin/profile`
- 后台基础布局(顶部导航、侧边栏、移动端适配)
- 数据看板(总览、小程序统计、用户增长图表)
- 小程序管理(列表、新增、编辑、删除)
- 用户管理(列表、筛选、详情)
- 会员管理页面骨架与兑换码管理交互
- 保质期管理页面(总览、列表、增删改、状态流转)
- 去水印管理页面(任务总览与列表)
- 系统设置页面(资料/密码/系统参数)
## 待开发
- 会员、保质期、去水印、系统设置接口联调
- 会员管理的记录详情与批量操作
- 系统设置中的操作日志查询
## 自动构建与发布(GitHub Actions
已新增生产自动发布流程:
- 工作流:`.github/workflows/deploy-prod.yml`
- 远程发布脚本:`scripts/ops/deploy_static.sh`
- 详细说明:`docs/deploy_ci.md`
部署参数全部走 GitHub Secrets(不使用脚本默认值),并与 `wx_service` 对齐:
- `PROD_HOST=115.159.198.14`
- `PROD_PORT=22`
- `PROD_USER=root`
- `ADMIN_WEB_ROOT=/www/wwwroot/wx_service/web/admin-frontend/panel`
密钥说明:
- `~/.ssh/id_ed25519.pub` 是公钥(放服务器)
- GitHub Secret `PROD_SSH_KEY` 需填写私钥 `~/.ssh/id_ed25519`