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
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
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
17d7d4c68d
完成授权页面样式重设计、云端数据权限功能、修复代理后台页面问题
2026-05-09 09:21:48 +08:00
admin
d7e479b5fa
feat: 优化授权管理和代理后台
...
- 授权管理页面显示具体卡密类型名称、授权时间、备注
- 重新设计添加/编辑授权页面,参考版本管理和卡类管理页面样式
- 添加备注字段支持
- 移除代理后台的应用管理页面和路由
- 从代理后台侧边栏删除应用管理导航
2026-05-09 04:47:14 +08:00
admin
c3536166b7
feat: 创建独立的授权管理页面
...
- 在左侧导航添加授权管理链接(代理管理后)
- 创建独立的授权管理页面,参考版本管理页面样式
- 添加统计卡片显示授权应用总数、活跃授权、授权卡类
- 创建添加/编辑授权页面
- 从代理编辑页面移除授权管理部分
- 添加路由配置
2026-05-09 04:30:46 +08:00
admin
82e62ab3aa
refactor: 删除独立的授权管理页面和导航,授权功能合并到代理详情页
2026-05-08 23:53:06 +08:00
admin
d01e20dfd5
feat: 重构云端变量记录页面,支持动态列和服务端分页
...
- 使用项目 DataTable 组件替换原生 table
- 根据记录数据动态生成表格列
- 支持服务端分页、搜索、日期筛选
- 添加单条/批量删除确认对话框
- 添加路由配置和国际化文本
- 更新 pnpm-lock.yaml 修复 Docker 构建问题
2026-05-07 19:10:25 +08:00
admin
8161a3f75f
perf: 优化路由守卫安装检查,使用 localStorage 缓存
...
- 将安装状态缓存到 localStorage,有效期 24 小时
- 避免每次路由切换都发起 HTTP 请求
- 显著提升页面切换速度
2026-05-07 13:27:13 +08:00
admin
9e8f5bc826
fix: 更新路由移除已删除的 card-types.vue 引用
2026-05-07 01:58:26 +08:00
admin
7646bd2c88
feat: 新建授权改为独立页面,修复代理列表获取和卡片颜色
2026-05-07 00:08:04 +08:00
admin
3cd22fdce1
feat: 重构授权管理为层级模型 - 管理员直接对代理授权应用卡密权限
2026-05-06 22:16:31 +08:00
admin
e229e31079
fix: 修复assets文件路径拼接错误
...
- Gin的*filepath参数包含开头的/,需要去除
- 修复路径拼接导致的双斜杠问题
- 移除自动刷新逻辑,这不是正确的解决方案
2026-05-04 16:23:26 +08:00
admin
16af684a32
fix: 资源加载失败时自动刷新页面
...
- 添加路由错误处理,当动态导入模块失败时自动刷新页面
- 修复 assets 文件不存在时返回 404 错误
2026-05-04 10:54:31 +08:00
admin
a93bc7dfb7
refactor: 改用router.push并清除路由守卫缓存替代window.location.href
...
- 添加resetInstallCheck()清除安装状态缓存
- 安装完成后调用resetInstallCheck再router.push跳转
- 保持SPA无刷新体验
2026-05-03 19:51:31 +08:00
admin
3153dd8838
fix: 添加安装路由,修复环境变量校验和路由守卫
...
- 注册/install路由,安装向导页面可访问
- env.ts: VITE_SERVER_API_URL默认空字符串(相对路径)
- 路由守卫: API失败时默认跳转安装页面
2026-05-03 15:40:23 +08:00
admin
41fe48e128
feat: 添加安装向导功能
...
- 后端:安装状态检测API、数据库连接测试、配置文件生成
- 后端:支持SQLite/MySQL数据库选择
- 后端:JWT密钥自动生成或手动设置
- 前端:安装向导界面(数据库配置、安全配置、管理员账号)
- 前端:路由守卫检测安装状态,未安装自动跳转安装页面
2026-05-03 11:52:34 +08:00
admin
1f7dfd17a7
feat: 分离密码重置和修改密码功能
...
- 密码重置:用户忘记密码时通过邮箱/短信验证(需开启开关)
- 修改密码:已登录用户通过旧密码修改(固定功能,无需配置)
- 添加 EnablePasswordReset 开关控制密码重置功能
- PasswordResetMethod 只支持 email/sms 两种验证方式
- 添加短信配置管理功能
- 移除独立的应用邮箱设置页面
2026-05-03 01:18:27 +08:00
admin
9b82fbef4e
feat: 添加存储配置管理功能
...
- 添加存储配置管理页面(列表、创建、编辑)
- 支持本地存储、S3、WebDAV、FTP、SFTP 等存储类型
- 添加存储配置测试连接功能
- 本地存储自动初始化且禁止删除
- 修复 Switch 组件状态显示问题
- 添加更新存储配置时的 status 字段支持
2026-05-02 17:48:58 +08:00
admin
ea8ffb6c74
fix: 订阅模式登录验证、永久会员类型区分、动态代码HTTP返回值修复、侧边栏滚动位置保持
...
- 修复订阅模式登录时错误检查余额的问题
- 区分无限余额和永久订阅两种永久会员类型
- 修复动态代码HTTP请求返回值在JS中无法正确访问的问题
- 添加侧边栏滚动位置保持功能
- 移除developer角色相关代码,统一使用admin
- 添加缺失的i18n翻译key
2026-05-01 16:39:31 +08:00
admin
c0edb32614
refactor: 移除developer目录,统一使用admin角色;重命名developer-sidebar为admin-sidebar;修复路由守卫和header中的developer引用
2026-05-01 12:18:58 +08:00
admin
3bcfeff65d
fix: 应用管理页面从卡片布局改为表格布局
2026-05-01 09:10:27 +08:00
admin
c6187d726f
fix: 修复管理后台布局引用错误,恢复侧边栏
2026-05-01 08:10:43 +08:00
admin
4ed00f29e2
refactor: 移除佣金比例字段,将developer统一为admin
2026-05-01 08:08:11 +08:00
Admin
2a8f32cbb9
统一角色体系为admin/agent/user,修复代理查询角色错误,添加语言切换和明暗切换
2026-04-29 17:33:54 +08:00
Admin
5c63882e71
更新开发者平台:代理商管理、版本管理、UI优化
2026-04-29 15:19:17 +08:00
Admin
afe67d704e
Initial commit: 网络验证平台
2026-04-27 17:22:56 +08:00