feat(console-ui): add TanStack management console
- provide Runtime overview, service lifecycle, invocation, and event views - add immutable WIT package listing, publication, and download workflows - connect all state to the Rust management API without direct database access - use TanStack Start with Node serving, Oxlint, Oxfmt, and SSR checks - include responsive operational layouts and empty Actor placeholders
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Wasmeld Console
|
||||
|
||||
WebAssembly Runtime 的管理控制台,使用 TanStack Start、TanStack Router、
|
||||
React 和 srvx 构建,通过 Node.js 运行。页面只调用 `wasmeld-console` HTTP API,
|
||||
不直接访问数据库或 Wasmeld Runtime。
|
||||
|
||||
运行概览可以启动、停止和重启整个 Runtime;服务版本与运行实例页面负责管理单个
|
||||
Wasm Actor。停止 Runtime 不会断开管理 API。
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
默认访问 `http://localhost:3000`。
|
||||
|
||||
管理 API 默认使用 `http://127.0.0.1:8080`。可以在控制台的“运行设置”中修改,
|
||||
或在构建时设置 `VITE_WASMELD_API_URL`。
|
||||
|
||||
## Validation
|
||||
|
||||
```bash
|
||||
npm run format:check
|
||||
npm run lint
|
||||
npm test
|
||||
```
|
||||
|
||||
生产构建完成后可以运行:
|
||||
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
`npm test` 会生成 Node.js 生产构建,并验证 srvx 服务端渲染和静态资源。
|
||||
Reference in New Issue
Block a user