[PR #294] [MERGED] feat(#279): 本地图片支持相对路径引入,文件管理器增加图片预览 #718

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

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/294
Author: @codexu
Created: 6/23/2025
Status: Merged
Merged: 6/23/2025
Merged by: @codexu

Base: devHead: image


📝 Commits (6)

  • a81ba13 feat: 支持相对路径图片
  • 68ad280 fix: 下载配置未正常保存导致同步失败
  • ea906f7 feat: 文件设置增加写作资源路径,可自定义保存静态资源的路径
  • e286b00 feat: 写作文件管理器中可展示图片文件
  • 28f61e2 feat: 写作资源文件夹图标、图片文件图标
  • 3ffe2c1 feat: 图片静态资源预览

📊 Changes

18 files changed (+330 additions, -169 deletions)

View changed files

📝 messages/en.json (+5 -0)
📝 messages/ja.json (+5 -0)
📝 messages/zh.json (+5 -0)
📝 src-tauri/capabilities/default.json (+3 -0)
📝 src/app/core/article/file/file-item.tsx (+110 -72)
📝 src/app/core/article/file/file-manager.tsx (+15 -1)
📝 src/app/core/article/file/folder-item.tsx (+7 -2)
📝 src/app/core/article/md-editor.tsx (+51 -9)
📝 src/app/core/record/mark/mark-item.tsx (+4 -32)
📝 src/app/core/setting/components/upload-store.tsx (+3 -3)
📝 src/app/core/setting/file/page.tsx (+16 -2)
src/app/core/setting/file/setting-assets.tsx (+17 -0)
📝 src/app/core/setting/file/setting-workspace.tsx (+28 -41)
📝 src/app/mobile/setting/pages/file/page.tsx (+2 -2)
src/components/image-viewer.tsx (+32 -0)
📝 src/lib/utils.ts (+11 -0)
📝 src/stores/article.ts (+4 -4)
📝 src/stores/setting.ts (+12 -1)

📄 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/294 **Author:** [@codexu](https://github.com/codexu) **Created:** 6/23/2025 **Status:** ✅ Merged **Merged:** 6/23/2025 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `image` --- ### 📝 Commits (6) - [`a81ba13`](https://github.com/codexu/note-gen/commit/a81ba13b8020686e61e57a9098b6312103d3f052) feat: 支持相对路径图片 - [`68ad280`](https://github.com/codexu/note-gen/commit/68ad280b91dbafddcf11748a0f9b8a684d82279c) fix: 下载配置未正常保存导致同步失败 - [`ea906f7`](https://github.com/codexu/note-gen/commit/ea906f781a3eec35c21453740676975377d62a9f) feat: 文件设置增加写作资源路径,可自定义保存静态资源的路径 - [`e286b00`](https://github.com/codexu/note-gen/commit/e286b00655a3d07b704b3bd173a8e8fbcacc0584) feat: 写作文件管理器中可展示图片文件 - [`28f61e2`](https://github.com/codexu/note-gen/commit/28f61e2eefdc705c9d58c51ab50688ac95ef800b) feat: 写作资源文件夹图标、图片文件图标 - [`3ffe2c1`](https://github.com/codexu/note-gen/commit/3ffe2c1359275d79a96b8b16c3030197c1b2f64e) feat: 图片静态资源预览 ### 📊 Changes **18 files changed** (+330 additions, -169 deletions) <details> <summary>View changed files</summary> 📝 `messages/en.json` (+5 -0) 📝 `messages/ja.json` (+5 -0) 📝 `messages/zh.json` (+5 -0) 📝 `src-tauri/capabilities/default.json` (+3 -0) 📝 `src/app/core/article/file/file-item.tsx` (+110 -72) 📝 `src/app/core/article/file/file-manager.tsx` (+15 -1) 📝 `src/app/core/article/file/folder-item.tsx` (+7 -2) 📝 `src/app/core/article/md-editor.tsx` (+51 -9) 📝 `src/app/core/record/mark/mark-item.tsx` (+4 -32) 📝 `src/app/core/setting/components/upload-store.tsx` (+3 -3) 📝 `src/app/core/setting/file/page.tsx` (+16 -2) ➕ `src/app/core/setting/file/setting-assets.tsx` (+17 -0) 📝 `src/app/core/setting/file/setting-workspace.tsx` (+28 -41) 📝 `src/app/mobile/setting/pages/file/page.tsx` (+2 -2) ➕ `src/components/image-viewer.tsx` (+32 -0) 📝 `src/lib/utils.ts` (+11 -0) 📝 `src/stores/article.ts` (+4 -4) 📝 `src/stores/setting.ts` (+12 -1) </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:27 +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#718
No description provided.