diff --git a/app/src/mobile/settings/account.ts b/app/src/mobile/settings/account.ts index 74e0e64ca..ba08f7323 100644 --- a/app/src/mobile/settings/account.ts +++ b/app/src/mobile/settings/account.ts @@ -151,7 +151,7 @@ const getLoginHTML = (deactivate = false) => {
-` +`; }; const afterLogin = (response: IWebSocketData, deactive = false) => { @@ -176,7 +176,7 @@ const afterLogin = (response: IWebSocketData, deactive = false) => { processSync(); }); } -} +}; const bindLoginEvent = (modelMainElement: HTMLElement, deactive = false) => { const agreeLoginElement = modelMainElement.querySelector("#agreeLogin") as HTMLInputElement; @@ -252,7 +252,7 @@ const bindLoginEvent = (modelMainElement: HTMLElement, deactive = false) => { afterLogin(faResponse, deactive); }); }); -} +}; export const login = () => { openModel({ diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts index d641d8be1..795ece7fd 100644 --- a/app/src/protyle/render/av/openMenuPanel.ts +++ b/app/src/protyle/render/av/openMenuPanel.ts @@ -434,13 +434,13 @@ const setFilter = (protyle: IProtyle, data: IAV, target: HTMLElement) => { filters: oldFilters } }]); - const menuElement = hasClosestByClassName(target, "b3-menu") + const menuElement = hasClosestByClassName(target, "b3-menu"); if (menuElement) { menuElement.innerHTML = getFiltersHTML(data); } }); let selectHTML = ""; - const filterOperation = target.getAttribute("data-op") + const filterOperation = target.getAttribute("data-op"); switch (colType) { case "text": selectHTML = ` @@ -457,12 +457,12 @@ const setFilter = (protyle: IProtyle, data: IAV, target: HTMLElement) => { menu.addItem({ iconHTML: "", label: `` - }) + }); menu.addItem({ iconHTML: "", label: `` - }) - const textElement = (window.siyuan.menus.menu.element.querySelector(".b3-text-field") as HTMLInputElement) + }); + const textElement = (window.siyuan.menus.menu.element.querySelector(".b3-text-field") as HTMLInputElement); textElement.addEventListener("keydown", (event) => { if (event.isComposing) { event.preventDefault(); @@ -472,11 +472,11 @@ const setFilter = (protyle: IProtyle, data: IAV, target: HTMLElement) => { menu.close(); event.preventDefault(); } - }) + }); const rectTarget = target.getBoundingClientRect(); menu.open({x: rectTarget.left, y: rectTarget.bottom}); textElement.select(); -} +}; const addFilter = (options: { data: IAV, @@ -535,7 +535,7 @@ const addFilter = (options: { y: options.rect.bottom, h: options.rect.height, }); -} +}; const getFiltersHTML = (data: IAV) => { let html = ""; @@ -548,7 +548,7 @@ const getFiltersHTML = (data: IAV) => { ${item.name}${filterValue ? ": " + filterValue : ""} `; - return true + return true; } }); return filterHTML; diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.ts index 2262fcfc3..2347a797e 100644 --- a/app/src/util/highlightById.ts +++ b/app/src/util/highlightById.ts @@ -68,9 +68,9 @@ export const scrollCenter = (protyle: IProtyle, nodeElement?: Element, top = fal parentNodeElement = parentNodeElement.parentElement; } let contentTop = 0; - let topElement = protyle.element.firstElementChild + let topElement = protyle.element.firstElementChild; while (topElement && !topElement.classList.contains("protyle-content")) { - contentTop += topElement.clientHeight + contentTop += topElement.clientHeight; topElement = topElement.nextElementSibling; } if (top) {