Skip to content

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

:rotating_light:

Vanessaf9d476ebf590
diff --git a/app/src/layout/dock/Inbox.ts b/app/src/layout/dock/Inbox.ts
index 8c44d4ae9c..03a602884d 100644
--- a/app/src/layout/dock/Inbox.ts
+++ b/app/src/layout/dock/Inbox.ts
@@ -333,7 +333,7 @@ ${data.shorthandContent}
path: pathPosix().join(getDisplayName(toPath[0], false, true), Lute.NewNodeID() + ".sy"),
title: replaceFileName(response.data.shorthandTitle),
md: response.data.shorthandMd,
- }, (docResponse) => {
+ }, () => {
this.remove(item);
});
});
diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.ts
index 3a3c106137..3298e8aeb3 100644
--- a/app/src/layout/topBar.ts
+++ b/app/src/layout/topBar.ts
@@ -20,7 +20,6 @@ import {needSubscribe} from "../util/needSubscribe";
import * as dayjs from "dayjs";
import {commandPanel} from "../plugin/commandPanel";
import {exportLayout} from "./util";
-import {showMessage} from "../dialog/message";
export const initBar = (app: App) => {
const toolbarElement = document.getElementById("toolbar");
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts
index fcbf581767..191c83fbaa 100644
--- a/app/src/protyle/render/av/row.ts
+++ b/app/src/protyle/render/av/row.ts
@@ -125,7 +125,7 @@ const updatePageSize = (currentPageSIze: string, newPageSize: string) => {
if (currentPageSIze === newPageSize) {
return;
}
-}
+};
export const setPageSize = (target: HTMLElement) => {
const menu = new Menu("av-page-size");
@@ -170,4 +170,4 @@ export const setPageSize = (target: HTMLElement) => {
x: rect.left,
y: rect.bottom
});
-}
+};
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index d3b0c5a087..deb0b6bf87 100644
--- a/app/src/protyle/util/onGet.ts
+++ b/app/src/protyle/util/onGet.ts
@@ -330,7 +330,7 @@ export const disabledProtyle = (protyle: IProtyle) => {
protyle.wysiwyg.element.querySelectorAll('.protyle-action[draggable="true"]').forEach(item => {
item.setAttribute("draggable", "false");
});
- protyle.wysiwyg.element.querySelectorAll('.av').forEach((item: HTMLElement) => {
+ protyle.wysiwyg.element.querySelectorAll(".av").forEach((item: HTMLElement) => {
const headerElement = item.querySelector(".av__row--header") as HTMLElement;
if (headerElement) {
headerElement.style.transform = "";
@@ -375,7 +375,7 @@ export const enableProtyle = (protyle: IProtyle) => {
item.setAttribute("draggable", "true");
});
const contentRect = protyle.contentElement.getBoundingClientRect();
- protyle.wysiwyg.element.querySelectorAll('.av').forEach((item: HTMLElement) => {
+ protyle.wysiwyg.element.querySelectorAll(".av").forEach((item: HTMLElement) => {
stickyRow(item, contentRect, "all");
});
if (protyle.breadcrumb) {
diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.ts
index 6ffd8f5787..aa99926f90 100644
--- a/app/src/protyle/wysiwyg/enter.ts
+++ b/app/src/protyle/wysiwyg/enter.ts
@@ -456,8 +456,8 @@ export const softEnter = (range: Range, nodeElement: HTMLElement, protyle: IProt
addNewLineToEnd(range, nodeElement, protyle, startElement);
return true;
}
- return false
-}
+ return false;
+};
const addNewLineToEnd = (range: Range, nodeElement: HTMLElement, protyle: IProtyle, startElement: Element) => {
const wbrElement = document.createElement("wbr");
@@ -468,7 +468,7 @@ const addNewLineToEnd = (range: Range, nodeElement: HTMLElement, protyle: IProty
}
const oldHTML = nodeElement.outerHTML;
wbrElement.remove();
- let endNewlineNode
+ let endNewlineNode;
if (!hasNextSibling(startElement)) {
endNewlineNode = document.createTextNode("\n");
startElement.after(endNewlineNode);
@@ -483,4 +483,4 @@ const addNewLineToEnd = (range: Range, nodeElement: HTMLElement, protyle: IProty
range.collapse(true);
focusByRange(range);
updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML);
-}
+};