diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts
index 72da91296..443631e3c 100644
--- a/app/src/asset/anno.ts
+++ b/app/src/asset/anno.ts
@@ -197,7 +197,7 @@ export const initAnno = (element: HTMLElement, pdf: any) => {
} else if (type === "remove") {
const urlPath = pdf.appConfig.file.replace(location.origin, "").substr(1);
const config = getConfig(pdf);
- const id = rectElement.getAttribute("data-node-id")
+ const id = rectElement.getAttribute("data-node-id");
delete config[id];
element.querySelectorAll(`[data-node-id="${id}"]`).forEach(item => {
item.remove();
diff --git a/app/src/mobile/menu/model.ts b/app/src/mobile/menu/model.ts
index c25c78c93..443917ba3 100644
--- a/app/src/mobile/menu/model.ts
+++ b/app/src/mobile/menu/model.ts
@@ -7,12 +7,12 @@ export const openModel = (obj: {
const modelElement = document.getElementById("model");
modelElement.style.transform = "translateY(0px)";
modelElement.style.zIndex = (++window.siyuan.zIndex).toString();
- const iconElement = modelElement.querySelector(".toolbar__icon")
+ const iconElement = modelElement.querySelector(".toolbar__icon");
if(obj.icon) {
- iconElement.classList.remove("fn__none")
+ iconElement.classList.remove("fn__none");
iconElement.querySelector("use").setAttribute("xlink:href", "#" + obj.icon);
} else {
- iconElement.classList.add("fn__none")
+ iconElement.classList.add("fn__none");
}
modelElement.querySelector(".toolbar__text").innerHTML = obj.title;
const modelMainElement = modelElement.querySelector("#modelMain") as HTMLElement;
diff --git a/app/src/mobile/menu/search.ts b/app/src/mobile/menu/search.ts
index 5aeaf117a..f5fab84c9 100644
--- a/app/src/mobile/menu/search.ts
+++ b/app/src/mobile/menu/search.ts
@@ -323,12 +323,12 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab
while (target && !target.isSameNode(element)) {
const type = target.getAttribute("data-type");
if (type === "replaceHistory") {
- toggleReplaceHistory(target.nextElementSibling as HTMLInputElement)
+ toggleReplaceHistory(target.nextElementSibling as HTMLInputElement);
event.stopPropagation();
event.preventDefault();
break;
} else if (type === "assetHistory") {
- toggleAssetHistory(assetsElement)
+ toggleAssetHistory(assetsElement);
event.stopPropagation();
event.preventDefault();
break;
@@ -778,7 +778,7 @@ export const popSearch = (app: App, searchConfig?: any) => {
document.querySelector("#toolbarSearchNew").addEventListener("click", () => {
newFileByName(app, (document.querySelector("#toolbarSearch") as HTMLInputElement).value);
});
- const historyElement = document.querySelector('.toolbar [data-type="history"]')
+ const historyElement = document.querySelector('.toolbar [data-type="history"]');
historyElement.addEventListener("click", () => {
toggleSearchHistory(document.querySelector("#model"), config, undefined);
});
@@ -811,7 +811,7 @@ const goAsset = () => {
assetInputEvent(assetsElement, localSearch);
});
inputElement.addEventListener("blur", () => {
- saveAssetKeyList(inputElement)
+ saveAssetKeyList(inputElement);
});
assetInputEvent(assetsElement, localSearch);
addClearButton({
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts
index 8c6cce1cb..f32916109 100644
--- a/app/src/protyle/header/Background.ts
+++ b/app/src/protyle/header/Background.ts
@@ -522,7 +522,7 @@ export class Background {
k: "",
}, (response) => {
let html = "";
- const currentTags = this.getTags()
+ const currentTags = this.getTags();
response.data.tags.forEach((item: string, index: number) => {
html += `
${item}
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index b2eaf4c57..a08129ee8 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -351,7 +351,7 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex)}
}
searchInputElement.addEventListener("compositionstart", (event: KeyboardEvent) => {
event.stopPropagation();
- })
+ });
searchInputElement.addEventListener("input", (event: KeyboardEvent) => {
event.stopPropagation();
if (event.isComposing) {
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts
index 65338d148..ba4f8ed34 100644
--- a/app/src/protyle/render/av/select.ts
+++ b/app/src/protyle/render/av/select.ts
@@ -318,7 +318,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,
}
});
menu.addSeparator();
- let html = `
`;
+ let html = "
";
Array.from(Array(14).keys()).forEach(index => {
html += ``;
});
diff --git a/app/src/protyle/upload/index.ts b/app/src/protyle/upload/index.ts
index eef0ad793..366e97047 100644
--- a/app/src/protyle/upload/index.ts
+++ b/app/src/protyle/upload/index.ts
@@ -128,7 +128,7 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => {
const type = pathPosix().extname(key).toLowerCase();
const filename = protyle.options.upload.filename(key);
const name = filename.substring(0, filename.length - type.length);
- hasImage = Constants.SIYUAN_ASSETS_IMAGE.includes(type)
+ hasImage = Constants.SIYUAN_ASSETS_IMAGE.includes(type);
avAssets.push({
type: Constants.SIYUAN_ASSETS_IMAGE.includes(type) ? "image" : "file",
content: path,
diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.ts
index 815f9cf7e..96f50083e 100644
--- a/app/src/protyle/util/table.ts
+++ b/app/src/protyle/util/table.ts
@@ -738,9 +738,9 @@ export const clearTableCell = (protyle: IProtyle, tableBlockElement: HTMLElement
});
tableSelectElement.removeAttribute("style");
if (getSelection().rangeCount>0) {
- const range = getSelection().getRangeAt(0)
+ const range = getSelection().getRangeAt(0);
if (tableBlockElement.contains(range.startContainer)) {
- range.insertNode(document.createElement("wbr"))
+ range.insertNode(document.createElement("wbr"));
}
}
const oldHTML = tableBlockElement.outerHTML;
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 02212fde2..b47d58f1d 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1483,9 +1483,9 @@ export class WYSIWYG {
});
tableSelectElement.removeAttribute("style");
if (getSelection().rangeCount>0) {
- const range = getSelection().getRangeAt(0)
+ const range = getSelection().getRangeAt(0);
if (nodeElement.contains(range.startContainer)) {
- range.insertNode(document.createElement("wbr"))
+ range.insertNode(document.createElement("wbr"));
}
}
const oldHTML = nodeElement.outerHTML;
diff --git a/app/src/search/assets.ts b/app/src/search/assets.ts
index fe3bd7722..56fbc6669 100644
--- a/app/src/search/assets.ts
+++ b/app/src/search/assets.ts
@@ -109,7 +109,7 @@ export const openSearchAsset = (element: Element, isStick: boolean) => {
assetInputEvent(element, localSearch);
});
searchInputElement.addEventListener("blur", () => {
- saveAssetKeyList(searchInputElement)
+ saveAssetKeyList(searchInputElement);
});
assetInputEvent(element, localSearch);
addClearButton({
diff --git a/app/src/search/toggleHistory.ts b/app/src/search/toggleHistory.ts
index d0cd8fa8e..3f2be4597 100644
--- a/app/src/search/toggleHistory.ts
+++ b/app/src/search/toggleHistory.ts
@@ -246,4 +246,4 @@ export const saveAssetKeyList = (inputElement:HTMLInputElement) => {
window.siyuan.storage[Constants.LOCAL_SEARCHASSET].k = inputElement.value;
window.siyuan.storage[Constants.LOCAL_SEARCHASSET].keys = list;
setStorageVal(Constants.LOCAL_SEARCHASSET, window.siyuan.storage[Constants.LOCAL_SEARCHASSET]);
-}
+};
diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts
index 0eed9ca9e..0ae01d359 100644
--- a/app/src/util/pathName.ts
+++ b/app/src/util/pathName.ts
@@ -324,7 +324,7 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
x: rect.left,
y: rect.bottom
});
- }
+ };
inputEvent();
inputElement.addEventListener("compositionend", (event: InputEvent) => {
inputEvent(event);
@@ -357,7 +357,7 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
return;
}
if (window.siyuan.menus.menu.element.getAttribute("data-name") === "move-path-history") {
- return
+ return;
}
const currentPanelElement = searchListElement.classList.contains("fn__none") ? searchTreeElement : searchListElement;
const currentItemElements = currentPanelElement.querySelectorAll(".b3-list-item--focus");