[PR #618] [CLOSED] feat(#617): PicGo图床支持API Key认证和智能上传模式 #758

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

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/618
Author: @SquirrelJimmy
Created: 9/5/2025
Status: Closed

Base: devHead: feat/617


📝 Commits (1)

  • 7cd6071 feat(#617): PicGo图床支持API Key认证和智能上传模式

📊 Changes

3 files changed (+211 additions, -134 deletions)

View changed files

📝 src/app/core/setting/backupSync/webdav-sync.tsx (+37 -45)
📝 src/app/core/setting/imageHosting/picgo.tsx (+62 -47)
📝 src/lib/imageHosting/picgo.ts (+112 -42)

📄 Description

  • 新增PicGo API Key配置选项,支持密钥认证
  • 实现本机/远程智能上传:本机使用路径上传,远程使用表单上传
  • 优化心跳检测,使用专用/heartbeat接口替代/upload接口
  • 远程上传使用UUID生成唯一文件名,避免文件名冲突
  • 完善错误处理和调试信息输出
  • 修复ESLint错误,heartbeatUrl改为const

🔄 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/618 **Author:** [@SquirrelJimmy](https://github.com/SquirrelJimmy) **Created:** 9/5/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/617` --- ### 📝 Commits (1) - [`7cd6071`](https://github.com/codexu/note-gen/commit/7cd6071ed50401bce9f21589bb8002dc7f07a722) feat(#617): PicGo图床支持API Key认证和智能上传模式 ### 📊 Changes **3 files changed** (+211 additions, -134 deletions) <details> <summary>View changed files</summary> 📝 `src/app/core/setting/backupSync/webdav-sync.tsx` (+37 -45) 📝 `src/app/core/setting/imageHosting/picgo.tsx` (+62 -47) 📝 `src/lib/imageHosting/picgo.ts` (+112 -42) </details> ### 📄 Description - 新增PicGo API Key配置选项,支持密钥认证 - 实现本机/远程智能上传:本机使用路径上传,远程使用表单上传 - 优化心跳检测,使用专用/heartbeat接口替代/upload接口 - 远程上传使用UUID生成唯一文件名,避免文件名冲突 - 完善错误处理和调试信息输出 - 修复ESLint错误,heartbeatUrl改为const --- <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:37 +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#758
No description provided.