Commit Graph

8 Commits

Author SHA1 Message Date
677ef35ff7 feat: 集成 React Compiler,自动优化组件 memoization 2026-03-02 07:20:27 +08:00
0cb6dd418f feat: 添加 PWA 支持,可添加到手机主屏幕作为独立应用使用 2026-03-02 07:04:08 +08:00
ab60db0dc5 refactor: 使用 sonner、zustand persist、partysocket 替换手写实现 2026-03-02 06:57:45 +08:00
70344bcd98 refactor: 迁移前端到 React 19 + Zustand + Tailwind CSS v4
- 将 vanilla TS 单文件 (app.ts 395行) 拆分为 React 组件化架构
- 引入 Zustand 管理全局状态 (连接/录音/预览/历史/toast)
- 自定义 hooks 封装 WebSocket 连接和音频录制管线
- CSS 全面 Tailwind 化,style.css 从 234 行精简到 114 行 (仅保留 tokens + keyframes)
- 新增依赖: react, react-dom, zustand, @vitejs/plugin-react
- Go 后端 embed 路径 web/dist 不变,无需改动
2026-03-02 06:36:02 +08:00
ea46ad71bf feat: 集成 Tailwind CSS v4,替换手写样式为 utility classes 2026-03-02 06:18:20 +08:00
30e3271146 chore: 优化 package.json scripts 命名(check → lint/lint:fix) 2026-03-01 05:43:49 +08:00
d0be096165 feat: 前端迁移至 TypeScript,集成 Biome 格式化与代码检查
- app.js → app.ts:添加完整类型标注、接口定义
- audio-processor.js → audio-processor.ts:AudioWorklet 类型化
- vite.config.js → vite.config.ts
- 添加 tsconfig.json、vite-env.d.ts
- 集成 Biome 默认配置(lint + format),通过全部检查
- package.json 添加 check/typecheck 脚本
- index.html 修复无障碍问题(button type、SVG title)
2026-03-01 05:40:26 +08:00
4b5903b6a1 feat: 引入 Vite 前端工程化,解决浏览器缓存问题;AudioWorklet 独立打包带 hash 2026-03-01 05:13:19 +08:00