mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-13 15:57:29 +08:00
docs(webui): simplify README to intro and usage only
This commit is contained in:
@@ -1,48 +1,54 @@
|
|||||||
# ClawGo WebUI
|
# ClawGo WebUI
|
||||||
|
|
||||||
React + Vite frontend for ClawGo WebUI.
|
ClawGo 的前端控制台,基于 **React + Vite**。
|
||||||
|
|
||||||
## What was cleaned
|
## 功能简介
|
||||||
|
|
||||||
- Removed unused packages:
|
- Dashboard(状态看板)
|
||||||
- `@google/genai`
|
- Chat(对话与流式回复)
|
||||||
- `better-sqlite3`
|
- Logs(实时日志 / Raw)
|
||||||
- `dotenv`
|
- Skills(技能列表、安装、管理)
|
||||||
- `@types/react-router-dom` (v5 typings, not used)
|
- Config(配置编辑与热更新)
|
||||||
- Moved build-only tooling to `devDependencies` (`vite`, `@vitejs/plugin-react`, `@tailwindcss/vite`, etc.).
|
- Cron(定时任务管理)
|
||||||
- Updated package metadata/name to `clawgo-webui`.
|
- Nodes(节点状态与管理)
|
||||||
|
- Memory(记忆文件管理)
|
||||||
|
|
||||||
## Development
|
## 本地使用
|
||||||
|
|
||||||
### Prerequisites
|
### 1) 安装依赖
|
||||||
|
|
||||||
- Node.js 18+
|
|
||||||
|
|
||||||
### Install
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Start local dev server
|
### 2) 开发模式
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build
|
### 3) 构建
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Preview build
|
### 4) 预览构建产物
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run preview
|
npm run preview
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notes
|
## 线上访问
|
||||||
|
|
||||||
- `server.ts` is a local dev fallback API server.
|
部署后通过 gateway 访问:
|
||||||
- Production deployment uses ClawGo gateway `/webui/api/*` endpoints, not SQLite.
|
|
||||||
|
```text
|
||||||
|
http://<host>:<port>/webui?token=<gateway_token>
|
||||||
|
```
|
||||||
|
|
||||||
|
例如:
|
||||||
|
|
||||||
|
```text
|
||||||
|
http://134.195.210.114:18790/webui?token=xxxxx
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user