Commit Graph

154 Commits

Author SHA1 Message Date
iHeyTang 21355f1844 fix: update titles in multiple language files to BestAiBest and adjust font size 2025-09-29 11:45:12 +08:00
iHeyTang 941c143c6b fix: update TemplateCard component by removing unused state and handlers 2025-09-29 11:42:08 +08:00
iHeyTang c714e78ecb fix: adjust max-height and border-radius for result images and videos to enhance visual presentation 2025-09-29 11:32:51 +08:00
iHeyTang bf0cfffd54 refactor: streamline authentication handling and improve user prompts across the application 2025-09-29 11:28:33 +08:00
iHeyTang 242f8c42f6 fix: x 2025-09-29 10:10:43 +08:00
iHeyTang ac63709846 fix: x 2025-09-28 23:04:36 +08:00
iHeyTang e98d0ebdf1 fix: x 2025-09-28 23:03:17 +08:00
imeepos 3a8b99eac9 fix: payment id 2025-09-28 22:24:26 +08:00
iHeyTang f98bee95c4 fix: correct estimated time calculation for video tasks in GeneratingComponent 2025-09-28 22:22:02 +08:00
iHeyTang ad9b27e4e3 style: update loading container layout for improved user experience 2025-09-28 22:13:05 +08:00
iHeyTang d6b06723a0 style: enhance home page header with new user promotion and improve history navigation logic 2025-09-28 22:09:54 +08:00
iHeyTang 1153b7e09f style: update layout and improve text for result and history pages 2025-09-28 21:37:21 +08:00
imeepos 620fd62418 Merge branch 'vite' of ssh://gitea.bowongai.com:222/bowong/bw-mini-app into vite 2025-09-28 21:17:01 +08:00
imeepos 8406b4195c fix: add status procesing 2025-09-28 21:16:47 +08:00
iHeyTang edac5d272e Merge branch 'vite' of https://gitea.bowongai.com/bowong/bw-mini-app into vite 2025-09-28 21:15:48 +08:00
iHeyTang ceb96d606a refactor: comment out name overlay in TemplateCard and simplify submit text in FriendsPhoto 2025-09-28 21:15:45 +08:00
imeepos 53c80f1777 Merge branch 'vite' of ssh://gitea.bowongai.com:222/bowong/bw-mini-app into vite 2025-09-28 20:21:38 +08:00
imeepos 76622c2b2c Merge branch 'vite' of ssh://gitea.bowongai.com:222/bowong/bw-mini-app into vite 2025-09-28 20:21:32 +08:00
iHeyTang 60dafdc9df refactor: simplify image comparison logic in TemplateCard and update history navigation handling 2025-09-28 20:21:22 +08:00
imeepos aabefb00c2 fix: add pending_audit audit image 2025-09-28 20:20:56 +08:00
iHeyTang bc2abb29d2 style: update app and friends-photo styles for improved layout and loading indicators 2025-09-28 18:30:34 +08:00
imeepos f02e8d949a fix: update payment ID parameter name in result page 2025-09-28 17:50:47 +08:00
imeepos 5453c79197 refactor: update payment platform to support multiple image URLs 2025-09-28 17:50:22 +08:00
imeepos 399935d2ef feat: add callback URL handling and payTemplateCode method for payment flow 2025-09-28 17:50:06 +08:00
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