Commit Graph

40 Commits

Author SHA1 Message Date
admin e89b212dbb fix: 修复侧边栏拖拽区域的国际化文案和鼠标样式
- 添加 toggleSidebar 的中英文翻译
- 移除无效的拖拽鼠标样式,改为 pointer
- 使用 i18n 替换硬编码的英文文本

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 05:15:24 +08:00
admin fd6384191c feat: 版本管理页面添加下载补丁包和完整包的操作按钮
- 补丁类型版本显示两个下载按钮:下载补丁包、下载完整包
- 全量版本显示一个下载按钮
- 添加相应的中英文翻译

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 04:12:21 +08:00
admin ad58d2220e feat: 添加补丁版本基础版本选择功能
- 添加基础版本下拉选择器,仅在补丁更新类型时显示
- 添加应用和更新类型的 watch 监听,自动获取全量版本列表
- 提交时传递 base_version_id 参数
- 添加调试日志便于排查问题

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 22:48:22 +08:00
admin b86fc60741 feat: 添加文件上传进度和速度显示
- 新增 api.postFormDataWithProgress 方法支持上传进度回调
- 版本创建和编辑页面显示上传进度条和实时速度
- 按钮显示上传百分比
- 添加国际化翻译

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 22:01:16 +08:00
admin c755587a4d feat: 完善版本管理功能
后端改进:
- 新增版本发布状态管理 (draft/published/deprecated/superseded)
- 新增发布/废弃/回滚 API 接口
- 新增增量包生成功能 (仅包含差异文件)
- 新增删除版本时的依赖检查
- 数据库字段: publish_status, superseded_by, delta_package_*

前端改进:
- 版本列表新增发布状态列和增量包大小列
- 新增发布/废弃/回滚操作按钮
- 新增增量包下载功能
- 更新国际化翻译

