37 lines
555 B
Markdown
37 lines
555 B
Markdown
# Meeting Knowledge WebUI Source
|
|
|
|
这个目录保存当前项目 WebUI 的 React/TypeScript 源码。
|
|
|
|
## Layout
|
|
|
|
```text
|
|
webui/frontend/ WebUI source
|
|
webui/dist/ build output served by webui_server.py
|
|
```
|
|
|
|
## Dev
|
|
|
|
```bash
|
|
cd webui/frontend
|
|
npm install
|
|
npm run dev
|
|
```
|
|
|
|
默认会代理到 `http://127.0.0.1:8765`。如果本地网关端口不同,可以通过 `NANOBOT_API_URL` 覆盖。
|
|
|
|
## Build
|
|
|
|
```bash
|
|
cd webui/frontend
|
|
npm run build
|
|
```
|
|
|
|
构建产物会写入 `webui/dist/`。
|
|
|
|
## Test
|
|
|
|
```bash
|
|
cd webui/frontend
|
|
npm run test
|
|
```
|