8 Commits

Author SHA1 Message Date
ee2f59df81 refactor: 优化前端代码,准备生产环境部署
- 删除所有调试日志(console.error/console.log)
- 将所有中文注释改为英文注释
- 将硬编码的中文文本改为使用 t() 函数的英文,支持国际化
- 移除可能暴露项目信息的内容
- 添加新增翻译键的中文翻译(Portrait Sample, Product Sample, Animal Sample, Object Sample, Unable to get team information)

修改文件:
- src/views/HomePage.vue
- src/views/tools/remove_background/remove_background.vue
- src/views/settings/Settings.vue
- src/locales/zh-CN.json
2026-01-04 22:19:19 +08:00
6e6d822b06 统一卡片风格并补充缺失的中文翻译
- 统一推荐有礼和合作伙伴卡片的风格,使用与功能设置卡片一致的 n-list 和 n-list-item 结构
- 添加 API key created successfully 的中文翻译
- 添加 Failed to create API key 的中文翻译
- 添加 Partner removed successfully 的中文翻译
- 添加 Failed to remove partner 的中文翻译
- 添加 Delete SSH Key 的中文翻译
- 添加 Only system administrators can edit environment configuration 的中文翻译
2026-01-04 21:42:22 +08:00
dfad1a1d80 删除禁用账户功能及相关代码
- 删除个人资料标签页中的禁用/启用账户列表项
- 删除禁用账户对话框和启用账户对话框
- 删除反馈对话框(禁用账户后显示)
- 删除账户状态相关的状态变量和计算属性
- 删除 handleAccountStatus、handleDisableAccountConfirm、handleEnableAccountConfirm 等处理函数
- 删除反馈相关的状态变量和处理函数(feedbackRating、feedbackReason、feedbackNote 等)
- 从 API 模块中删除 disableAccount、enableAccount、submitFeedback 函数
- 删除账户状态对话框和星级评分的 CSS 样式
2026-01-04 21:34:33 +08:00
423e28c09c 删除 Dashboard 页面,将首页改为根目录
- 删除 Dashboard.vue 页面文件
- 修改路由配置:删除 Dashboard 路由,根路径重定向到 /tools
- 删除菜单配置中的 dashboard 菜单项
- 删除 AppHeader 中的 Dashboard 标题映射
- 修复禁用账户后跳转问题:反馈提交后跳转到根目录而非 /dashboard
2026-01-04 21:29:51 +08:00
f30502bf7d fix(settings): fix disable account API and add feedback dialog
- Fix disable account API parameter format (pass null instead of empty object)
- Add feedback dialog after account disable (aligned with jcloud dashboard)
- Implement star rating, reason selection, and feedback submission
- Add submitFeedback API function
- Add missing Chinese translations for account status messages
- Add feedback dialog translations and validation logic
2026-01-04 21:23:29 +08:00
79b92e7aae fix(settings): improve profile settings UI and i18n support
- Remove First Name and Last Name fields from Update Profile Information dialog
- Add i18n support for copy button messages (Copied to clipboard, Copy failed)
- Add Chinese translation for 'Update Profile Information'
- Fix QR code centering in 2FA dialog
- Fix disable account dialog formatting with proper line breaks
- Change disable account dialog icon type to warning for semantic correctness
2026-01-04 20:50:22 +08:00
911ae5e53b feat: 系统设置页面增加个人资料和开发者标签页
- 使用 naive-ui Tabs 组件实现标签页布局,对齐 jcloud dashboard 前端
- 个人资料标签页:显示和编辑用户信息(用户名、手机、邮箱)、邮箱通知设置
- 开发者标签页:API 访问(创建/重新生成 API Key)、SSH 密钥管理、功能标志配置
- 创建账户相关 API 接口文件(account.ts),使用 jcloud.api.account.get 获取用户信息
- 创建 ClickToCopyField 组件用于一键复制文本内容
- API 接口与 jcloud dashboard 保持一致,实现相同的功能
2026-01-04 19:54:02 +08:00
328a9f4408 initial commit 2026-01-02 18:33:52 +08:00