Skip to content

Conversation

@dickiducko
Copy link

Summary

1. Private Repository Support

  • URL Parser: Implemented repoUrlParser.ts to parse private repository URLs from GitHub, GitLab, Gitea, and other platforms
  • Connection Test: Automatically detects the best authentication method (Authorization: token/Bearer, PRIVATE-TOKEN)
  • Auth Header Management: Securely stores and uses correct authentication headers for private repository access
  • Download Strategy: Supports secure private repository downloads across multiple platforms (GitHub, GitLab, Gitea)

2. Repository Management Enhancement

  • Filtering: Added RepoFilter component for filtering repositories by type, name, and other criteria
  • Loading Optimization: Implemented useSkillsLoader hook for better loading state management
  • UI Improvements: Enhanced repository management panel layout for better user experience
  • Internationalization: Completed translations in Chinese, English, and Japanese

Technical Changes

  • Extended SkillRepo data structure to support private repository fields
  • Refactored download logic to handle public and private repositories separately
  • Optimized frontend component architecture for better code reusability

功能概述

1. 私有仓库支持

  • URL 解析器:实现 repoUrlParser.ts,支持解析 GitHub/GitLab/Gitea 等平台的私有仓库 URL
  • 连通测试:自动探测最佳认证方式(Authorization: token/Bearer、PRIVATE-TOKEN)
  • 认证头管理:存储并使用正确的认证头进行私有仓库访问
  • 下载策略:支持私有仓库的安全下载,兼容多平台(GitHub、GitLab、Gitea)

2. 仓库管理功能增强

  • 筛选功能:新增 RepoFilter 组件,支持按仓库类型、名称等条件进行筛选
  • 加载优化:实现 useSkillsLoader hook,提供更完善的加载状态管理
  • 界面改进:优化仓库管理面板布局,提升用户体验
  • 多语言支持:完善中文、英文、日文三语翻译

技术变更

  • 扩展 SkillRepo 数据结构,新增私有仓库相关字段
  • 重构下载逻辑,区分处理公共仓库和私有仓库
  • 优化前端组件架构,提高代码复用性

- Add private repo authentication fields (base_url, access_token, auth_header)
- Implement multi-platform support (GitHub, GitLab, Gitea)
- Add connection testing with automatic auth header detection
- Separate public/private repo tabs in UI
- Support token editing for existing private repos
- Add database migration v2 to v3 for private repo fields

新增功能:
- 新增私有仓库认证字段(base_url, access_token, auth_header)
- 实现多平台支持(GitHub、GitLab、Gitea)
- 添加连接测试功能,自动检测认证头类型
- UI 分离公共/私有仓库标签页
- 支持编辑现有私有仓库的 token
- 数据库迁移 v2 到 v3,添加私有仓库字段
…/ 增强技能仓库管理功能,添加筛选和加载器
@dickiducko dickiducko marked this pull request as ready for review December 22, 2025 06:42
@waipanChiu
Copy link

PixPin_2025-12-24_10-18-37 PixPin_2025-12-24_10-18-59 PixPin_2025-12-24_10-19-22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants