Skip to content

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

:rotating_light:

Vanessaaa95c363ef03
diff --git a/app/src/config/exportConfig.ts b/app/src/config/exportConfig.ts
index b1a6e1fed1..d071c1d84b 100644
--- a/app/src/config/exportConfig.ts
+++ b/app/src/config/exportConfig.ts
@@ -1,7 +1,6 @@
import {fetchPost} from "../util/fetch";
/// #if !BROWSER
import {dialog} from "@electron/remote";
-import {shell} from "electron";
import {afterExport} from "../protyle/export/util";
import * as path from "path";
/// #endif
diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.ts
index 7a5b1c5058..fc49471f86 100644
--- a/app/src/protyle/export/util.ts
+++ b/app/src/protyle/export/util.ts
@@ -1,6 +1,5 @@
/// #if !BROWSER
import {escapeHtml} from "../../util/escape";
-import {shell} from "electron";
import * as path from "path";
/// #endif
import {hideMessage, showMessage} from "../../dialog/message";
diff --git a/app/src/protyle/header/openTitleMenu.ts b/app/src/protyle/header/openTitleMenu.ts
index 4461f1eaaa..7eea42d0b2 100644
--- a/app/src/protyle/header/openTitleMenu.ts
+++ b/app/src/protyle/header/openTitleMenu.ts
@@ -11,7 +11,6 @@ import {deleteFile} from "../../editor/deleteFile";
import {updateHotkeyTip} from "../util/compatibility";
/// #if !MOBILE
import {openBacklink, openGraph, openOutline} from "../../layout/dock/util";
-import {shell} from "electron";
import * as path from "path";
/// #endif
import {Constants} from "../../constants";
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index 8d367a0df9..7cb3fd389c 100644
--- a/app/src/protyle/util/onGet.ts
+++ b/app/src/protyle/util/onGet.ts
@@ -157,7 +157,7 @@ const setHTML = (options: {
protyle.scroll.lastScrollTop = protyle.contentElement.scrollTop;
// 动态加载移除
if (!protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--select") && !protyle.scroll.keepLazyLoad) {
- const removeElements: Element[] = []
+ const removeElements: Element[] = [];
let childCount = protyle.wysiwyg.element.childElementCount;
let scrollHeight = protyle.contentElement.scrollHeight;
let lastElement = protyle.wysiwyg.element.lastElementChild;
diff --git a/app/src/search/assets.ts b/app/src/search/assets.ts
index 3a9a3f1bee..cc9cf4355e 100644
--- a/app/src/search/assets.ts
+++ b/app/src/search/assets.ts
@@ -1,5 +1,4 @@
/// #if !BROWSER
-import {shell} from "electron";
import * as path from "path";
/// #endif
import {Constants} from "../constants";
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 97aaba77b9..5de62143c5 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -1,6 +1,5 @@
import {getAllModels} from "../layout/getAll";
/// #if !BROWSER
-import {shell} from "electron";
import * as path from "path";
/// #endif
import {Constants} from "../constants";