From 16f116cfd2bcdab1fb141b5f662f9a5d7fcb3981 Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Sun, 4 Jun 2023 20:36:38 +0800
Subject: [PATCH 1/5] :art: Support for opening file history on the doc tree
https://github.com/siyuan-note/siyuan/issues/8448
---
app/src/menus/navigation.ts | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts
index 949abd065..25fc4dd27 100644
--- a/app/src/menus/navigation.ts
+++ b/app/src/menus/navigation.ts
@@ -1,10 +1,4 @@
-import {
- copySubMenu,
- exportMd,
- movePathToMenu,
- openFileAttr,
- renameMenu,
-} from "./commonMenuItem";
+import {copySubMenu, exportMd, movePathToMenu, openFileAttr, renameMenu,} from "./commonMenuItem";
/// #if !BROWSER
import {FileFilter, shell} from "electron";
import {dialog as remoteDialog} from "@electron/remote";
@@ -543,7 +537,7 @@ export const initFileMenu = (app: App, notebookId: string, pathString: string, l
/// #endif
if (!window.siyuan.config.readonly) {
window.siyuan.menus.menu.append(new MenuItem({
- label: window.siyuan.languages.dataHistory,
+ label: window.siyuan.languages.fileHistory,
icon: "iconHistory",
click() {
openDocHistory({app, id, notebookId, pathString: name});
From 7c3cfb703690ba0b234054de46b26b44cbf3400a Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Sun, 4 Jun 2023 20:37:16 +0800
Subject: [PATCH 2/5] :memo: Update README badges
---
README.md | 15 +++++++++++++--
README_zh_CN.md | 15 +++++++++++++--
2 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 91213736f..d9326c38d 100644
--- a/README.md
+++ b/README.md
@@ -3,10 +3,21 @@
Build Your Eternal Digital Garden
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/README_zh_CN.md b/README_zh_CN.md
index 88d06f829..314b793dc 100644
--- a/README_zh_CN.md
+++ b/README_zh_CN.md
@@ -3,10 +3,21 @@
构建你永恒的数字花园
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
From 228452b8e2f4bc64628567442482e0b3159a3c6b Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Sun, 4 Jun 2023 20:50:19 +0800
Subject: [PATCH 3/5] :bug: The hyperlink in the marketplace package README
fails to jump to the browser to open Fix
https://github.com/siyuan-note/siyuan/issues/8452
---
kernel/bazaar/package.go | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/kernel/bazaar/package.go b/kernel/bazaar/package.go
index d16ee3597..45a41535e 100644
--- a/kernel/bazaar/package.go
+++ b/kernel/bazaar/package.go
@@ -524,8 +524,14 @@ func renderREADME(repoURL string, mdData []byte) (ret string, err error) {
}
doc.Find("a").Each(func(i int, selection *goquery.Selection) {
- if href, ok := selection.Attr("href"); ok && util.IsRelativePath(href) {
- selection.SetAttr("href", linkBase+href)
+ href, ok := selection.Attr("href")
+ if ok {
+ if util.IsRelativePath(href) {
+ selection.SetAttr("href", linkBase+href)
+ }
+
+ // The hyperlink in the marketplace package README fails to jump to the browser to open https://github.com/siyuan-note/siyuan/issues/8452
+ selection.SetAttr("target", "_blank")
}
})
From 82fa9f58b269d039548771de7f7a57f2091a64af Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Sun, 4 Jun 2023 20:50:29 +0800
Subject: [PATCH 4/5] :bug: The hyperlink in the marketplace package README
fails to jump to the browser to open Fix
https://github.com/siyuan-note/siyuan/issues/8452
---
kernel/bazaar/package.go | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/bazaar/package.go b/kernel/bazaar/package.go
index 45a41535e..cb9d2dc89 100644
--- a/kernel/bazaar/package.go
+++ b/kernel/bazaar/package.go
@@ -524,8 +524,7 @@ func renderREADME(repoURL string, mdData []byte) (ret string, err error) {
}
doc.Find("a").Each(func(i int, selection *goquery.Selection) {
- href, ok := selection.Attr("href")
- if ok {
+ if href, ok := selection.Attr("href"); ok {
if util.IsRelativePath(href) {
selection.SetAttr("href", linkBase+href)
}
From 15fdc6b1c0092868ae409b8489bb7254e3850beb Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Sun, 4 Jun 2023 21:56:34 +0800
Subject: [PATCH 5/5] :memo: Update README badges
---
README.md | 4 +++-
README_zh_CN.md | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index d9326c38d..2682367b1 100644
--- a/README.md
+++ b/README.md
@@ -6,15 +6,17 @@ Build Your Eternal Digital Garden
+
+
+
-
diff --git a/README_zh_CN.md b/README_zh_CN.md
index 314b793dc..38476b063 100644
--- a/README_zh_CN.md
+++ b/README_zh_CN.md
@@ -6,15 +6,17 @@
+
+
+
-