Skip to content

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

:rotating_light:

Vanessac19109cb454e
diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts
index e82ca33760..4cc9fe955e 100644
--- a/app/src/config/bazaar.ts
+++ b/app/src/config/bazaar.ts
@@ -6,7 +6,6 @@ import {confirmDialog} from "../dialog/confirmDialog";
import {highlightRender} from "../protyle/markdown/highlightRender";
import {exportLayout} from "../layout/util";
import {Constants} from "../constants";
-import {loadAssets} from "../util/assets";
export const bazaar = {
element: undefined as Element,
diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts
index ff3a71052b..642a118df4 100644
--- a/app/src/editor/util.ts
+++ b/app/src/editor/util.ts
@@ -10,7 +10,6 @@ import {setEditMode} from "../protyle/util/setEditMode";
import {Files} from "../layout/dock/Files";
import {setPadding} from "../protyle/ui/initUI";
import {fetchPost} from "../util/fetch";
-import {showMessage} from "../dialog/message";
import {focusBlock, focusByRange} from "../protyle/util/selection";
import {onGet} from "../protyle/util/onGet";
/// #if !BROWSER
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index a95de991d9..1297616fba 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -510,7 +510,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
- const imagePath = imgElement.getAttribute("data-src")
+ const imagePath = imgElement.getAttribute("data-src");
if (imagePath.startsWith("assets/")) {
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.rename,
@@ -816,14 +816,14 @@ export const videoMenu = (protyle: IProtyle, nodeElement: Element, type: string)
}, {
type: "separator"
}];
- const src = videoElement.getAttribute("src")
+ const src = videoElement.getAttribute("src");
if (src.startsWith("assets/")) {
subMenus.push({
label: window.siyuan.languages.rename,
click() {
renameAsset(src);
}
- })
+ });
}
return subMenus.concat(openMenu(videoElement.getAttribute("src"), true) as IMenu[]);
};
diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.ts
index 5d1562ed6c..5f7b5c4fdd 100644
--- a/app/src/mobile/editor.ts
+++ b/app/src/mobile/editor.ts
@@ -3,7 +3,6 @@ import {setEditor} from "./util/setEmpty";
import {closePanel} from "./util/closePanel";
import {Constants} from "../constants";
import {fetchPost} from "../util/fetch";
-import {showMessage} from "../dialog/message";
import {disabledProtyle, enableProtyle, onGet} from "../protyle/util/onGet";
import {addLoading} from "../protyle/ui/initUI";
import {focusBlock} from "../protyle/util/selection";