Commit Graph

169 Commits

Author SHA1 Message Date
Trae AI 7f8bb5d6c3 fix: add app_name to API response, fix UiSwitch binding in version pages 2026-06-20 06:09:58 +08:00
Trae AI f77cb0cb05 refactor: remove default_install_dir, Update uses built-in default path 2026-06-18 22:09:18 +08:00
Trae AI a0c817571a fix: remove leftover AutoRun, replace checkbox with switch in file list 2026-06-18 19:53:16 +08:00
Trae AI 8d5d8b1461 refactor: remove auto_run, add default install dir value 2026-06-18 19:43:19 +08:00
Trae AI eba163d43a refactor: remove create_start_menu, auto create start menu for entry files 2026-06-18 19:17:46 +08:00
Trae AI 2751b24e18 feat: file list shows full package files, desktop shortcut per-file setting 2026-06-18 18:59:50 +08:00
Trae AI 77a2dd468f feat: 版本管理支持多入口文件、安装选项(桌面快捷方式/开始菜单/自动运行/默认安装目录) 2026-06-18 18:15:51 +08:00
Trae AI 9ea0ef4536 fix: 编辑版本时基础版本选择器排除当前版本 2026-06-18 17:05:30 +08:00
admin 59f7b00b9d chore: 默认品牌名从'微授权'改为'网络验证'
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-16 03:25:30 +08:00
admin 5bbae23bca feat: 用户管理页面添加充值功能
- 后端新增 POST /app-users/:id/recharge API
- 前端新增独立的用户充值页面 (/admin/users/:id/recharge)
- 充值页面风格与添加用户/编辑用户页面一致
- 支持选择卡密类型和数量进行充值
- 永久会员显示提示不允许充值

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-14 11:49:34 +08:00
admin 21b337f7c3 fix: 修复 Megaphone 图标导入拼写错误 2026-06-06 12:29:11 +08:00
admin 1cb8f11acd fix: 修复系统设置动态注入到静态文件
- 简化前端 useSiteSettings,直接使用后端注入的 window.__SITE_CONFIG__
- 修复后端 serveIndexHTML 中的设置 key 名,与前端的 key 名一致
- site_name 替换为正确的数据库字段名
- logo 和 favicon 使用 site_logo 和 site_favicon
- 添加 getLogo 函数根据主题自动选择 logo

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 13:59:03 +08:00
admin 53ab7fd778 fix: 修复系统设置的动态注入问题
- 创建 useSiteSettings composable 在应用启动时加载系统设置
- 从 window.__SITE_CONFIG__(后端注入)和 localStorage 初始化设置
- 修复 favicon 更新逻辑,正确移除旧 favicon 并添加新的
- 在路由守卫中设置页面标题,格式为 '页面名 - 网站名'
- 简化 admin.vue 和 admin-sidebar 组件,使用统一的设置管理

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 13:15:31 +08:00
admin 7eb232fd8e fix: 恢复 SidebarRail 拖拽鼠标样式,移除右上角主题设置弹窗
- 恢复 SidebarRail 的 cursor-w-resize/cursor-e-resize 样式
- 移除右上角的 ThemePopover 组件

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 12:53:10 +08:00
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 3716a2a80f fix: 修复 DataTable 组件未传递 onDownloadFullPackage prop
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 05:06:27 +08:00
admin bba8f5bdb8 fix: 补丁版本总是显示下载完整包按钮
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 04:53:37 +08:00
admin fd6384191c feat: 版本管理页面添加下载补丁包和完整包的操作按钮
- 补丁类型版本显示两个下载按钮:下载补丁包、下载完整包
- 全量版本显示一个下载按钮
- 添加相应的中英文翻译

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 04:12:21 +08:00
admin beae161078 feat: 创建和编辑版本时保存文件列表到数据库
- 在 CreateVersionRequest 和 UpdateVersionRequest 中添加 Files 字段
- 创建版本时保存文件列表到 VersionFile 表
- 更新版本时删除旧文件记录并创建新的
- 前端创建和编辑版本时传递文件列表
- 修复检测更新 API 使用正确的字段名 (publish_status=published)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 03:07:42 +08:00
admin 1575d32133 feat: 添加编辑页面基础版本选择功能
- 在编辑页面添加基础版本选择器
- 加载已有版本时自动填充 base_version_id
- 更新版本时传递 base_version_id 参数
- 移除创建页面的调试代码

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 00:30:16 +08:00
admin bcde5abfa3 debug: 添加 update_type 调试显示
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 23:15:17 +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 8cb867e65b fix: save file info when updating version
- Add file_path, file_size, file_hash, entry_file to UpdateVersionRequest
- Update these fields when saving version changes
- Update originalUploadedData after successful save

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 09:25:39 +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 0a20892f94 fix: calculate total file size on backend instead of frontend
- Backend returns total_size for all matching versions
- Frontend uses backend's total_size instead of computing from current page

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 00:11:33 +08:00
admin 87fba96264 fix: remove auto v prefix from version display
Display raw version number from database without adding v prefix

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 16:55:28 +08:00
admin 16c68a855b fix: version display and comparison issues
- Remove duplicate 'v' prefix in version display
- Add version string cleanup (trim spaces, remove v/V prefix)
- Use custom download URL when set
- Fix has_update logic for same version comparison

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 16:53:46 +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 6dcb5cde02 fix: add can_view_cloud_data to login and profile API responses
- Add can_view_cloud_data field to auth login response
- Add can_view_cloud_data field to agent profile response
- Fetch latest user permissions from /agent/profile on agent layout mount
- Update localStorage with latest can_view_cloud_data value
2026-05-11 00:15:21 +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 f3b9feca6a agent后台finance和users添加服务端分页和统计 2026-05-10 08:41:49 +08:00
admin 3cbb607ff3 修复所有分页页面统计从当前页计算的问题,改为服务端统计 2026-05-10 07:04:22 +08:00
admin f198ae268e 修复admin卡密统计GORM累积条件问题、data-table传递server-pagination 2026-05-10 05:44:16 +08:00
admin ba7b6015eb 修复管理员卡密管理页面统计数据显示不准确 2026-05-10 04:44:18 +08:00
admin c495f9b417 修复代理商卡密管理页面:增加服务端筛选、批量导出、复制功能 2026-05-10 04:27:55 +08:00
admin 7a6cc2c698 feat: 代理卡密管理页面添加服务端分页支持
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 03:19:41 +08:00
admin e2f004415e fix: 修复管理后台分页组件属性名称
- 将 serverPagination 属性名从 currentPage/onChange 改为 page/onPageChange
- 添加 onPageSizeChange 回调
- devices 页面添加缺失的 serverPagination 定义

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 03:12:11 +08:00
admin 83cd822717 fix: 修复代理卡密统计和列表查询逻辑
- 前端使用后端返回的total字段显示总数
- 后端查询条件兼容旧数据(agent_id IS NULL AND creator_id = ?)
- handleGetStats统计接口使用相同查询逻辑

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 02:36:26 +08:00
admin 8148b1abdb fix: 卡类选择只显示名称不显示价格
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 01:41:42 +08:00
admin 4385960967 fix: 修复非HTTPS环境下剪贴板复制失败问题
- 添加安全检查,仅在clipboard可用时尝试复制
- 添加错误处理,避免复制失败影响用户体验

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 01:38:05 +08:00
admin a2ce784ac0 fix: 修复代理生成卡密权限检查和参数问题
- 后端兼容application_id和app_id参数
- 添加卡类权限检查,确保代理只能生成有权限的卡类
- 前端使用application_id参数名
- 移除卡类显示中的billing_type原始值,改为显示价格

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 01:16:28 +08:00
admin 121d8f77db fix: 移除授权价格输入框货币格式
- 移除NumberField的format-options避免显示货币单位
- 在输入框后添加¥单位标签

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 22:39:26 +08:00