Skip to content

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

:rotating_light:

Vanessa0a1ad2ec3443
diff --git a/app/src/boot/compatibleVersion.ts b/app/src/boot/compatibleVersion.ts
index c52c773de0..478754301b 100644
--- a/app/src/boot/compatibleVersion.ts
+++ b/app/src/boot/compatibleVersion.ts
@@ -6,4 +6,4 @@ export const img3115 = (imgElement: HTMLElement) => {
} else {
imgElement.removeAttribute("style");
}
-}
+};
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 25269c5870..8df389d621 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1189,7 +1189,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
rangeElement.value = "0";
rangeElement.parentElement.setAttribute("aria-label", inputElement.value ? (inputElement.value + "px") : window.siyuan.languages.default);
- img3115(assetElement)
+ img3115(assetElement);
imgElement.parentElement.style.width = inputElement.value ? (inputElement.value + "px") : "";
imgElement.style.height = "";
});
@@ -1220,7 +1220,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
bind(element) {
rangeElement = element.querySelector("input");
rangeElement.addEventListener("input", () => {
- img3115(assetElement)
+ img3115(assetElement);
imgElement.parentElement.style.width = rangeElement.value + "%";
imgElement.style.height = "";
rangeElement.parentElement.setAttribute("aria-label", `${rangeElement.value}%`);
@@ -1254,7 +1254,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
rangeHeightElement.parentElement.setAttribute("aria-label", inputElement.value ? (inputElement.value + "px") : window.siyuan.languages.default);
imgElement.style.height = inputElement.value ? (inputElement.value + "px") : "";
- img3115(assetElement)
+ img3115(assetElement);
imgElement.parentElement.style.width = "";
});
inputElement.addEventListener("blur", () => {
@@ -1284,7 +1284,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
bind(element) {
rangeHeightElement = element.querySelector("input");
rangeHeightElement.addEventListener("input", () => {
- img3115(assetElement)
+ img3115(assetElement);
imgElement.parentElement.style.width = "";
imgElement.style.height = rangeHeightElement.value + "vh";
rangeHeightElement.parentElement.setAttribute("aria-label", `${rangeHeightElement.value}%`);
@@ -1825,7 +1825,7 @@ const genImageWidthMenu = (label: string, imgElement: HTMLElement, protyle: IPro
label,
click() {
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
- img3115(imgElement.parentElement.parentElement)
+ img3115(imgElement.parentElement.parentElement);
imgElement.parentElement.style.width = label === window.siyuan.languages.default ? "" : label;
imgElement.style.height = "";
updateTransaction(protyle, id, nodeElement.outerHTML, html);
@@ -1841,7 +1841,7 @@ const genImageHeightMenu = (label: string, imgElement: HTMLElement, protyle: IPr
click() {
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
imgElement.style.height = label === window.siyuan.languages.default ? "" : parseInt(label) + "vh";
- img3115(imgElement.parentElement.parentElement)
+ img3115(imgElement.parentElement.parentElement);
imgElement.parentElement.style.width = "";
updateTransaction(protyle, id, nodeElement.outerHTML, html);
focusBlock(nodeElement);
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index 994c72eb43..cd97f4c983 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -1006,7 +1006,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
target = target.parentElement;
}
});
- dialog.element.querySelector("button").focus()
+ dialog.element.querySelector("button").focus();
dialog.element.setAttribute("data-key", Constants.DIALOG_CONFIRM);
return;
}
diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.ts
index 2908b862b7..b8ccb80d15 100644
--- a/app/src/protyle/util/insertHTML.ts
+++ b/app/src/protyle/util/insertHTML.ts
@@ -208,7 +208,7 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
if (textJSON.length === 1 && textJSON[0].length === 1) {
updateCellsValue(protyle, blockElement as HTMLElement, text, cellElements, columns, html);
} else {
- let currentRowElement:Element
+ let currentRowElement:Element;
const firstColIndex = cellElements[0].getAttribute("data-col-id");
textJSON.forEach((rowValue, rowIndex) => {
if (!currentRowElement) {
@@ -231,7 +231,7 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
}
updateCellsValue(protyle, blockElement as HTMLElement, cellValue, [cellElement], columns, html);
});
- })
+ });
}
document.querySelector(".av__panel")?.remove();
} else if (hasClosestByClassName(range.startContainer, "av__title")) {
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index caa6e557b1..80686de848 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -671,9 +671,9 @@ export class WYSIWYG {
const dragWidth = dragElement.clientWidth;
const dragHeight = dragElement.clientHeight;
- const imgElement = dragElement.parentElement.parentElement
+ const imgElement = dragElement.parentElement.parentElement;
if (dragElement.tagName === "IMG") {
- img3115(imgElement)
+ img3115(imgElement);
}
documentSelf.onmousemove = (moveEvent: MouseEvent) => {
if (dragElement.tagName === "IMG") {