修复:
- 修复 announcements 页面 typeOptions 未定义问题
- 修复 echarts 模块导入类型问题

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 20:31:52 +08:00
admin 47f1e9fe43 fix: show existing files when editing version
- Load files data when fetching version info
- Display uploaded file info with re-upload option
- Preserve original file data when canceling re-upload
- Add i18n for reupload button

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 00:58:36 +08:00
admin 53fd9ff7dc feat: add custom download URL for manual update method
- Add custom_download_url field to Version model
- Show custom download URL input when update method is 'manual'
- Use platform default URL if custom URL is not set
- Add i18n translations for new field

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 16:06:48 +08:00
admin 853c22fdbe feat: add balance display, user columns, device mgmt and sessions for agent
- Backend: add balance to agent stats API
- Backend: return full user details (balance, expiry, online_status, device_count, application) in agent users API
- Backend: export admin device/session handlers, add agent routes for devices and sessions
- Backend: add card type permission check and balance deduction for agent user creation
- Backend: extract checkAgentUserPermission helper, add user edit API
- Frontend: add balance card to agent dashboard
- Frontend: add application, online_status, device_count, balance, expiry_at columns to agent user table
- Frontend: add agent devices page (reuse admin data-table component)
- Frontend: add agent sessions page (reuse admin data-table component)
- Frontend: add devices and sessions to agent navigation and routes
- Add i18n keys for agent devices, sessions, user columns, dashboard balance
2026-05-11 10:46:29 +08:00
admin a76a30ee78 feat: add agent user edit, card type permission check and balance deduction
- Backend: check AgentApplicationCardType.can_generate before allowing card recharge
- Backend: deduct agent balance and record consumption when creating user with card
- Backend: add GET /agent/users/:id and PUT /agent/users/:id for user edit
- Backend: extract checkAgentUserPermission helper, refactor handleUpdateUserStatus
- Frontend: add user edit page ([id].vue) with username/email/password
- Frontend: add edit action in user list dropdown menu
- Frontend: add route for agent user edit page
- Add i18n keys for agent user edit
2026-05-11 08:48:02 +08:00
admin 57e1d10689 feat: add user creation and ban/unban for agent backend
- Backend: POST /agent/users - create user with optional card recharge
- Backend: PUT /agent/users/:id/status - ban/unban user
- Frontend: add create user page for agent (select app, card type)
- Frontend: add ban/unban action in user list with confirm dialog
- Frontend: add actions dropdown column in user data table
- Fix: cloud variables records page i18n key (agent.finance.to -> agent.cloudVariables.records.to)
- Add i18n keys for agent user management (create, ban, unban)
2026-05-11 08:24:30 +08:00
admin 3cea807353 refactor: change agent cloud data permission to cloud variables only
- Rename permission from '查看云端数据' to '查看云端变量'
- Remove cloud constants API and page for agents
- Add cloud variable records API for agents (stream type)
- Add agent cloud-variables page with full variable details
- Add agent cloud-variable records page (read-only)
- Update navigation from cloud-data to cloud-variables
- Update i18n keys: cloudData -> cloudVariables
- Backend returns var_type, default_value, max_records etc.
- Records page supports dynamic columns and date filtering
2026-05-11 08:05:40 +08:00
admin df4ad079f3 fix: agent finance page styling and cloud data API implementation
- Fix agent finance page: confirmed backend integration is working
- Add agent cloud-variables and cloud-constants API endpoints
- Rewrite agent cloud-data page to use real API calls instead of mock data
- Fix API path: /agent/applications -> /agent/apps
- Remove 'all' value from app filter SelectItem (empty string issue)
- Add cloudData i18n keys for zh and en
- Cloud data is read-only for agents, with CanViewCloudData permission check
2026-05-10 23:38:04 +08:00
admin 5561587cde 修复: 1.代理卡密筛选status显示(JSON key冲突) 2.财务管理SelectItem空字符串value报错 2026-05-10 17:00:19 +08:00
admin 409ec4f75b 修复: 1.管理员编辑代理云端数据权限switch无效(后端缺少CanViewCloudData字段) 2.代理卡密status显示disabledbanned 3.代理用户管理只显示代理/子代理卡密充值过的用户 2026-05-10 14:12:35 +08:00
admin c495f9b417 修复代理商卡密管理页面:增加服务端筛选、批量导出、复制功能 2026-05-10 04:27:55 +08:00
admin e7dc05c257 fix: 修复代理编辑页面翻译问题和代理卡密生成页面
- 添加 admin.agents.create.saveBtn 和 admin.agents.editSuccess 翻译
- 修复代理卡密生成页面API路径错误,使用/agent/apps/{id}获取卡类
- 重构代理卡密生成页面样式,参考管理员后台卡密生成页面
- 添加代理卡密生成页面完整i18n国际化支持

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 22:25:06 +08:00
admin 914e3d5127 feat: 优化代理管理页面和代理后台页面
- 添加云端数据权限列到代理管理页面
- 重构代理后台用户管理、卡密管理、财务管理页面使用DataTable组件
- 添加统计卡片到代理后台各页面
- 修复agent-apps相关类型错误
- 添加代理后台页面i18n国际化支持

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 21:00:33 +08:00
admin aa5d3d126b refactor: 简化授权管理添加/编辑页面为单卡类选择
- 移除卡类列表,改为单选卡类
- 选择代理 → 选择应用 → 选择卡类 → 设置价格
- 修复面包屑导航名称
- 优化预览卡片展示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 19:28:06 +08:00
admin 802c36072c fix: 修复授权页面卡类选项显示空括号问题
- 只有当 billing_type 有值时才显示括号内容
- 将"卡类权限"标签改为"选择卡类",更清晰
- 添加 selectCardTypePlaceholder 翻译

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 19:22:29 +08:00
admin d10c2ffa77 feat: 优化授权管理添加/编辑页面布局和样式
- 添加 i18n 国际化支持,新增 createForm 翻译
- 统一使用 KeyRound 图标作为授权配置标题
- 优化预览卡片,增加已授权卡类列表展示
- 添加 loading 状态和更完善的表单验证
- 统一使用 textarea 组件替代 UiTextarea
- 与版本管理页面布局保持一致

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 19:12:25 +08:00
admin 08b4003db8 refactor: 清理多余字段并重新设计个人中心页面 2026-05-08 23:45:11 +08:00
admin 65fa7146e8 refactor: 拆分更新类型(全量/补丁)和更新方式(自动/手动),移除force_update字段 2026-05-08 23:34:14 +08:00
admin e2ebb6e46e 版本管理全面增强:状态、补丁更新、热更新
1. 自动状态管理
   - 新增版本自动标记状态:最新版本为'有效',旧版本自动标记为'已失效'
   - 前端列表页新增状态列和状态筛选

2. 更新方式升级
   - 更新方式从手动/自动改为:手动更新/热更新/完整更新
   - 热更新:运行时增量替换文件,无需重启
   - 完整更新:下载完整包替换,需重启

3. 补丁更新支持
   - 新增 base_version_id 字段支持增量补丁
   - 创建版本时可选择基础版本,自动识别为补丁模式
   - 补丁模式仅上传变更文件

4. ZIP解析上传(已有功能完善)
   - 上传ZIP自动解析文件列表
   - 支持选择入口文件

5. 国际化完善
   - 中英文新增状态、更新方式等翻译
