shaw
8085a00d24
chore: 更新 .gitignore 和管理脚本
...
- 在 .gitignore 中添加更多备份文件忽略规则
- 在 manage.sh 脚本中添加切换分支功能
- 优化脚本执行权限设置逻辑
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-08 20:36:33 +08:00
shaw
66857af148
feat: 在 API Keys 页面使用统计栏添加最后使用时间显示
...
- 在桌面端表格视图的使用统计列中增加最后使用时间
- 在移动端卡片视图的统计区域增加最后使用时间
- 添加 formatLastUsed 函数格式化时间显示
- 时间显示规则与 Accounts 页面保持一致(刚刚/X分钟前/X小时前/X天前/具体日期)
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-08 20:27:20 +08:00
shaw
31bdb4aa8c
feat: add comprehensive 401 error handling and account status management
...
- Add 401 error detection and automatic account suspension after 3 consecutive failures
- Implement account status reset functionality for clearing all error states
- Enhance admin interface with status reset controls and improved status display
- Upgrade service management script with backup protection and retry mechanisms
- Add mandatory code formatting requirements using Prettier
- Improve account selector with detailed status information and color coding
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-08 00:35:26 +08:00
shaw
c972ea485d
fix: manage.sh在centos上异常的问题
2025-08-06 14:18:56 +08:00
shaw
0c1eb3eae2
fix: 修复多个部署和管理脚本问题
...
- 修复workflow中web-dist分支推送node_modules的问题
- 添加.gitignore文件排除node_modules
- 使用git add --all -- ':\!node_modules'命令排除node_modules目录
- 修复scripts/manage.sh脚本问题
- 移除软链创建时的覆盖询问,默认使用代码中的最新版本
- 安装时自动给scripts/manage.sh添加执行权限
- 创建软链时确保目标脚本有执行权限
- 修复CentOS 9系统上服务启动失败的问题
- 改进systemd服务配置,添加环境变量和日志目录创建
- 添加systemctl daemon-reload确保配置生效
- 增加启动状态检查和失败时的npm回退机制
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-06 13:50:30 +08:00
shaw
1a423d3afd
feat: 优化前端构建分发和模型价格更新机制
...
1. 前端构建分发优化:
- 修改 GitHub Actions workflow,构建前端后推送到 web-dist 分支
- 更新 manage.sh 安装脚本,从 web-dist 分支获取预构建文件
- 解决部分机器无法本地编译前端的问题
- 添加测试脚本 test-web-dist.sh 验证流程
2. 模型价格更新功能:
- 添加手动更新模型价格脚本 update-model-pricing.js
- 新增 npm run update:pricing 命令
- 在 manage.sh 添加 update-pricing 命令和菜单选项
- 支持备份、进度显示和统计信息
3. 其他改进:
- 优化安装流程,减少对 Node.js 环境的依赖
- 提供多种更新模型价格的方式
- 改进错误处理和回退机制
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-06 10:24:03 +08:00
shaw
52718ef608
chore: 更新项目配置文件
...
- 更新 Docker 配置和构建脚本
- 优化项目文档和部署脚本
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-04 10:32:22 +08:00
shaw
29b331c7b4
fix: 修复 manage.sh 脚本软链接创建时的路径问题
...
- 修复找不到脚本文件 /root/claude-relay-service/app/manage.sh 的错误
- 优先使用项目中的 $APP_DIR/scripts/manage.sh 路径
- 改进 load_config 函数以支持不同的项目目录结构
- 添加 symlink 命令执行前的检查,确保 APP_DIR 已设置
- 增加详细的诊断信息输出,方便调试路径问题
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-03 23:17:05 +08:00
shaw
9c9afe1528
feat: 实现账户分组管理功能和优化响应式设计
...
主要更新:
- 实现账户分组管理功能,支持创建、编辑、删除分组
- 支持将账户添加到分组进行统一调度
- 优化 API Keys 页面响应式设计,解决操作栏被隐藏的问题
- 优化账户管理页面布局,合并平台/类型列,改进操作按钮布局
- 修复代理信息显示溢出问题
- 改进表格列宽分配,充分利用屏幕空间
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-03 22:34:43 +08:00