mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
ba22a78d50
commit
abdf78768b
3 changed files with 8 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue