diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index cba4f82a3..533743e82 100644 --- a/app/src/layout/dock/Files.ts +++ b/app/src/layout/dock/Files.ts @@ -740,8 +740,8 @@ export class Files extends Model { window.siyuan.storage[Constants.LOCAL_FILESPATHS].forEach((item: filesPath) => { item.openPaths.forEach((openPath) => { this.selectItem(item.notebookId, openPath, undefined, false); - }) - }) + }); + }); if (!init) { return; } @@ -1065,17 +1065,17 @@ export class Files extends Model { private getOpenPaths() { const filesPaths: filesPath[] = []; - this.element.querySelectorAll('.b3-list[data-url]').forEach((item: HTMLElement) => { + this.element.querySelectorAll(".b3-list[data-url]").forEach((item: HTMLElement) => { const notebookPaths: filesPath = { notebookId: item.getAttribute("data-url"), openPaths: [] - } + }; item.querySelectorAll(".b3-list-item__arrow--open").forEach((openItem) => { const liElement = hasClosestByTag(openItem, "LI"); if (liElement) { notebookPaths.openPaths.push(liElement.getAttribute("data-path")); } - }) + }); if (notebookPaths.openPaths.length > 0) { for (let i = 0; i < notebookPaths.openPaths.length; i++) { for (let j = i + 1; j < notebookPaths.openPaths.length; j++) { diff --git a/app/src/layout/tabUtil.ts b/app/src/layout/tabUtil.ts index 5a809a91d..20e9a0661 100644 --- a/app/src/layout/tabUtil.ts +++ b/app/src/layout/tabUtil.ts @@ -253,13 +253,13 @@ export const copyTab = (app: App, tab: Tab) => { callback(newTab: Tab) { let model: Model; if (tab.model instanceof Editor) { - const newAction: string[] = [] + const newAction: string[] = []; // https://github.com/siyuan-note/siyuan/issues/12132 tab.model.editor.protyle.block.action.forEach(item => { if (item !== Constants.CB_GET_APPEND && item !== Constants.CB_GET_BEFORE && item !== Constants.CB_GET_HTML) { - newAction.push(item) + newAction.push(item); } - }) + }); model = new Editor({ app, tab: newTab, diff --git a/app/src/mobile/dock/MobileFiles.ts b/app/src/mobile/dock/MobileFiles.ts index db3736275..b2541a019 100644 --- a/app/src/mobile/dock/MobileFiles.ts +++ b/app/src/mobile/dock/MobileFiles.ts @@ -321,8 +321,8 @@ export class MobileFiles extends Model { window.siyuan.storage[Constants.LOCAL_FILESPATHS].forEach((item: filesPath) => { item.openPaths.forEach((openPath) => { this.selectItem(item.notebookId, openPath, undefined, false); - }) - }) + }); + }); if (!init) { return; } @@ -671,17 +671,17 @@ export class MobileFiles extends Model { private getOpenPaths() { const filesPaths: filesPath[] = []; - this.element.querySelectorAll('.b3-list[data-url]').forEach((item: HTMLElement) => { + this.element.querySelectorAll(".b3-list[data-url]").forEach((item: HTMLElement) => { const notebookPaths: filesPath = { notebookId: item.getAttribute("data-url"), openPaths: [] - } + }; item.querySelectorAll(".b3-list-item__arrow--open").forEach((openItem) => { const liElement = hasClosestByTag(openItem, "LI"); if (liElement) { notebookPaths.openPaths.push(liElement.getAttribute("data-path")); } - }) + }); if (notebookPaths.openPaths.length > 0) { for (let i = 0; i < notebookPaths.openPaths.length; i++) { for (let j = i + 1; j < notebookPaths.openPaths.length; j++) { diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index c43026a18..cb33414af 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -1900,7 +1900,7 @@ export class Gutter { private genWidths(nodeElements: Element[], protyle: IProtyle) { let rangeElement: HTMLInputElement; - const firstElement = nodeElements[0] as HTMLElement + const firstElement = nodeElements[0] as HTMLElement; const styles: IMenu[] = [{ iconHTML: "", type: "readonly", @@ -1913,7 +1913,7 @@ export class Gutter { nodeElements.forEach((item: HTMLElement) => { item.style.width = inputElement.value + "px"; item.style.flex = "none"; - }) + }); rangeElement.value = "0"; rangeElement.parentElement.setAttribute("aria-label", inputElement.value + "px"); }); @@ -1976,14 +1976,14 @@ export class Gutter { private genHeights(nodeElements: Element[], protyle: IProtyle) { const matchHeight = nodeElements.find(item => { if (!item.classList.contains("p") && !item.classList.contains("code-block") && !item.classList.contains("render-node")) { - return true + return true; } - }) + }); if (matchHeight) { return; } let rangeElement: HTMLInputElement; - const firstElement = nodeElements[0] as HTMLElement + const firstElement = nodeElements[0] as HTMLElement; const styles: IMenu[] = [{ iconHTML: "", type: "readonly", @@ -1996,7 +1996,7 @@ export class Gutter { nodeElements.forEach((item: HTMLElement) => { item.style.height = inputElement.value + "px"; item.style.flex = "none"; - }) + }); rangeElement.value = "0"; rangeElement.parentElement.setAttribute("aria-label", inputElement.value + "px"); }); @@ -2046,7 +2046,7 @@ export class Gutter { this.genClick(nodeElements, protyle, (e: HTMLElement) => { if (e.style.height) { e.style.height = ""; - e.style.overflow = "" + e.style.overflow = ""; } }); } diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 5a020c06d..733aa2766 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -170,7 +170,7 @@ export const genCellValue = (colType: TAVCol, value: string | any) => { } }; } else if (colType === "date") { - const dateObj = dayjs(value) + const dateObj = dayjs(value); if (isNaN(dateObj.valueOf())) { cellValue = { type: colType,