12.3 Web UI
特性
React
SolidJS
12.3.1 Web UI 的架构
packages/app/
├── src/
│ ├── entry.tsx # 应用入口
│ ├── app.tsx # 根组件
│ ├── components/ # UI 组件
│ ├── context/ # 状态上下文
│ ├── hooks/ # 自定义 Hook
│ ├── pages/ # 页面
│ ├── utils/ # 工具函数
│ ├── i18n/ # 国际化
│ └── index.css # 全局样式
├── index.html # HTML 模板
├── vite.config.ts # Vite 构建配置
├── package.json
└── e2e/ # 端到端测试
└── playwright.config.ts12.3.2 启动 Web UI
12.3.3 Web UI 与 Server 的实时通信
12.3.4 共享 UI 组件库
12.3.5 小结
Last updated
