refactor: 将 WebUI 源码纳入仓库,移除打包产物

- 新增 webui/ 前端源码目录(React+Vite+TypeScript+Tailwind)
- 删除 api/webui/ 中旧的打包静态资源
- 更新 .gitignore 忽略 api/webui/ 构建输出和 webui/node_modules
- 更新 README 增加前端构建说明
This commit is contained in:
程序员阿江(Relakkes)
2026-07-01 23:05:03 +08:00
parent 2ac0716c41
commit 65ddaa8828
68 changed files with 9064 additions and 356 deletions
+12
View File
@@ -157,6 +157,18 @@ uv run main.py --help
MediaCrawler provides a web-based visual operation interface, allowing you to easily use crawler features without command line.
#### Build Frontend Assets (required for first-time use)
The WebUI frontend source lives in the `webui/` directory. You need to build the static assets before the API server can serve them.
```shell
cd webui
npm install
npm run build # outputs to api/webui/
```
> For development, run `npm run dev` instead — it starts the Vite dev server on port 5173 and proxies `/api` to 8080.
#### Start WebUI Service
```shell