1. 27 Apr, 2026 1 commit
    • shaw's avatar
      feat(affiliate): add feature toggle and per-user custom invite settings · ae317432
      shaw authored and 陈曦's avatar 陈曦 committed
      - 在系统设置「功能开关」中新增邀请返利总开关,默认关闭;
        关闭态:菜单隐藏、注册忽略 aff、新充值不返利,但已有 quota 仍可转余额
      - 支持管理员为指定用户设置专属邀请码(覆盖随机码,全局唯一)
      - 支持管理员为指定用户设置专属返利比例(覆盖全局比例,可单条/批量调整)
      - 在系统设置邀请返利卡片内嵌入专属用户管理表格(搜索/编辑/批量/删除),
        删除采用项目通用 ConfirmDialog,会同时清除专属比例并把邀请码重置为系统随机码
      - /affiliate 用户页新增「我的返利比例」卡片与动态使用说明,让用户直观看到
        分享后能拿到多少(同源 resolveRebateRatePercent 计算,与实际充值一致)
      - 新增数据库迁移 132 添加 aff_rebate_rate_percent 与 aff_code_custom 列
      - 新增 admin 路由组 /api/v1/admin/affiliates/users/* 共 5 个端点
      - AffiliateService 改为只依赖 *SettingService,去除冗余的 SettingRepository
      - 邀请码格式校验放宽到 [A-Z0-9_-]{4,32},兼容旧 12 位系统码与新自定义码
      - 补充单元测试与集成测试覆盖新方法、冲突路径与边界值
      ae317432
  2. 23 Apr, 2026 1 commit
  3. 21 Apr, 2026 2 commits
  4. 20 Apr, 2026 4 commits
    • IanShaw027's avatar
      067eb23d
    • erio's avatar
      feat(channel-monitor): add feature switch settings + fix extra_models save · 7da51240
      erio authored
      Settings:
      - New "功能开关" tab between 通用设置 and 安全与认证
      - ChannelMonitorEnabled toggle: runner skips scheduling when false,
        user-facing list returns empty
      - ChannelMonitorDefaultIntervalSeconds (15-3600): pre-fills interval
        when creating a new monitor; each monitor can still override
      
      Bug fix:
      - ModelTagInput now commits pending input on blur, not just Enter/Tab.
        Previously clicking "save" with an un-Enter'd extra model would drop
        the value (DB stored extra_models=[] even when user typed entries).
      
      Backend:
      - domain_constants: SettingKeyChannelMonitor{Enabled,DefaultIntervalSeconds}
      - SettingService.GetChannelMonitorRuntime: lightweight getter used by
        runner tick + user handler per-request (fail-open on DB error)
      - Runner tickDueChecks: bails early when feature disabled
      - ChannelMonitorUserHandler: checks feature flag before serving
      - Comment on runner doc: scheduler state is implicit (every tick re-reads
        ListEnabled from DB), so CRUD ops on monitors self-maintain the schedule
      
      Bump VERSION to 0.1.114.25
      7da51240
    • IanShaw027's avatar
      feat: add oauth callback email binding ui · 6ea3f42e
      IanShaw027 authored
      6ea3f42e
    • IanShaw027's avatar
      feat: rebuild auth identity foundation flow · e9de839d
      IanShaw027 authored
      e9de839d
  5. 14 Apr, 2026 2 commits
    • erio's avatar
      feat(notify): improve balance notify card UX · 81287e96
      erio authored
      - Show system default threshold as placeholder in custom threshold input
      - Display user's primary email with "Primary" badge
      - Support adding multiple pending emails before verification
      - Each pending email has independent send/verify/resend flow
      - Expose balance_low_notify_threshold in PublicSettings API
      - Clean up timers on unmount to prevent leaks
      81287e96
    • erio's avatar
      feat(notify): add global toggles, percentage threshold, and visibility control · eba289a7
      erio authored
      - Add global toggle for account quota notification in admin settings
      - Add percentage-based threshold type for per-account quota alerts
      - Hide balance notify card on user profile when global toggle is off
      - Expose balance_low_notify_enabled and account_quota_notify_enabled in PublicSettings
      - Add threshold type (fixed/percentage) to QuotaNotifyToggle with $ / % switcher
      eba289a7
  6. 11 Apr, 2026 2 commits
  7. 10 Apr, 2026 2 commits
  8. 09 Apr, 2026 2 commits
  9. 05 Apr, 2026 1 commit
    • shaw's avatar
      fix: remove remaining Sora references from frontend · a0729677
      shaw authored
      The previous Sora removal missed several frontend references, causing
      TypeScript build errors for sora_client_enabled and a missing SoraView.vue
      import. Clean up all remaining Sora code from types, router, sidebar,
      settings, store, and accounts API.
      a0729677
  10. 29 Mar, 2026 1 commit
  11. 24 Mar, 2026 1 commit
  12. 11 Mar, 2026 1 commit
    • John Doe's avatar
      feat: add Backend Mode toggle to disable user self-service · 6826149a
      John Doe authored
      
      
      Add a system-wide "Backend Mode" that disables user self-registration
      and self-service while keeping admin panel and API gateway fully
      functional. When enabled, only admin can log in; all user-facing
      routes return 403.
      
      Backend:
      - New setting key `backend_mode_enabled` with atomic cached reads (60s TTL)
      - BackendModeUserGuard middleware blocks non-admin authenticated routes
      - BackendModeAuthGuard middleware blocks registration/password-reset auth routes
      - Login/Login2FA/RefreshToken handlers reject non-admin when enabled
      - TokenPairWithUser struct for role-aware token refresh
      - 20 unit tests (middleware + service layer)
      
      Frontend:
      - Router guards redirect unauthenticated users to /login
      - Admin toggle in Settings page
      - Login page hides register link and footer in backend mode
      - 9 unit tests for router guard logic
      - i18n support (en/zh)
      
      27 files changed, 833 insertions(+), 17 deletions(-)
      Co-Authored-By: default avatarClaude Opus 4.6 <noreply@anthropic.com>
      6826149a
  13. 04 Mar, 2026 1 commit
  14. 02 Mar, 2026 1 commit
  15. 28 Feb, 2026 1 commit
  16. 03 Feb, 2026 1 commit
  17. 02 Feb, 2026 1 commit
  18. 28 Jan, 2026 1 commit
  19. 24 Jan, 2026 1 commit
    • shaw's avatar
      feat(auth): 密码重置邮件队列化与限流优化 · 9cc83525
      shaw authored
      - 邮件发送改为异步队列处理,避免并发导致发送失败
      - 新增 Email 维度限流(30秒冷却期),防止邮件轰炸
      - Token 验证使用常量时间比较,防止时序攻击
      - 重构代码消除冗余,提取公共验证逻辑
      9cc83525
  20. 20 Jan, 2026 1 commit
    • shaw's avatar
      feat(promo-code): complete promo code feature implementation · 192efb84
      shaw authored
      - Add promo_code_enabled field to SystemSettings and PublicSettings DTOs
      - Add promo code validation in registration flow
      - Add admin settings UI for promo code configuration
      - Add i18n translations for promo code feature
      192efb84
  21. 19 Jan, 2026 1 commit
  22. 10 Jan, 2026 1 commit
    • Edric Li's avatar
      feat(settings): add home content customization and config injection · 5265b12c
      Edric Li authored
      - Add home_content setting for custom homepage (HTML or iframe URL)
      - Inject public settings into index.html to eliminate page flash
      - Support ETag caching with automatic invalidation on settings update
      - Add Vite plugin for dev mode settings injection
      - Refactor HomeView to use appStore instead of local API calls
      5265b12c
  23. 09 Jan, 2026 2 commits
  24. 29 Dec, 2025 1 commit
    • shaw's avatar
      refactor: 移除旧版数据库配置的简易模式实现 · 31fef105
      shaw authored
      移除与 PR #66 冲突的旧版简易模式实现(commit 7d4b7dee)。
      新版简易模式通过 run_mode 配置文件/环境变量控制,无需数据库设置。
      
      后端变更:
      - 移除 SettingKeySimpleMode 常量
      - 移除 SystemSettings/PublicSettings 中的 SimpleMode 字段
      - 移除 setting_handler 中的简易模式切换逻辑
      - 移除 userService 依赖(不再需要自动设置管理员并发数)
      
      前端变更:
      - 移除 appStore.simpleMode 状态
      - 移除设置页面的"使用模式"设置区块
      - 移除 GroupsView 中的简易模式相关逻辑
      - 移除相关国际化文案
      31fef105
  25. 28 Dec, 2025 1 commit
    • shaw's avatar
      feat: 添加简单模式功能 · 7d4b7dee
      shaw authored
      新增简单模式设置,适合个人使用场景:
      - 隐藏多用户管理相关菜单(用户管理、兑换码等)
      - 自动关闭用户注册功能
      - 管理员并发数自动设为无限制(99999)
      - 侧边栏根据模式动态调整菜单项
      
      同时优化分组页面的"专属分组"功能,添加帮助提示说明使用场景
      7d4b7dee
  26. 26 Dec, 2025 1 commit
    • ianshaw's avatar
      style(frontend): 统一核心模块代码风格 · 01f990a5
      ianshaw authored
      - Composables: 优化 OAuth 相关 hooks 代码格式
      - Stores: 规范状态管理模块格式
      - Types: 统一类型定义格式
      - Utils: 优化工具函数格式
      - App.vue & style.css: 调整全局样式和主组件格式
      01f990a5
  27. 24 Dec, 2025 1 commit
    • shaw's avatar
      feat(settings): 添加文档链接配置功能 · 2e7818d6
      shaw authored
      - 后台系统设置新增文档链接(doc_url)配置项
      - 首页顶部导航栏显示文档链接图标(条件渲染)
      - Footer区域添加文档链接和GitHub链接
      - 支持中英文国际化
      2e7818d6
  28. 19 Dec, 2025 2 commits
  29. 18 Dec, 2025 2 commits
    • shaw's avatar
      fix: 修复前端多个 bug · 14517146
      shaw authored
      1. 版本号闪烁问题
         - 将版本信息缓存到 Pinia store,避免每次路由切换都重新请求
         - 添加加载占位符,版本为空时显示骨架屏
      
      2. 管理员登录跳转问题
         - 管理员登录后现在正确跳转到 /admin/dashboard
         - 普通用户仍跳转到 /dashboard
      
      3. Dashboard 页面空白报错
         - 修复 API 返回 null 时访问 .length 导致的 TypeError
         - 为 computed 属性添加可选链操作符保护
         - 为数据赋值添加空数组默认值
      14517146
    • shaw's avatar
      First commit · 642842c2
      shaw authored
      642842c2