[PR #737] [MERGED] feat: 同步方案支持 gitea #773

Closed
opened 2026-03-02 03:41:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/737
Author: @codexu
Created: 10/27/2025
Status: Merged
Merged: 10/27/2025
Merged by: @codexu

Base: devHead: gitea


📝 Commits (5)

  • 2403b16 feat: 增加 Gitea 配置
  • 7d6c9cd fix: 修复未正确检测仓库状态和头像获取
  • 2091885 fix: 无法正确的上传
  • d3cb073 refactor: 优化同步相关代码路径
  • ad8372a fix: 修复未同步的文件导致获取历史记录报错

📊 Changes

43 files changed (+1626 additions, -127 deletions)

View changed files

📝 messages/en.json (+10 -1)
📝 messages/zh.json (+8 -0)
📝 src/app/core/article/custom-footer/history.tsx (+51 -5)
📝 src/app/core/article/custom-footer/sync.tsx (+69 -10)
📝 src/app/core/article/file/file-item.tsx (+4 -4)
📝 src/app/core/article/file/file-toolbar.tsx (+1 -1)
📝 src/app/core/article/file/folder-item/delete-folder.tsx (+3 -3)
📝 src/app/core/article/file/folder-item/sync-folder.tsx (+4 -4)
📝 src/app/core/image/folder-card.tsx (+1 -1)
📝 src/app/core/image/image-card.tsx (+3 -3)
📝 src/app/core/image/image-header.tsx (+1 -1)
📝 src/app/core/image/page.tsx (+1 -1)
📝 src/app/core/record/mark/clipboard.tsx (+2 -2)
📝 src/app/core/setting/about/updater.tsx (+1 -1)
📝 src/app/core/setting/components/upload-store.tsx (+22 -4)
📝 src/app/core/setting/imageHosting/github.tsx (+3 -3)
📝 src/app/core/setting/imageHosting/s3.tsx (+1 -1)
src/app/core/setting/sync/gitea-sync.tsx (+370 -0)
📝 src/app/core/setting/sync/gitee-sync.tsx (+2 -2)
📝 src/app/core/setting/sync/github-sync.tsx (+2 -2)

...and 23 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/codexu/note-gen/pull/737 **Author:** [@codexu](https://github.com/codexu) **Created:** 10/27/2025 **Status:** ✅ Merged **Merged:** 10/27/2025 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `gitea` --- ### 📝 Commits (5) - [`2403b16`](https://github.com/codexu/note-gen/commit/2403b169a01bdff39f7b91f52b4a813a2edc61b4) feat: 增加 Gitea 配置 - [`7d6c9cd`](https://github.com/codexu/note-gen/commit/7d6c9cd4ef13bb4407ab101bddbd41df33907d23) fix: 修复未正确检测仓库状态和头像获取 - [`2091885`](https://github.com/codexu/note-gen/commit/2091885656b70fcee5fe9190161d551d9b4e621a) fix: 无法正确的上传 - [`d3cb073`](https://github.com/codexu/note-gen/commit/d3cb073b050f967ad68206d37c6766af64d27879) refactor: 优化同步相关代码路径 - [`ad8372a`](https://github.com/codexu/note-gen/commit/ad8372a4a7bbd40bff849ece4e314c8710252807) fix: 修复未同步的文件导致获取历史记录报错 ### 📊 Changes **43 files changed** (+1626 additions, -127 deletions) <details> <summary>View changed files</summary> 📝 `messages/en.json` (+10 -1) 📝 `messages/zh.json` (+8 -0) 📝 `src/app/core/article/custom-footer/history.tsx` (+51 -5) 📝 `src/app/core/article/custom-footer/sync.tsx` (+69 -10) 📝 `src/app/core/article/file/file-item.tsx` (+4 -4) 📝 `src/app/core/article/file/file-toolbar.tsx` (+1 -1) 📝 `src/app/core/article/file/folder-item/delete-folder.tsx` (+3 -3) 📝 `src/app/core/article/file/folder-item/sync-folder.tsx` (+4 -4) 📝 `src/app/core/image/folder-card.tsx` (+1 -1) 📝 `src/app/core/image/image-card.tsx` (+3 -3) 📝 `src/app/core/image/image-header.tsx` (+1 -1) 📝 `src/app/core/image/page.tsx` (+1 -1) 📝 `src/app/core/record/mark/clipboard.tsx` (+2 -2) 📝 `src/app/core/setting/about/updater.tsx` (+1 -1) 📝 `src/app/core/setting/components/upload-store.tsx` (+22 -4) 📝 `src/app/core/setting/imageHosting/github.tsx` (+3 -3) 📝 `src/app/core/setting/imageHosting/s3.tsx` (+1 -1) ➕ `src/app/core/setting/sync/gitea-sync.tsx` (+370 -0) 📝 `src/app/core/setting/sync/gitee-sync.tsx` (+2 -2) 📝 `src/app/core/setting/sync/github-sync.tsx` (+2 -2) _...and 23 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 03:41:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#773
No description provided.