diff --git a/app/src/config/account.ts b/app/src/config/account.ts index 19fda7298..a4c80e60c 100644 --- a/app/src/config/account.ts +++ b/app/src/config/account.ts @@ -219,7 +219,7 @@ ${window.siyuan.languages.account8}`; }); const activationCodeElement = account.element.querySelector("#activationCode"); activationCodeElement.addEventListener("click", () => { - const activationCodeInput = (activationCodeElement.previousElementSibling as HTMLInputElement) + const activationCodeInput = (activationCodeElement.previousElementSibling as HTMLInputElement); fetchPost("/api/account/checkActivationcode", {data: activationCodeInput.value}, (response) => { if (0 !== response.code) { activationCodeInput.value = ""; diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts index 26411c452..e82ca3376 100644 --- a/app/src/config/bazaar.ts +++ b/app/src/config/bazaar.ts @@ -302,7 +302,7 @@ export const bazaar = { url = "/api/bazaar/installBazaarWidget"; } target.parentElement.insertAdjacentHTML("afterend", ""); - const name = target.parentElement.getAttribute("data-name") + const name = target.parentElement.getAttribute("data-name"); fetchPost(url, { repoURL: target.parentElement.getAttribute("data-url"), packageName: name, diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts index bec062b09..127fc72d0 100644 --- a/app/src/layout/util.ts +++ b/app/src/layout/util.ts @@ -279,32 +279,32 @@ export const JSONToLayout = () => { if (item.parent.headElement && !item.parent.headElement.classList.contains("item--pin")) { item.parent.parent.removeTab(item.parent.id); } - }) + }); allModels.outline.forEach(item => { if (item.parent.headElement && !item.parent.headElement.classList.contains("item--pin")) { item.parent.parent.removeTab(item.parent.id); } - }) + }); allModels.search.forEach(item => { if (item.parent.headElement && !item.parent.headElement.classList.contains("item--pin")) { item.parent.parent.removeTab(item.parent.id); } - }) + }); allModels.asset.forEach(item => { if (item.parent.headElement && !item.parent.headElement.classList.contains("item--pin")) { item.parent.parent.removeTab(item.parent.id); } - }) + }); allModels.graph.forEach(item => { if (item.parent.headElement && !item.parent.headElement.classList.contains("item--pin")) { item.parent.parent.removeTab(item.parent.id); } - }) + }); allModels.backlinks.forEach(item => { if (item.parent.headElement && !item.parent.headElement.classList.contains("item--pin")) { item.parent.parent.removeTab(item.parent.id); } - }) + }); } setTimeout(() => { diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.ts index 209a20354..f88940ba2 100644 --- a/app/src/protyle/wysiwyg/enter.ts +++ b/app/src/protyle/wysiwyg/enter.ts @@ -185,7 +185,7 @@ const listEnter = (protyle: IProtyle, blockElement: HTMLElement, range: Range) = }; export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle) => { - const disableElement = isNotEditBlock(blockElement) + const disableElement = isNotEditBlock(blockElement); if ((!disableElement || blockElement.classList.contains("hr")) && blockElement.classList.contains("protyle-wysiwyg--select")) { setLastNodeRange(getContenteditableElement(blockElement), range, false); range.collapse(false); diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts index b33c32e77..eec194d36 100644 --- a/app/src/util/globalShortcut.ts +++ b/app/src/util/globalShortcut.ts @@ -338,7 +338,7 @@ export const globalShortcut = () => { let icon = ``; let rootId = ""; if (item.model instanceof Editor) { - rootId = ` data-node-id="${item.model.editor.protyle.block.rootID}"` + rootId = ` data-node-id="${item.model.editor.protyle.block.rootID}"`; icon = `${unicode2Emoji(item.docIcon || Constants.SIYUAN_IMAGE_FILE)}`; } tabHtml += `
  • ${icon}${escapeHtml(item.title)}
  • `; @@ -575,7 +575,7 @@ export const globalShortcut = () => { event.stopPropagation(); let activeTabElement = document.querySelector(".block__icons--active"); if (activeTabElement && activeTabElement.getBoundingClientRect().width > 0) { - let type: TDockType + let type: TDockType; Array.from(activeTabElement.parentElement.classList).find(item => { if (item.startsWith("sy__")) { type = item.replace("sy__", "") as TDockType;