Commit Graph

130 Commits

Author SHA1 Message Date
imeepos f80e1ce6a5 refactor: update payment flow to use checkout session with multiple image URLs 2025-09-28 17:33:46 +08:00
iHeyTang 8a1c5e982f refactor: remove alert notifications from history page error handling 2025-09-28 15:12:43 +08:00
iHeyTang b7c4fc8b92 style: update history page styles and improve text readability 2025-09-28 15:12:04 +08:00
iHeyTang bb7bf19236 refactor: 转vite 2025-09-28 15:03:57 +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
iHeyTang 74efd4b91e style(home): 统一样式单位为px,优化代码格式
- 将CSS样式中的rpx单位替换为px,提升样式一致性
- 在TypeScript文件中添加缺失的分号,优化代码可读性
- 移除多余的注释和空行,简化代码结构
2025-09-10 19:36:01 +08:00
iHeyTang 49ec32e2ac fix: 添加ai生成水印 2025-09-10 15:48:41 +08:00
imeepos 9e39ca842c feat: 添加图片生视频功能
- 在结果页面添加图片生视频按钮,仅在图片结果时显示
- 集成serverSdk调用executeTemplate接口生成视频
- 实现加载状态和错误处理机制
- 生成成功后跳转到生成页面查看进度
- 扩展DownloadSection组件支持新功能
2025-09-09 17:47:19 +08:00
imeepos be157d0bcb refactor: 优化用户体验和代码清理
- 简化生成页面流程,成功后直接跳转到结果页
- 优化首页加载状态和错误处理逻辑
- 移除结果页面多余的调试日志
- 提升整体用户体验流畅度
2025-09-09 17:38:02 +08:00
imeepos dd97b8b439 fix: 更新相册权限配置为scope.album
- 将权限配置从scope.writePhotosAlbum更改为scope.album
- 统一权限声明,与权限检查逻辑保持一致
- 提升跨平台权限兼容性
2025-09-09 14:54:34 +08:00