Commit Graph

17 Commits

Author SHA1 Message Date
iHeyTang 7f9168d116 refactor(friends-photo): streamline Friends Photo page components and styles 2025-09-28 12:58:45 +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
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
菜菜酱 2f92304257 style(home): css 2025-09-12 11:49:51 +08:00
iHeyTang ad5735b6a5 refactor(generate): 移除生成页面及相关资源,优化项目结构
- 删除生成页面的配置、样式和逻辑文件,简化项目结构
- 更新历史和首页逻辑,调整跳转至结果页面的参数
- 增强结果页面的任务轮询逻辑,提升用户体验
- 添加生成中和错误状态的组件,优化代码可读性
2025-09-11 14:43:35 +08:00
iHeyTang a38a0847eb refactor: 更新配置文件和图标资源
- 精简prod.ts配置,移除不必要的注释和代码
- 更新app.config.ts中的tabBar样式和图标路径
- 删除不再使用的图标文件,优化项目资源结构
2025-09-11 12:47:31 +08:00
iHeyTang dbcbcc07a4 refactor: 移除不再使用的首页和图片审核演示组件
- 删除首页相关的配置、样式和逻辑文件,简化项目结构
- 移除图片审核演示组件及其样式,减少冗余代码
- 更新app.config.ts,移除原有首页的引用
2025-09-10 19:39:07 +08:00
imeepos dd97b8b439 fix: 更新相册权限配置为scope.album
- 将权限配置从scope.writePhotosAlbum更改为scope.album
- 统一权限声明,与权限检查逻辑保持一致
- 提升跨平台权限兼容性
2025-09-09 14:54:34 +08:00
imeepos ad8aea7bdb feat: 完善广告系统和文件保存功能
- 广告系统优化:
  - 添加广告预加载机制,解决"广告尚未加载完成"错误
  - 实现广告播放后自动重新加载下一个广告
  - 优化广告加载状态跟踪和错误处理

- 文件保存功能增强:
  - 支持图片和视频文件类型自动识别和保存
  - 从URL中智能提取文件名和扩展名
  - 添加详细的错误分析和用户友好提示
  - 优化文件下载流程,增加进度提示

- 权限管理完善:
  - 添加隐私权限配置(privacy.json)
  - 在app.config.ts中声明相册权限用途
  - 支持多平台权限兼容性检查

- UI/UX优化:
  - 简化下载按钮状态逻辑
  - 优化广告观看后的用户体验流程
  - 改进错误提示信息的准确性

- 代码质量提升:
  - 移除未使用的状态变量和函数
  - 优化组件Props接口定义
  - 增强日志记录用于问题诊断
2025-09-09 14:46:12 +08:00
imeepos 2495f40eea feat: 集成图片审核功能到首页业务流程
**核心功能**:
- 在首页模板点击流程中集成图片内容审核
- 只有审核通过的图片才能进入业务处理环节
- 审核不通过时显示详细的错误信息和建议

**用户体验优化**:
- 添加详细的进度状态提示:上传中 → 审核中 → 审核通过 → 处理中
- 不同阶段的 loading 文案和错误处理
- 防重复点击机制,确保流程的稳定性

**技术实现**:
- 使用 LoadingState 类型管理详细的加载状态
- 集成 useImageDetectionTaskManager hook 处理审核逻辑
- Promise 封装审核流程,便于错误处理和状态管理
- 审核结果缓存机制,提升性能

**错误处理**:
- 上传失败、审核失败、业务处理失败的分类错误提示
- 审核不通过时的详细原因说明(违规/复审/不确定)
- 统一的错误边界处理机制

**修复内容**:
- 修复演示页面的 TypeScript 类型错误
- 修复审核结果缓存 key 不匹配问题
- 优化审核结果传递逻辑
2025-09-08 16:08:29 +08:00
imeepos 075854099e feat: 新增 ImageAudit 组件及演示页面
- 添加 ImageAudit 图片审核组件,支持图片上传和内容安全审核
- 集成 useImageDetectionTaskManager hook 处理审核任务管理
- 新增 imageaudit-demo 演示页面展示组件功能
- 添加图片上传工具 imageUploader
- 支持审核进度跟踪、结果显示和历史记录
- 优化用户交互体验,包括上传进度、错误处理等
2025-09-08 13:50:59 +08:00
imeepos 482318e7c3 fix: 修改图标颜色 2025-09-04 20:26:08 +08:00
imeepos 0212b29cf6 feat: 更换图标 2025-09-03 21:14:33 +08:00
imeepos c8480308e0 feat: 添加图标 2025-09-03 15:57:27 +08:00
imeepos cef1c697a5 refactor: 将结果预览重构为独立页面
- 创建新的pages/result页面用于图片预览
- 修改index页面改用页面跳转替换组件调用
- 通过URL参数传递图片数据
- 在app.config.ts中注册新页面路由
- 删除ImageResultViewer组件,功能迁移至result页面
- 优化页面状态管理,简化index页面逻辑
2025-09-01 18:57:52 +08:00
imeepos 23a0b502d3 feat: 初始化 Taro 3.8 图生图风格转换小程序项目
- 添加基础项目配置和依赖
- 配置多平台编译支持 (微信小程序、H5、APP)
- 集成 TypeScript、ESLint、Stylelint 代码规范
- 配置 Husky 和 Commitlint 代码提交检查
- 设置开发、测试、生产环境配置
2025-09-01 11:22:03 +08:00