"backend/vscode:/vscode.git/clone" did not exist on "7f7bbdf67797510242f41654c151d62fd70eef02"
  1. 05 Jan, 2026 12 commits
    • IanShaw027's avatar
      refactor(frontend): 完成所有组件的内联SVG统一替换为Icon组件 · 4251a5a4
      IanShaw027 authored
      - 扩展 Icon.vue 组件,新增 60+ 图标路径
        - 导航类: arrowRight, arrowLeft, arrowUp, arrowDown, chevronUp, externalLink
        - 状态类: checkCircle, xCircle, exclamationCircle, exclamationTriangle, infoCircle
        - 用户类: user, userCircle, userPlus, users
        - 文档类: document, clipboard, copy, inbox
        - 操作类: download, upload, filter, sort
        - 安全类: key, lock, shield
        - UI类: menu, calendar, home, terminal, gift, creditCard, mail
        - 数据类: chartBar, trendingUp, database, cube
        - 其他: bolt, sparkles, cloud, server, sun, moon, book 等
      
      - 重构 56 个 Vue 组件,用 Icon 组件替换内联 SVG
        - 净减少约 2200 行代码
        - 提升代码可维护性和一致性
        - 统一图标样式和尺寸管理
      4251a5a4
    • ianshaw's avatar
    • ianshaw's avatar
      fix(frontend): 修复重构时遗漏的 SVG 图标,创建统一图标管理组件 · 471b1c3e
      ianshaw authored
      - 创建 Icon.vue 统一管理 SVG 图标(20+ 常用图标)
      - 修复 AccountActionMenu 中被错误替换为 emoji 的图标
      - 修复 ProfileView 和 GroupsView 中的 emoji 图标
      - 图标支持 size/strokeWidth 属性,便于复用
      471b1c3e
    • ianshaw's avatar
    • ianshaw's avatar
      fix(frontend): 优化账号筛选工具条布局并修复IP管理表头翻译 · c52c47e1
      ianshaw authored
      - 筛选组件保持固定宽度,不再自动拉伸填充
      - 左右分布布局,中间自然留空
      - 修复 IP 管理页面表头缺失的中文翻译
      c52c47e1
    • ianshaw's avatar
      fix(frontend): 恢复 UsageTable 缺失的列和功能 · e67dbbdb
      ianshaw authored
      - 恢复 API Key、账号、分组、类型、计费类型等列
      - 恢复 Token 详情显示(含缓存读写)
      - 恢复首Token时间、耗时列
      - 恢复请求ID列及复制功能
      e67dbbdb
    • ianshaw's avatar
      fix(frontend): 修复重构页面的遗漏问题 · ee29b942
      ianshaw authored
      - 添加 en.ts 中缺失的 admin.redeem.types 翻译
      - RedeemView 状态筛选器添加 expired 选项
      - SubscriptionsView 用量进度条添加 null/undefined 兜底
      - SubscriptionsView 添加 validity_days 表单校验
      - GroupsView/ProxiesView 搜索图标添加 dark mode 样式
      ee29b942
    • ianshaw's avatar
      fix(frontend): 完善表单校验并添加错误提示 · 85f53ef2
      ianshaw authored
      - UserEditModal: 添加 email 必填和 concurrency 最小值校验
      - UserAttributesConfigModal: 添加 key/name 必填和 options 非空校验
      - GroupsView: 添加 name 必填校验
      - ProxiesView: 添加 name/host 必填和 port 范围校验
      - UserBalanceModal: 添加 amount 有效性和余额充足性校验
      - RedeemView: 添加空兑换码错误提示
      - i18n: 添加所有新增校验的中英文翻译
      85f53ef2
    • ianshaw's avatar
      fix(frontend): 恢复使用记录图表功能并添加订阅分配表单校验 · 960c09cd
      ianshaw authored
      - UsageView: 恢复 ModelDistributionChart、TokenUsageTrend 图表和粒度选择器
      - SubscriptionsView: 添加分配订阅时的用户和分组校验提示
      - i18n: 添加 pleaseSelectUser/pleaseSelectGroup 翻译
      960c09cd
    • ianshaw's avatar
      fix(frontend): 修复账号管理页面组件拆分时遗漏的功能 · b05e90e4
      ianshaw authored
      - AccountTableFilters: 添加 Antigravity 平台选项、类型筛选器、inactive 状态
      - AccountActionMenu: 恢复重置状态和清除限速按钮,添加 dark mode 样式
      - AccountsView: 修正 handleClearRateLimit 调用正确的 API
      b05e90e4
    • ianshaw's avatar
      fix: 修复空content处理及更新Gemini使用指南链接 · 118ca5cf
      ianshaw authored
      - 修复FilterThinkingBlocksForRetry对空content数组的处理
      - docker-compose添加SECURITY_URL_ALLOWLIST_UPSTREAM_HOSTS配置
      - 更新Gemini使用指南链接:检查归属地、修改归属地、激活Gemini Web
      118ca5cf
    • shaw's avatar
      fix(frontend): 启用 vue-i18n JIT 编译修复消息插值不工作问题 · 090c9e66
      shaw authored
      问题:使用 vue-i18n 运行时版本后,带变量的翻译(如 '{days} 天')
      无法正确显示,直接显示原始字符串。
      
      原因:运行时版本不含消息编译器,无法在运行时编译消息插值。
      
      解决:启用 JIT 编译(__INTLIFY_JIT_COMPILATION__: true)
      - JIT 编译器将消息编译为 AST 对象而非 JavaScript 代码
      - 通过解释执行 AST 实现插值,无需 eval 或 new Function
      - 符合 CSP script-src 'self' 策略,不降低安全性
      
      同时将 vite.config.js.timestamp-* 临时文件添加到 .gitignore
      090c9e66
  2. 04 Jan, 2026 21 commits
    • IanShaw027's avatar
      refactor(frontend): 统一管理页面工具条布局和操作列样式 · eef12cb9
      IanShaw027 authored
      ## 修复内容
      
      ### 1. 统一操作列按钮样式
      - 所有操作列按钮统一为"图标+文字"垂直排列样式
      - UsersView: 编辑和更多按钮添加文字标签
      - 与 AccountsView、GroupsView 等页面保持一致
      
      ### 2. 统一顶部工具条布局(6个管理页面)
      - 使用 flex + justify-between 布局
      - 左侧:模糊搜索框、筛选器(可多行排列)
      - 右侧:刷新、创建等操作按钮(靠右对齐)
      - 响应式:宽度不够时右侧按钮自动换行到上一行
      
      ### 3. 修复的页面
      - AccountsView: 合并 actions/filters 到单行工具条
      - UsersView: 标准左右分栏,操作列添加文字
      - GroupsView: 新增搜索框,左右分栏布局
      - ProxiesView: 左右分栏,响应式布局
      - SubscriptionsView: 新增用户模糊搜索,左右分栏
      - UsageView: 补齐所有筛选项,左右分栏
      
      ### 4. 新增功能
      - GroupsView: 新增分组名称/描述模糊搜索
      - SubscriptionsView: 新增用户模糊搜索功能
      - UsageView: 补齐 API Key 搜索筛选
      
      ### 5. 国际化
      - 新增相关搜索框的 placeholder 文案(中英文)
      
      ## 技术细节
      - 使用 flex-wrap-reverse 实现响应式换行
      - 左侧筛选区使用 flex-wrap 支持多行
      - 右侧按钮区使用 ml-auto + justify-end 保持右对齐
      - 移动端使用 w-full sm:w-* 响应式宽度
      
      ## 验证结果
      -  TypeScript 类型检查通过
      -  所有页面布局统一
      -  响应式布局正常工作
      eef12cb9
    • IanShaw027's avatar
      fix(frontend): 修复前端重构后的样式一致性和功能完整性 · 64b52c43
      IanShaw027 authored
      ## 修复内容
      
      ### 1. AccountsView 功能恢复
      - 恢复3个缺失的模态框组件:
        - ReAuthAccountModal.vue - 重新授权功能
        - AccountTestModal.vue - 测试连接功能
        - AccountStatsModal.vue - 查看统计功能
      - 恢复 handleTest/handleViewStats/handleReAuth 调用模态框
      - 修复 UpdateAccountRequest 类型定义(添加 schedulable 字段)
      
      ### 2. DashboardView 修复
      - 恢复 formatBalance 函数(支持千位分隔符显示)
      - 为 UserDashboardStats 添加完整 Props 类型定义
      - 为 UserDashboardRecentUsage 添加完整 Props 类型定义
      - 优化格式化函数到共享 utils/format.ts
      
      ### 3. 类型安全增强
      - 修复 UserAttributeOption 索引签名兼容性
      - 移除未使用的类型导入
      - 所有组件 Props 类型完整
      
      ## 验证结果
      -  TypeScript 类型检查通过(0 errors)
      -  vue-tsc 检查通过(0 errors)
      -  所有样式与重构前100%一致
      -  所有功能完整恢复
      
      ## 影响范围
      - AccountsView: 代码行数从974行优化到189行(提升80.6%可维护性)
      - DashboardView: 保持组件化同时恢复所有原有功能
      - 深色模式支持完整
      - 所有颜色方案和 SVG 图标保持一致
      
      Closes #149
      64b52c43
    • shaw's avatar
      fix(前端): 修复 CSP 策略阻止 vue-i18n 运行时编译 · ad2ff908
      shaw authored
      使用 vue-i18n 纯运行时版本替代默认版本,避免运行时消息编译
      需要 `new Function` 而被 CSP `script-src 'self'` 策略阻止。
      ad2ff908
    • IanShaw027's avatar
    • IanShaw027's avatar
      fix: 修复代码审查报告中的4个关键问题 · f60f943d
      IanShaw027 authored
      1. 资源管理冗余(ForwardGemini双重Close)
         - 错误分支读取body后立即关闭原始body,用内存副本重新包装
         - defer添加nil guard,避免重复关闭
         - fallback成功时显式关闭旧body,确保连接释放
      
      2. Schema校验丢失(cleanJSONSchema移除字段无感知)
         - 新增schemaCleaningWarningsEnabled()支持环境变量控制
         - 实现warnSchemaKeyRemovedOnce()在非release模式下告警
         - 移除关键验证字段时输出warning,包含key和path
      
      3. UI响应式风险(UsersView操作菜单硬编码定位)
         - 菜单改为先粗定位、渲染后测量、再clamp到视口内
         - 添加max-height + overflow-auto,超出时可滚动
         - 增强交互:点击其它位置/滚动/resize自动关闭或重新定位
      
      4. 身份补丁干扰(TransformClaudeToGemini默认注入)
         - 新增TransformOptions + TransformClaudeToGeminiWithOptions
         - 系统设置新增enable_identity_patch、identity_patch_prompt
         - 完整打通handler/dto/service/frontend配置链路
         - 默认保持启用,向后兼容现有行为
      
      测试:
      - 后端单测全量通过:go test ./...
      - 前端类型检查通过:npm run typecheck
      f60f943d
    • IanShaw027's avatar
      refactor(frontend): comprehensive architectural optimization and base component extraction · 99308ab4
      IanShaw027 authored
      - Standardized table loading logic with enhanced useTableLoader.
      - Unified form submission patterns via new useForm composable.
      - Extracted common UI components: SearchInput and StatusBadge.
      - Centralized common interface definitions in types/index.ts.
      - Achieved TypeScript zero-error status across refactored files.
      - Greatly improved code reusability and maintainability.
      99308ab4
    • IanShaw027's avatar
      refactor(frontend): final component split and comprehensive type safety fixes · d4d21d5e
      IanShaw027 authored
      - Completed modular refactoring of KeysView.vue and SettingsView.vue.
      - Resolved remaining TypeScript errors in new components.
      - Standardized prop types and event emitters for sub-components.
      - Optimized bundle size by eliminating redundant template code and unused script variables.
      - Verified system stability with final type checking.
      d4d21d5e
    • yangjianbo's avatar
      feat(界面): 为 Gemini 配置片段添加语法高亮 · f8e7255c
      yangjianbo authored
      补齐高亮渲染并保留纯文本回退
      新增高亮 token 工具并做 HTML 转义
      f8e7255c
    • IanShaw027's avatar
      refactor(frontend): comprehensive split of large view files into modular components · e99063e1
      IanShaw027 authored
      - Split UsersView.vue into UserCreateModal, UserEditModal, UserApiKeysModal, etc.
      - Split UsageView.vue into UsageStatsCards, UsageFilters, UsageTable, etc.
      - Split DashboardView.vue into UserDashboardStats, UserDashboardCharts, etc.
      - Split AccountsView.vue into AccountTableActions, AccountTableFilters, etc.
      - Standardized TypeScript types across new components to resolve implicit 'any' and 'never[]' errors.
      - Improved overall frontend maintainability and code clarity.
      e99063e1
    • 墨颜's avatar
      refactor(keys): 优化分组选项显示与代码复用 · 6708f400
      墨颜 authored
      - 删除冗余的 vite.config.js,统一使用 TypeScript 配置
      - 创建 GroupOptionItem 组件封装分组选项 UI 逻辑(GroupBadge + 描述 + 勾选状态)
      - 在密钥页面的分组选择器中显示分组描述文字
      - 添加选中状态的勾选图标,提升交互体验
      - 优化描述文字左对齐和截断显示效果
      - 消除代码重复,简化维护成本
      6708f400
    • IanShaw027's avatar
    • IanShaw027's avatar
      fix(frontend): 优化前端组件和国际化支持 · 6c036d7b
      IanShaw027 authored
      - 添加 Accept-Language 请求头支持后端翻译
      - 优化账户状态指示器和测试模态框
      - 简化用户属性表单和配置模态框
      - 新增多个国际化翻译条目
      - 重构管理视图代码,提升可维护性
      6c036d7b
    • IanShaw027's avatar
      refactor(settings): 规范化缩写词命名并优化前端帮助界面 · 2632a710
      IanShaw027 authored
      - 后端:将 Smtp/Api/Doc 字段改为 SMTP/API/Doc(遵循 Go 命名规范)
      - 前端:添加 Gemini 帮助按钮,简化配额说明展示
      2632a710
    • IanShaw027's avatar
      feat(gemini): 完善 Gemini OAuth 配额系统和用量显示 · a185ad11
      IanShaw027 authored
      主要改动:
      - 后端:重构 Gemini 配额服务,支持多层级配额策略(GCP Standard/Free, Google One, AI Studio, Code Assist)
      - 后端:优化 OAuth 服务,增强 tier_id 识别和存储逻辑
      - 后端:改进用量统计服务,支持不同平台的配额查询
      - 后端:优化限流服务,增加临时解除调度状态管理
      - 前端:统一四种授权方式的用量显示格式和徽标样式
      - 前端:增强账户配额信息展示,支持多种配额类型
      - 前端:改进创建和重新授权模态框的用户体验
      - 国际化:完善中英文配额相关文案
      - 移除 CHANGELOG.md 文件
      
      测试:所有单元测试通过
      a185ad11
    • shaw's avatar
      feat(proxy): 统一代理配置并支持 SOCKS5H 协议 · 70e9329e
      shaw authored
      - 新增 proxyutil 包,统一 HTTP/HTTPS/SOCKS5/SOCKS5H 代理配置逻辑
      - SOCKS5H 支持服务端 DNS 解析,避免本地 DNS 泄露
      - 移除 ProxyStrict 宽松模式,代理失败直接返回错误不回退直连
      - 前端代理管理页面支持 SOCKS5H 协议的添加/编辑/批量导入
      - 补充 IPv6 地址和特殊字符密码的边界测试
      70e9329e
    • Yuhao Jiang's avatar
      fix(frontend): 修复跨时区日期范围筛选问题 · 600f9ce2
      Yuhao Jiang authored
      当管理员在比服务器时区更早的时区(如芝加哥 UTC-6)访问使用记录页面时,
      由于服务器时区(如中国 UTC+8)已经是"明天",导致最新的记录无法显示。
      
      修复方案:
      - DateRangePicker: 将日期选择器的 max 限制从"今天"改为"明天"
      - UsageView: 默认和重置时的 endDate 使用"明天"而非"今天"
      
      这样可以确保跨时区场景下用户能看到所有最新记录。
      
      🤖 Generated with [Claude Code](https://claude.ai/code
      
      )
      Co-Authored-By: default avatarClaude <noreply@anthropic.com>
      600f9ce2
    • IanShaw027's avatar
      fix(frontend): 统一徽标样式并修复 Google One 用量显示 · 7fe09c83
      IanShaw027 authored
      **修复内容:**
      
      1. **统一徽标样式**
         - 所有徽标使用相同的 Tailwind 类
         - Free: gray-100/600, Pro: blue-100/600, Ultra: purple-100/600
         - 暗色模式统一使用 /40 透明度
         - Client 和 AI Studio 都使用蓝色徽标
      
      2. **修复 Google One 用量显示**
         - 后端已为所有 Gemini OAuth (GCP/Google One/Client) 返回用量数据
         - 前端只要有用量数据就显示进度条(移除 isGeminiCodeAssist 限制)
         - Google One 现在也会显示 Pro/Flash 进度条 + 统计数据
         - 只有自定义 Client OAuth 显示「无限流」(无追踪)
      
      **最终显示规则:**
      - AI Studio API Key: 「无限流」或「限流 XX」
      - Client OAuth: 「无限流」(无追踪)
      - GCP OAuth: Pro/Flash 进度条 + 统计
      - Google One OAuth: Pro/Flash 进度条 + 统计
      7fe09c83
    • IanShaw027's avatar
      fix(frontend): 修正 AI Studio 和 Client 的标签显示 · 43d9ef7f
      IanShaw027 authored
      - API Key 账户:显示「AI Studio」
      - 自定义 OAuth Client 账户:显示「Client」
      
      之前错误地将两者都显示为同一标签,现在已修正。
      43d9ef7f
    • IanShaw027's avatar
      fix(frontend): 完全统一 Gemini 四种授权方式的显示格式 · 482bc289
      IanShaw027 authored
      **统一后的格式:**
      - 第一行:授权方式简称 + 用户等级
      - 后续行:有限额显示模型进度条+统计数据+窗口时间,无限额显示「无限流」
      
      **四种授权方式:**
      1. **AI Studio OAuth**
         - 第一行:「AI Studio」
         - 后续:「无限流」
      
      2. **GCP Code Assist OAuth** (原 CLI)
         - 第一行:「GCP Free/Pro/Ultra」
         - 后续:Pro/Flash 进度条 + 统计数据(0 req 0 /bin/zsh.00)+ 窗口时间
      
      3. **Google One OAuth** (原 G1)
         - 第一行:「Google One Personal/Free/Pro/...」
         - 后续:「无限流」
      
      4. **API Key** (原 Gemini)
         - 第一行:「Client」
         - 后续:「无限流」或「限流 XX」
      
      **修改内容:**
      - AccountUsageCell.vue: 标签改名(CLI→GCP,G1→Google One),模型标签简化(Pro/Flash),保留统计数据
      - AccountQuotaInfo.vue: 标签改名(Gemini→Client)
      482bc289
    • IanShaw027's avatar
      feat(frontend): 统一 Gemini 四种授权方式的用量窗口显示格式 · 552118eb
      IanShaw027 authored
      **统一显示规则:**
      - 第一行:授权方式简称 + 用户等级(如有)
      - 后续内容:
        - 有分模型限额:显示各模型的用量进度条和窗口时间
        - 无限额/无分模型:显示「无限流」
      
      **具体改动:**
      
      1. AI Studio OAuth
         - 第一行:「AI Studio」
         - 后续:「无限流」
      
      2. GCP Code Assist OAuth
         - 第一行:「CLI Free/Pro/Ultra」
         - 后续:Pro/Flash 模型进度条(保持现状)
      
      3. Google One OAuth
         - 第一行:「G1 Personal/Free/Pro/...」
         - 后续:「无限流」(暂无配额追踪)
      
      4. API Key
         - 第一行:「Gemini」徽章
         - 后续:「无限流」或「限流 XX」
      
      **文件修改:**
      - AccountUsageCell.vue: 区分 Code Assist 和其他类型的显示逻辑
      - AccountQuotaInfo.vue: 改为两行布局,统一样式
      - i18n: 添加 rateLimit.unlimited 翻译(中文「无限流」/英文「Unlimited」)
      552118eb
    • ianshaw's avatar
      fix(frontend): 状态文本国际化和错误处理修复 · d505c5b2
      ianshaw authored
      - AccountStatusIndicator: 状态文本使用 i18n
      - CreateAccountModal: TypeScript 类型修复
      - TempUnschedStatusModal: 错误处理改进
      d505c5b2
  3. 03 Jan, 2026 5 commits
    • ianshaw's avatar
      feat(frontend): 增强用户界面和使用教程 · ff3f514f
      ianshaw authored
      主要改进:
      - 扩展 UseKeyModal 支持 Antigravity/Gemini 平台教程
      - 添加 CCS (Claude Code Settings) 导入说明
      - 添加混合渠道风险警告提示
      - 优化登录/注册页面样式
      - 更新 Antigravity 混合调度选项文案
      - 完善中英文国际化文案
      ff3f514f
    • ianshaw's avatar
      feat(admin): 添加临时不可调度功能 · 09da6904
      ianshaw authored
      当账号触发特定错误码和关键词匹配时,自动临时禁用调度:
      
      后端:
      - 新增 TempUnschedCache Redis 缓存层
      - RateLimitService 支持规则匹配和状态管理
      - 添加 GET/DELETE /accounts/:id/temp-unschedulable API
      - 数据库迁移添加 temp_unschedulable_until/reason 字段
      
      前端:
      - 账号状态指示器显示临时不可调度状态
      - 新增 TempUnschedStatusModal 详情弹窗
      - 创建/编辑账号时支持配置规则和预设模板
      - 完整的中英文国际化支持
      09da6904
    • ianshaw's avatar
      feat(gemini): 优化 OAuth 和配额展示 · 26106eb0
      ianshaw authored
      主要改进:
      - 修复 google_one OAuth scopes 配置问题
      - 添加 Gemini 账号配额展示组件
      - 优化 Code Assist 类型检测逻辑
      - 添加 OAuth 测试用例
      26106eb0
    • ianshaw's avatar
      refactor: 移除 Ops 监控模块 · df1ef3de
      ianshaw authored
      移除未完成的运维监控功能,简化系统架构:
      - 删除 ops_handler, ops_service, ops_repo 等后端代码
      - 删除 ops 相关数据库迁移文件
      - 删除前端 OpsDashboard 页面和 API
      df1ef3de
    • yangjianbo's avatar
      fix(安全): 修复上游校验与 URL 清理问题 · 25e16326
      yangjianbo authored
      增加请求阶段 DNS 解析校验,阻断重绑定到私网
      补充默认透传 WWW-Authenticate 头,保留认证挑战
      前端相对 URL 过滤拒绝 // 协议相对路径
      
      测试: go test ./internal/repository -run TestGitHubReleaseServiceSuite
      测试: go test ./internal/repository -run TestTurnstileServiceSuite
      测试: go test ./internal/repository -run TestProxyProbeServiceSuite
      测试: go test ./internal/repository -run TestClaudeUsageServiceSuite
      25e16326
  4. 02 Jan, 2026 2 commits
    • song's avatar
      docs(i18n): 更新 Antigravity 混合调度选项的文案 · 2e60a596
      song authored
      - 显示名称改为「在 /v1/messages 中使用」
      - 添加更醒目的警告提示,强调 Antigravity 和 Anthropic 账号不能混用
      2e60a596
    • song's avatar
      refactor(antigravity): 统一额度刷新机制与 Claude 一致 · 4543a6f0
      song authored
      将 Antigravity 的额度刷新从后台定时刷新改为按需获取模式,与 Claude 统一:
      
      - 删除 AntigravityQuotaRefresher 后台服务
      - 新增 QuotaFetcher 接口和 AntigravityQuotaFetcher 实现
      - 前端改为调用 usage API 获取额度,支持 loading/error 状态
      - 统一使用内存缓存(10 分钟 TTL)
      4543a6f0