[PR #185] [MERGED] feat(#65): 支持 Gitee 同步方式 #703

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

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/185
Author: @codexu
Created: 5/13/2025
Status: Merged
Merged: 5/13/2025
Merged by: @codexu

Base: devHead: gitee-sync


📝 Commits (7)

  • 159bb5b feat: Gitee 配置
  • 0dc7d1c feat: 切换主要备份方式
  • 1b65afc feat: 登录信息关联主要备份方式
  • c2ad04a feat: Gitee 上传与同步
  • e892c16 feat: Gitee 拉取历史提交记录
  • c3e84c3 feat: 删除同步文件
  • c2c363c fix: 同步后加载了错误的历史记录

📊 Changes

14 files changed (+1318 additions, -214 deletions)

View changed files

📝 messages/en.json (+19 -4)
📝 messages/ja.json (+19 -4)
📝 messages/zh.json (+19 -4)
📝 src/app/core/article/custom-footer/history.tsx (+53 -13)
📝 src/app/core/article/custom-footer/sync.tsx (+189 -65)
📝 src/app/core/article/file/file-item.tsx (+34 -7)
src/app/core/setting/sync/gitee-sync.tsx (+168 -0)
📝 src/app/core/setting/sync/github-sync.tsx (+17 -1)
📝 src/app/core/setting/sync/page.tsx (+7 -2)
📝 src/components/app-status.tsx (+177 -84)
src/lib/gitee.ts (+479 -0)
📝 src/stores/article.ts (+75 -29)
📝 src/stores/setting.ts (+35 -0)
📝 src/stores/sync.ts (+27 -1)

📄 Description

需要设置主要备份方式,选择 Github 或 Gitee。


🔄 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/185 **Author:** [@codexu](https://github.com/codexu) **Created:** 5/13/2025 **Status:** ✅ Merged **Merged:** 5/13/2025 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `gitee-sync` --- ### 📝 Commits (7) - [`159bb5b`](https://github.com/codexu/note-gen/commit/159bb5b16921a9ed7eb33ca898b40f8fe33b16f9) feat: Gitee 配置 - [`0dc7d1c`](https://github.com/codexu/note-gen/commit/0dc7d1c4298edb50d88524e15932811bd8c961e4) feat: 切换主要备份方式 - [`1b65afc`](https://github.com/codexu/note-gen/commit/1b65afc3c1895495b403a6eeb0427e4f9f9bfd1c) feat: 登录信息关联主要备份方式 - [`c2ad04a`](https://github.com/codexu/note-gen/commit/c2ad04a3d3fdee5dc09dbadef76637e2e69ee541) feat: Gitee 上传与同步 - [`e892c16`](https://github.com/codexu/note-gen/commit/e892c16daf179b6f901542288a743c0971a70543) feat: Gitee 拉取历史提交记录 - [`c3e84c3`](https://github.com/codexu/note-gen/commit/c3e84c360e3774e5adf266d52e2e808632688de8) feat: 删除同步文件 - [`c2c363c`](https://github.com/codexu/note-gen/commit/c2c363c7157ac05118a55470d367021fb78e7956) fix: 同步后加载了错误的历史记录 ### 📊 Changes **14 files changed** (+1318 additions, -214 deletions) <details> <summary>View changed files</summary> 📝 `messages/en.json` (+19 -4) 📝 `messages/ja.json` (+19 -4) 📝 `messages/zh.json` (+19 -4) 📝 `src/app/core/article/custom-footer/history.tsx` (+53 -13) 📝 `src/app/core/article/custom-footer/sync.tsx` (+189 -65) 📝 `src/app/core/article/file/file-item.tsx` (+34 -7) ➕ `src/app/core/setting/sync/gitee-sync.tsx` (+168 -0) 📝 `src/app/core/setting/sync/github-sync.tsx` (+17 -1) 📝 `src/app/core/setting/sync/page.tsx` (+7 -2) 📝 `src/components/app-status.tsx` (+177 -84) ➕ `src/lib/gitee.ts` (+479 -0) 📝 `src/stores/article.ts` (+75 -29) 📝 `src/stores/setting.ts` (+35 -0) 📝 `src/stores/sync.ts` (+27 -1) </details> ### 📄 Description 需要设置主要备份方式,选择 Github 或 Gitee。 --- <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:23 +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#703
No description provided.