Skip to content

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

:rotating_light:

Vanessa1bff1ef7cbbb
diff --git a/app/src/menus/workspace.ts b/app/src/menus/workspace.ts
index 034c875344..ca00ae513b 100644
--- a/app/src/menus/workspace.ts
+++ b/app/src/menus/workspace.ts
@@ -96,9 +96,9 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {
} else {
confirmDialog(window.siyuan.languages.new, `TODO: ${localPath.filePaths[0]}`, () => {
openWorkspace(localPath.filePaths[0]);
- })
+ });
}
- })
+ });
}
}];
workspaceSubMenu.push({type: "separator"});
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 61260b7c8e..9c4910c576 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -1,8 +1,5 @@
import {transaction} from "../../wysiwyg/transaction";
import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
-import {Menu} from "../../../plugin/Menu";
-import {getColIconByType} from "./col";
-import {fetchPost} from "../../../util/fetch";
export const popTextCell = (protyle: IProtyle, cellElement: HTMLElement) => {
const type = cellElement.parentElement.parentElement.firstElementChild.children[parseInt(cellElement.getAttribute("data-index")) + 1].getAttribute("data-dtype") as TAVCol;
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index aebcb6366d..b7996538d3 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -151,11 +151,11 @@ export const showColMenu = (protyle: IProtyle, blockElement: HTMLElement, cellEl
label: window.siyuan.languages.filter,
click() {
fetchPost("/api/av/renderAttributeView", {id: avId}, (response) => {
- const avData = response.data.av as IAV
- let filter: IAVFilter
+ const avData = response.data.av as IAV;
+ let filter: IAVFilter;
avData.filters.find((item) => {
if (item.column === colId) {
- filter = item
+ filter = item;
return true;
}
});
@@ -168,7 +168,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: HTMLElement, cellEl
content: ""
}
}
- }
+ };
}
setFilter({
filter,