Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/7747

Vanessa32ad11acef0b
diff --git a/app/electron/init.html b/app/electron/init.html
index 47da46076a..f91544bc94 100644
--- a/app/electron/init.html
+++ b/app/electron/init.html
@@ -407,8 +407,7 @@
const iCloudRoot = path.join(decodeURIComponent(getSearch('home')), 'Library', 'Mobile Documents')
const allFiles = walk(iCloudRoot)
for (const file of allFiles) {
- console.log(file)
- if (-1 < absPath.indexOf(file)) {
+ if (-1 < absPath.indexOf(file.toLowerCase())) {
return true
}
}
@@ -420,13 +419,16 @@
const path = require('path')
const dirFiles = fs.readdirSync(dir)
for (const f of dirFiles) {
- const stat = fs.lstatSync(dir + path.sep + f)
+ let stat = fs.lstatSync(dir + path.sep + f)
+ if (stat.isSymbolicLink()) {
+ files.push(fs.readlinkSync(dir + path.sep + f))
+ continue
+ }
if (stat.isDirectory()) {
// 如果已经遍历过则不再遍历
if (files.includes(dir + path.sep + f)) {
continue
}
-
walk(dir + path.sep + f, files)
} else {
files.push(dir + path.sep + f)
diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts
index be91edb210..6bdd09972c 100644
--- a/app/src/mobile/util/initFramework.ts
+++ b/app/src/mobile/util/initFramework.ts
@@ -126,7 +126,7 @@ export const initFramework = () => {
}, Constants.TIMEOUT_INPUT);
}, Constants.TIMEOUT_INPUT);
}
- document.getElementById("modelClose").addEventListener(getEventName(), () => {
+ document.getElementById("modelClose").addEventListener("click", () => {
closePanel();
});
initEditorName();
diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts
index 4fb3f86e7e..8b3cccf560 100644
--- a/app/src/mobile/util/touch.ts
+++ b/app/src/mobile/util/touch.ts
@@ -17,7 +17,7 @@ export const handleTouchEnd = () => {
return;
}
- if (Math.abs(xDiff) > Math.abs(yDiff) && Math.abs(xDiff) > window.innerWidth / 2) {
+ if (Math.abs(xDiff) > Math.abs(yDiff) && Math.abs(xDiff) > window.innerWidth / 4) {
if (xDiff > 0) {
goForward();
} else {