Commit Graph

219 Commits

Author SHA1 Message Date
root d80464c85f fix 2025-07-11 01:23:41 +08:00
root c973aaa58c fix 2025-07-11 01:22:52 +08:00
root d6dd6109c0 fix 2025-07-11 01:15:23 +08:00
root a9b411bc41 fix 2025-07-11 01:15:06 +08:00
root aaf96c5aed fix 2025-07-11 01:09:20 +08:00
root e377ae46ba fix 2025-07-11 01:02:25 +08:00
root 426bfff6cd fix 2025-07-11 00:57:19 +08:00
root dcae1469bf fix: data error 2025-07-11 00:50:17 +08:00
root f824d12e7d fix: data error 2025-07-11 00:49:42 +08:00
root 49b46e8fc1 fix: data error 2025-07-11 00:47:40 +08:00
root 276e6c9765 fix 2025-07-11 00:45:44 +08:00
root 286e515288 fix 2025-07-11 00:42:29 +08:00
root a3fa6cbb9c fix 2025-07-11 00:41:16 +08:00
root f7e72162ad fix: bug 2025-07-11 00:35:50 +08:00
root a56336b63e fix 2025-07-11 00:34:04 +08:00
root 010080f61e 素材分类管理 2025-07-11 00:29:09 +08:00
root 197f083e3d fix 2025-07-11 00:11:07 +08:00
root e733f91daa fix 2025-07-11 00:00:12 +08:00
root 07d5463836 fix: 2025-07-10 23:53:26 +08:00
root 538f223217 fix 2025-07-10 23:48:08 +08:00
root 562e49f028 fix 2025-07-10 23:44:04 +08:00
root b7887caf9d fix 2025-07-10 23:35:20 +08:00
root b64c0e7452 fix: 时间轴 2025-07-10 23:29:03 +08:00
root 67aa4f1c22 fix: 新增模板详情页 2025-07-10 23:24:49 +08:00
root 776a0afba9 fix: 重构 模板管理 2025-07-10 23:18:20 +08:00
root 629b4dd42b fix: 模板片段信息 2025-07-10 23:12:03 +08:00
root b07992a82a add template 详情 2025-07-10 23:07:41 +08:00
root e0fbb1124d fix: add template track 2025-07-10 23:06:18 +08:00
root 5080ac1e8d fix: 前端封装 hook 2025-07-10 22:56:24 +08:00
root e2a7c6d9e2 fix: 重构的通用Python执行器 2025-07-10 22:51:09 +08:00
root 5d684f3c4e fix: 封装command 2025-07-10 22:45:07 +08:00
root 7e84d27c18 Merge branch 'master' of ssh://gitea.bowongai.com:222/bowong/mxivideo 2025-07-10 22:26:53 +08:00
root 920b0462b5 封装jsonrpc通信机制 2025-07-10 22:26:29 +08:00
imeepos 64f90bc259 kv test 2025-07-10 22:22:22 +08:00
root bda9eb1a6b feat: 更通用的 带进度条的 python通信方式 2025-07-10 22:01:59 +08:00
root f9e67bfc3d fix: template 2025-07-10 21:36:40 +08:00
root 9f6b6630ce fix: 模板重复导入问题 2025-07-10 21:30:10 +08:00
root 6b18e51f26 fix: template manager 2025-07-10 21:21:41 +08:00
root aae64d4d04 template upgrade 2025-07-10 21:21:16 +08:00
root 7edf8b7335 refactor: 移动JSON-RPC模块到公共位置并修复模板导入显示问题
- 将JSON-RPC模块从ai_video移动到utils作为公共模块
- 更新所有相关文件的导入路径
- 重构template_manager.py使用标准JSON-RPC协议
- 修复模板导入成功但前端显示失败的问题
- 添加模板相关的错误码定义
- 改进进度报告使用JSON-RPC通知
- 移除旧的直接JSON输出代码

修复内容:
- python_core/utils/jsonrpc.py: 新增公共JSON-RPC模块
- python_core/services/template_manager.py: 使用JSON-RPC协议
- python_core/ai_video/video_generator.py: 更新导入路径
- python_core/ai_video/api_client.py: 更新导入路径
2025-07-10 21:07:14 +08:00
root 855a3bc757 foix 2025-07-10 20:54:35 +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 04e5990376 refactor: extract common Python execution patterns into reusable shared code
- Create python_executor.rs module with unified Python command execution
- Remove duplicate execute_python_command functions from ai_video.rs and template.rs
- Eliminate 553 lines of duplicate code across both files
- Improve error handling and JSON-RPC message parsing consistency
- Fix template import 'Unknown error' issue by using unified JSON parsing
- Add configurable timeout and encoding settings
- Ensure consistent UTF-8 encoding across all Python executions
2025-07-10 20:45:54 +08:00
root 1435c72ba6 fix 2025-07-10 20:32:31 +08:00
root 2c609c04f1 fix: invoke 2025-07-10 20:22:37 +08:00
root 13d1127b7a fix: invoke 2025-07-10 20:21:51 +08:00
root 12ac233a5b fix: import error 2025-07-10 20:18:10 +08:00
root c73aeb58e9 feat: 添加完整的模板管理系统
🎉 新功能:
- 批量导入模板功能,支持文件夹结构解析
- 自动解析 draft_content.json 并提取轨道/素材信息
- 智能素材管理,自动复制到统一资源目录
- 路径转换为相对路径,确保模板可移植性
- 现代化的模板管理界面,支持网格/列表视图
- 搜索和筛选功能
- 模板详情预览和删除功能

🏗️ 技术实现:
- Python: TemplateManager 核心服务类
- Rust/Tauri: 跨平台命令处理和进程管理
- React/TypeScript: 响应式前端界面
- JSON-RPC: 前后端通信协议

📁 文件结构:
- 模板存储在 attachments/templates/{uuid}/ 目录
- 素材统一管理在 resources/ 子目录
- 元数据存储在 templates.json 文件

 已测试功能:
- 批量导入多个模板
- 模板列表显示和搜索
- 模板详情查看
- 模板删除操作
- CLI 命令行接口

这个系统为视频编辑提供了强大的模板管理能力,
支持从外部导入模板并自动处理素材依赖关系。
2025-07-10 20:14:49 +08:00
root 168ad4dafa fix: 修复批量处理中图片文件重复计数问题
- 替换glob模式匹配为直接文件系统遍历
- 避免在大小写不敏感文件系统上的重复匹配
- 添加更好的错误处理和调试日志
- 确保图片计数准确性

修复了Windows系统上同一图片文件被计数两次的问题
2025-07-10 19:47:17 +08:00
root 8f0cbe7995 fix: message 2025-07-10 19:42:00 +08:00