Commit Graph

135 Commits

Author SHA1 Message Date
imeepos db6c19dae1 feat: 完善BowongAI SDK文件处理功能
- 修复_getExt方法中PNG类型映射错误
- 新增_generateFileName辅助方法,确保文件名包含正确扩展名
- 优化H5和普通上传方法的文件名生成逻辑
- 增强MIME类型与扩展名映射支持
- 提升跨平台文件处理一致性
2025-09-28 15:54:59 +08:00
imeepos a3b2942872 fix: improve file upload handling in BowongAI SDK
- Remove unused onProgress parameter in H5 upload method
- Fix file name generation with proper extension formatting
- Add file type detection from tempFiles for better upload accuracy
- Clean up URL construction for consistent API calls
2025-09-28 15:43:00 +08:00
imeepos d55730f317 Merge branch 'master' of ssh://gitea.bowongai.com:222/bowong/bw-mini-app 2025-09-28 15:26:14 +08:00
iHeyTang 85e2a440c6 fix: update placeholder image URL in UploadCard component 2025-09-28 15:19:53 +08:00
imeepos 01c1aa1988 refactor: 简化用户执行记录获取接口
移除getUserExecutions中的用户ID验证和路径参数,直接调用/templates/executions/user接口
2025-09-28 15:16:04 +08:00
imeepos 4cfbc8cc11 fix: 修复core-js模块导出错误
禁用useBuiltIns避免core-js版本冲突导致的模块导出错误
2025-09-28 15:15:04 +08:00
imeepos e5d782fefe fix: 修复assets态 目录误 2025-09-28 14:40:54 +08:00
imeepos a468dc7dd3 Merge branch 'master' of ssh://gitea.bowongai.com:222/bowong/bw-mini-app 2025-09-28 13:31:27 +08:00
imeepos 309665f49a feat: debug h5 2025-09-28 13:30:46 +08:00
iHeyTang e95db8e321 refactor: replace SubmitButton component with inline button implementation and enhance styling 2025-09-28 13:07:49 +08:00
iHeyTang 4e5dc53741 fix: update button styling and image handling in history and result components 2025-09-28 13:03:03 +08:00
iHeyTang df6db4d1b6 Merge branch 'master' of https://gitea.bowongai.com/bowong/bw-mini-app 2025-09-28 12:58:51 +08:00
iHeyTang 7f9168d116 refactor(friends-photo): streamline Friends Photo page components and styles 2025-09-28 12:58:45 +08:00
imeepos 95f58aa70e feat: add cb url for payment 2025-09-28 12:32:45 +08:00
iHeyTang 637cfc5b95 Merge branch 'master' of https://gitea.bowongai.com/bowong/bw-mini-app 2025-09-28 11:49:42 +08:00
iHeyTang c855cfca82 refactor(i18n): simplify internationalization to support only English
- Removed language switching functionality and related hooks.
- Updated i18n configuration to default to English and support only English.
- Adjusted components to hide language switcher and related features.
- Ensured all language-related functions and formatting are fixed to English.
2025-09-28 11:49:08 +08:00
imeepos 3322bdda7f feat: add payment 2025-09-28 11:34:51 +08:00
iHeyTang 9b4458399d refactor: modularize components and improve image upload handling 2025-09-28 11:33:31 +08:00
iHeyTang 157f055acb feat(i18n): implement internationalization support across the application
- Added a new i18n hook for managing language settings and translations.
- Introduced a LanguageSwitcher component for dynamic language switching.
- Updated existing components and pages to utilize the i18n system for text translations.
- Enhanced app configuration to support runtime language updates for tabBar and navigation titles.
- Added language resources for English, Japanese, Korean, and simplified Chinese.
- Improved loading and error messages to be language-aware.
- Refactored existing code to ensure compatibility with the new i18n structure.
2025-09-28 11:16:43 +08:00
imeepos be24e28fc4 feat: google login 2025-09-28 10:32:59 +08:00
imeepos 733713f42f Merge branch 'master' of ssh://gitea.bowongai.com:222/bowong/bw-mini-app 2025-09-26 23:09:17 +08:00
imeepos 4bf5935b06 fix: 修复模板卡片和页面的类型安全问题
- 修复TemplateCard组件中url字段的可选类型处理
- 修复home页面中模板类型字段名称错误(templateType -> code)
- 修复result页面中任务状态判断逻辑(processing -> running)
- 增强代码类型安全,避免运行时错误
2025-09-26 23:04:32 +08:00
杨明明 f311b431b4 Merge pull request 'feat(friends-photo): add Friends Photo page with image upload and AI generation functionality' (#2) from haiwai into master
Reviewed-on: #2
2025-09-26 23:04:02 +08:00
imeepos 595e56378c fix(cors): 修复H5环境下的CORS上传问题
- 在config/dev.ts中添加代理配置,将/api/*请求代理到外部API服务器
- 在bowongAISDK.ts中添加平台检测逻辑,H5环境使用fetch避免CORS
- 新增H5专用的文件上传和图像生成方法
- 保持小程序环境使用原有的Taro.uploadFile方法
- 确保跨平台兼容性,解决XMLHttpRequest凭据模式与通配符CORS头冲突

修复错误:
- Access-Control-Allow-Origin头在凭据模式下不能使用通配符*
- H5环境下uploadFile自动设置withCredentials导致的CORS阻止
2025-09-26 23:03:52 +08:00
imeepos 6c4247c8ea feat(sdk): 根据API文档全面升级sdk-server.ts
- 完整实现Mixvideo Workflow API的所有接口
- 新增模板管理:创建、更新、删除、激活、禁用、同步Stripe等17个接口
- 新增支付处理:Stripe结账、成功/取消回调、退款、支付历史等8个接口
- 新增任务管理:创建任务、获取状态、进度追踪等3个接口
- 新增Google OAuth:登录、令牌刷新、用户信息、撤销等5个接口
- 完善TypeScript类型定义,新增15+个接口类型
- 优化中文注释和文档,添加emoji增强可读性
- 更新默认API基础URL为生产环境
- 改进错误处理和日志输出
- 保持向后兼容性

API支持:
- 模板管理 (Template Controller)
- 支付处理 (Payment Controller)
- 任务管理 (Task Controller)
- OAuth认证 (Auth Controller)
2025-09-26 22:46:47 +08:00
imeepos 142a38d7d1 feat(platforms): refactor platform architecture and update API endpoints
- Refactor app.tsx to use new platform factory authorization system
- Update TemplateCard to use new URL property names (inputExampleUrl, outputExampleUrl)
- Enhance platform factory with authorization support for H5, TT, and WeApp
- Add new platform-specific authorization modules for multi-platform support
- Update SDK server endpoints to match new API structure
- Fix useAd hook factory instantiation timing
- Update API base URL for development environment
2025-09-26 22:28:58 +08:00
iHeyTang 4c5b910f61 feat(friends-photo): add Friends Photo page with image upload and AI generation functionality
- Introduced a new page for generating a combined photo from two uploaded images.
- Implemented image upload logic with audit handling and user feedback.
- Added CSS styles for the new page layout and components.
- Updated app configuration to include the new Friends Photo page in the navigation.
2025-09-26 16:44:22 +08:00
iHeyTang 9d890478d8 feat(config): enhance development configuration and update platform support
- Added `devServer` configuration for H5 platform to allow file system access.
- Updated platform type to include 'h5' in the factory.
- Adjusted icon paths in app configuration for consistency.
- Cleaned up code formatting and removed deprecated Redux store documentation.
2025-09-26 15:07:00 +08:00
iHeyTang bc33c158bb Merge branch 'master' of https://gitea.bowongai.com/bowong/bw-mini-app 2025-09-25 20:46:30 +08:00
iHeyTang 33b08433b5 feat(home): add Canvas import and update image upload logic for template selection 2025-09-25 20:46:13 +08:00
菜菜酱 a869ea0827 style: 生成成功的icon 2025-09-15 10:33:52 +08:00
iHeyTang 884d7410c8 style: update CSS and TSX for TemplateCard and history components 2025-09-12 19:17:55 +08:00
iHeyTang 89b6ff3fec fix(result): 更新成功组件中的错误提示处理
- 增加对错误信息的处理,确保在下载失败时能够准确反馈具体错误
- 提升用户体验,通过更清晰的错误提示帮助用户理解问题
2025-09-12 19:00:44 +08:00
菜菜酱 a53faecc29 style: css 2025-09-12 18:37:33 +08:00
菜菜酱 412ac92297 style: css 2025-09-12 18:29:38 +08:00
菜菜酱 44a382a551 style: generate css 2025-09-12 18:25:39 +08:00
菜菜酱 e6f83fa1ca style: css 2025-09-12 16:11:39 +08:00
菜菜酱 170dc6e244 style: css 2025-09-12 14:19:30 +08:00
菜菜酱 a1d286f08b style: css 2025-09-12 13:56:53 +08:00
菜菜酱 2f92304257 style(home): css 2025-09-12 11:49:51 +08:00
iHeyTang 74b2a6ee94 fix(result): 更新成功组件中的提示文字
- 将提示文字“免费保存”修改为“免费保存到相册”,提升用户理解
- 确保信息传达的准确性,增强用户体验
2025-09-11 15:25:58 +08:00
iHeyTang 64df42678f refactor: 移除下载部分组件及样式,优化项目结构
- 删除DownloadSection组件及其相关CSS,简化代码结构
- 在历史页面中添加生成中任务的进度计算和显示功能
- 更新历史页面样式,增强用户体验和视觉效果
- 添加缩略图毛玻璃蒙版和进度指示器,提升信息传达的清晰度
2025-09-11 15:24:35 +08:00
iHeyTang e0b0c6e533 style(result): 添加下载提示文字和更新样式
- 在结果页面添加下载提示文字,提供用户反馈
- 更新CSS样式,移除冗余z-index,优化视觉效果
- 增强用户体验,提升信息传达的清晰度
2025-09-11 14:56:02 +08:00
iHeyTang ad5735b6a5 refactor(generate): 移除生成页面及相关资源,优化项目结构
- 删除生成页面的配置、样式和逻辑文件,简化项目结构
- 更新历史和首页逻辑,调整跳转至结果页面的参数
- 增强结果页面的任务轮询逻辑,提升用户体验
- 添加生成中和错误状态的组件,优化代码可读性
2025-09-11 14:43:35 +08:00
iHeyTang 60dfe3465a style(result): 更新结果页面样式和配置
- 修改导航栏标题为“预览”,提升用户体验
- 优化CSS结构,移除冗余样式,增强页面布局
- 添加毛玻璃背景效果,提升视觉效果
- 简化组件结构,提升代码可读性
2025-09-11 13:40:29 +08:00
iHeyTang 1422eef000 style(history): 重新设计历史页面样式,优化布局和视觉效果
- 移除多余的样式规则,简化CSS结构
- 调整历史项的边距、内边距和圆角,提升视觉一致性
- 更新字体大小和颜色,增强可读性
- 删除不再使用的状态文本和颜色函数,精简代码
2025-09-11 12:56:42 +08:00
iHeyTang a38a0847eb refactor: 更新配置文件和图标资源
- 精简prod.ts配置,移除不必要的注释和代码
- 更新app.config.ts中的tabBar样式和图标路径
- 删除不再使用的图标文件,优化项目资源结构
2025-09-11 12:47:31 +08:00
iHeyTang b3c7c09e13 style: 统一样式单位为px,优化代码格式和可读性
- 将CSS样式中的rpx单位替换为px,提升样式一致性
- 在TypeScript文件中添加缺失的分号,优化代码可读性
- 删除不再使用的组件及其样式,简化项目结构
- 更新生成页面和结果页面的样式,提升用户体验
2025-09-10 20:12:50 +08:00
iHeyTang 09aa9d6192 style(history): 统一样式单位为px,优化代码格式
- 将CSS样式中的rpx单位替换为px,提升样式一致性
- 在TypeScript文件中添加缺失的分号,优化代码可读性
- 简化代码结构,移除多余的注释和空行
2025-09-10 19:44:03 +08:00
iHeyTang dbcbcc07a4 refactor: 移除不再使用的首页和图片审核演示组件
- 删除首页相关的配置、样式和逻辑文件,简化项目结构
- 移除图片审核演示组件及其样式,减少冗余代码
- 更新app.config.ts,移除原有首页的引用
2025-09-10 19:39:07 +08:00