Commit Graph

5 Commits

Author SHA1 Message Date
root fb5cf0f8f1 添加 文生图 2025-07-11 13:47:27 +08:00
root 629b4dd42b fix: 模板片段信息 2025-07-10 23:12:03 +08:00
root 5080ac1e8d fix: 前端封装 hook 2025-07-10 22:56:24 +08:00
root a5381e5305 feat: implement Cloudflare KV utility class and React hooks
- Add CloudflareKVClient class with full CRUD operations
- Support for batch operations, metadata, and key listing
- Implement useCloudflareKV hook for React components
- Add useKVValue hook for auto-loading specific keys
- Include comprehensive error handling and loading states
- Create demo component showing all functionality
- Add detailed documentation and usage examples
- Support for JSON parsing and custom configurations
- Based on jm_video_ui.md specifications
2025-07-10 20:51:09 +08:00
root d6c53b6570 fix: 优化事件循环处理,解决 tao 警告
🔧 问题分析:
- tao 事件循环警告:NewEvents/RedrawEventsCleared 顺序问题
- 自定义标题栏事件处理过于频繁
- React 组件状态更新导致过多重绘

🛠️ 优化措施:
1. 标题栏事件优化:
   - 添加事件防抖和节流
   - 改善拖拽事件处理时机
   - 优化窗口状态监听频率

2. 状态管理优化:
   - AI 视频 store 添加更新节流
   - 防止快速进度更新导致的重绘

3. 日志配置优化:
   - 过滤 tao 事件循环警告
   - 调整日志级别减少噪音

4. 性能 Hook:
   - 新增 useDebounce/useThrottle hooks
   - 防止组件过度渲染

 效果:
- 减少事件循环警告
- 提升 UI 响应性能
- 优化窗口操作体验
2025-07-10 10:58:55 +08:00