Skip to content

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

:rotating_light:

Vanessac98997045a47
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 9864755252..78ad2c56f6 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2449,7 +2449,7 @@ data-type="fold" style="cursor:inherit;"><svg style="width: 10px${fold && fold =
if (listItem && !window.siyuan.config.editor.rtl) {
const relTempRect = listItem.firstElementChild.getBoundingClientRect();
if (relTempRect.right <= rect.right) {
- rect = relTempRect
+ rect = relTempRect;
space = 0;
}
} else if (nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed") {
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts
index bc821d5e02..dc863860ed 100644
--- a/app/src/protyle/index.ts
+++ b/app/src/protyle/index.ts
@@ -137,7 +137,7 @@ export class Protyle {
item.update(response);
});
}
- })
+ });
}
break;
case "refreshAttributeView":
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts
index ce0618cc1c..1173f4c942 100644
--- a/app/src/protyle/render/av/blockAttr.ts
+++ b/app/src/protyle/render/av/blockAttr.ts
@@ -394,7 +394,7 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"]
}
};
if (type !== "text") {
- const linkElement = item.parentElement.querySelector("a")
+ const linkElement = item.parentElement.querySelector("a");
if (item.value) {
linkElement.setAttribute("href", (type === "url" ? "" : (type === "email" ? "mailto:" : "tel:")) + item.value);
} else {
diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.ts
index 5021a999bb..72b1aa0abe 100644
--- a/app/src/protyle/util/insertHTML.ts
+++ b/app/src/protyle/util/insertHTML.ts
@@ -394,7 +394,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
tempElement.content.firstChild.nodeType !== 3 &&
tempElement.content.firstElementChild.getAttribute("data-type") === "NodeHeading") {
isBlock = false;
- heading2text = true
+ heading2text = true;
}
// 使用 lute 方法会添加 p 元素,只有一个 p 元素或者只有一个字符串或者为 <u>b</u> 时的时候只拷贝内部
diff --git a/app/src/util/assets.ts b/app/src/util/assets.ts
index 77d65075fb..a0f665bec9 100644
--- a/app/src/util/assets.ts
+++ b/app/src/util/assets.ts
@@ -288,7 +288,7 @@ export const setInlineStyle = async (set = true) => {
}`;
}
}
- let rtlCSS = ''
+ let rtlCSS = "";
if (window.siyuan.config.editor.rtl) {
rtlCSS = `.protyle-title__input,
.protyle-wysiwyg .p,
diff --git a/app/src/util/upDownHint.ts b/app/src/util/upDownHint.ts
index e491ede3c2..16522d2885 100644
--- a/app/src/util/upDownHint.ts
+++ b/app/src/util/upDownHint.ts
@@ -1,5 +1,5 @@
const isNormalItem = (currentHintElement: HTMLElement, className: string) => {
- return !currentHintElement.classList.contains(className) || currentHintElement.getBoundingClientRect().height === 0
+ return !currentHintElement.classList.contains(className) || currentHintElement.getBoundingClientRect().height === 0;
};
export const upDownHint = (listElement: Element, event: KeyboardEvent, classActiveName = "b3-list-item--focus", defaultElement?: Element) => {