Go to file
yannyang f1553be178 fix: remove reason in message bottom 2026-07-27 22:32:28 +08:00
.trae/rules 优化外部工具 API 卡片折叠交互 2026-07-23 21:22:36 +08:00
.vite/deps fix: use coverUrl from API response for points mall product cover 2026-06-12 23:04:53 +08:00
public refactor: batch convert mobile layout from px to rem for better h5 adaptation 2026-06-12 22:20:12 +08:00
src fix: remove reason in message bottom 2026-07-27 22:32:28 +08:00
.env.example chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
.gitignore fix: remove npm cache 2026-07-06 21:37:08 +08:00
README.md fix: fix chat scroll 2026-07-27 21:32:46 +08:00
design-qa.md refactor: batch convert mobile layout from px to rem for better h5 adaptation 2026-06-12 22:20:12 +08:00
index.html refactor: batch convert mobile layout from px to rem for better h5 adaptation 2026-06-12 22:20:12 +08:00
package-lock.json chore: update package-lock after npm install 2026-06-12 22:53:43 +08:00
package.json .. 2026-06-05 23:10:15 +08:00
tsconfig.json chore: migrate from my-content-site (Next.js) to Vite-based aura-web 2026-05-24 16:19:15 +08:00
vite.config.ts feat: upgrade global API prefix from /api to /api/v1 2026-07-27 19:41:32 +08:00

README.md

aura-web

Aura Agent Platform 前端项目React + Vite + TypeScript

rh-agent-platform/web/ 拆分独立而来。后端代码现位于平级项目 aura-server

本地开发

npm install
npm run dev          # http://localhost:5173

默认 /api 代理到 http://localhost:4001(即 aura-server 的 Go 服务)。 如需切换:

VITE_API_TARGET=http://localhost:4001 npm run dev

# 或添加本地环境变量 .env.local
VITE_API_TARGET=http://localhost:4001

构建

npm run build        # 产物输出至 dist/
npm run preview      # 本地预览

发布

1、本地执行

npm run build

2、本地执行上传 dist 到服务器):

rsync -avz --delete dist/ root@125.94.46.105:/var/www/aura-web/

目录结构

src/
├── components/   公共组件
├── pages/        路由页面
├── store/        Zustand 状态
├── api.ts        REST/SSE 客户端
└── main.tsx      入口