2026-05-08 16:21:35 +08:00
admin ee7f58a4dc fix: add missing viewRecords i18n key for cloudVariables in zh.json 2026-05-08 00:48:03 +08:00
admin de2c455e79 refactor: improve cloud variable records page with standard DataTable layout
- Add statistics cards (total records, variable key, max records, scope)
- Use standard DataTable component with toolbar template
- Add BulkActions component for batch operations
- Add DataTableViewOptions for column visibility control
- Dynamic columns are generated from record data fields
- Add missing i18n keys (totalRecords, maxRecordsLabel, unlimited)
- Match styling with other admin data table pages
2026-05-07 23:40:14 +08:00
admin c816f4d85c feat: add comprehensive i18n support across all pages
- Add i18n support to admin sidebar, breadcrumbs, and nav-footer
- Add i18n support to admin pages: system-settings, users, versions, risk-control, sessions, cloud-variables, cloud-constants
- Add i18n support to auth pages: login, register
- Add i18n support to install and profile pages
- Add i18n support to agent pages: dashboard, finance, users, apps, cards
- Replace all hard-coded Chinese text with i18n translation keys
- Add comprehensive translation keys to zh.json and en.json
- Fix date formatting to use locale-agnostic toLocaleDateString()
- Pass t function as parameter for i18n in non-component files
2026-05-07 23:06:58 +08:00
admin f1f2a9dc9d feat: 云端变量操作菜单添加查看记录入口
- stream 类型变量下拉菜单增加「查看记录」选项
- 添加 List 图标导入
- 添加中英文国际化文本
2026-05-07 19:42:37 +08:00
admin d01e20dfd5 feat: 重构云端变量记录页面,支持动态列和服务端分页
- 使用项目 DataTable 组件替换原生 table
- 根据记录数据动态生成表格列
- 支持服务端分页、搜索、日期筛选
- 添加单条/批量删除确认对话框
- 添加路由配置和国际化文本
- 更新 pnpm-lock.yaml 修复 Docker 构建问题
2026-05-07 19:10:25 +08:00
admin a2eccb9818 feat: 添加代理充值功能到代理管理页面, 移除授权管理页面的无效操作 2026-05-07 01:13:09 +08:00
admin e7e7631fa5 feat: 授权管理改为设置卡类价格,代理管理增加消费列 2026-05-07 00:28:52 +08:00
admin ecf5690505 feat: 用户创建充值优化、侧边栏导航修复、在线实例统计修复 2026-05-03 06:07:11 +08:00
admin fa521de836 chore: 清理最近活动(recentActivities)后端接口和前端翻译 2026-05-03 05:09:35 +08:00
admin 34844870ac feat: 全球地图、暗黑模式适配、用户总数修复 2026-05-03 05:07:39 +08:00
admin ea8ffb6c74 fix: 订阅模式登录验证、永久会员类型区分、动态代码HTTP返回值修复、侧边栏滚动位置保持
- 修复订阅模式登录时错误检查余额的问题
- 区分无限余额和永久订阅两种永久会员类型
- 修复动态代码HTTP请求返回值在JS中无法正确访问的问题
- 添加侧边栏滚动位置保持功能
- 移除developer角色相关代码,统一使用admin
- 添加缺失的i18n翻译key
2026-05-01 16:39:31 +08:00
admin 416c8c71de fix: 补充缺失的i18n翻译key(finance.cancel, agentApps.reject/remove等) 2026-05-01 09:00:16 +08:00
admin ffba49bd77 fix: 合并i18n重复的admin key,修复侧边栏和翻译缺失问题 2026-05-01 08:21:00 +08:00
admin 4ed00f29e2 refactor: 移除佣金比例字段,将developer统一为admin 2026-05-01 08:08:11 +08:00
admin 2da9447397 feat: 代理管理添加批量操作功能,用户管理添加到期时间列
- 代理管理页面添加批量解封、批量封禁、批量删除功能
- 后端添加代理批量操作API
- 用户管理添加独立的到期时间列
- 修复应用管理和日志记录页面顶部卡片图标颜色
2026-04-30 21:10:54 +08:00
admin 10044b474f feat: 添加云端函数HTTP请求、SMTP邮件、数据库操作能力
- 添加HTTP客户端工具支持GET/POST请求
- 添加SMTP邮件发送功能
- 添加数据库操作(db.getRecords, db.deleteRecord, db.deleteRecords)
- 添加订单管理云端函数(读取、接收、筛选、成功、失败)
- 添加测试推送和邮件通知云端函数
- 修复云端函数编辑页面预览代码换行显示
- 云端变量数据模型重构(合并数据类型)
2026-04-30 20:54:02 +08:00
Admin afe67d704e Initial commit: 网络验证平台 2026-04-27 17:22:56 +08:00