diff --git a/app/src/layout/dock/Inbox.ts b/app/src/layout/dock/Inbox.ts index 8c44d4ae9..03a602884 100644 --- a/app/src/layout/dock/Inbox.ts +++ b/app/src/layout/dock/Inbox.ts @@ -333,7 +333,7 @@ ${data.shorthandContent} path: pathPosix().join(getDisplayName(toPath[0], false, true), Lute.NewNodeID() + ".sy"), title: replaceFileName(response.data.shorthandTitle), md: response.data.shorthandMd, - }, (docResponse) => { + }, () => { this.remove(item); }); }); diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.ts index 3a3c10613..3298e8aeb 100644 --- a/app/src/layout/topBar.ts +++ b/app/src/layout/topBar.ts @@ -20,7 +20,6 @@ import {needSubscribe} from "../util/needSubscribe"; import * as dayjs from "dayjs"; import {commandPanel} from "../plugin/commandPanel"; import {exportLayout} from "./util"; -import {showMessage} from "../dialog/message"; export const initBar = (app: App) => { const toolbarElement = document.getElementById("toolbar"); diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts index fcbf58176..191c83fba 100644 --- a/app/src/protyle/render/av/row.ts +++ b/app/src/protyle/render/av/row.ts @@ -125,7 +125,7 @@ const updatePageSize = (currentPageSIze: string, newPageSize: string) => { if (currentPageSIze === newPageSize) { return; } -} +}; export const setPageSize = (target: HTMLElement) => { const menu = new Menu("av-page-size"); @@ -170,4 +170,4 @@ export const setPageSize = (target: HTMLElement) => { x: rect.left, y: rect.bottom }); -} +}; diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index d3b0c5a08..deb0b6bf8 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -330,7 +330,7 @@ export const disabledProtyle = (protyle: IProtyle) => { protyle.wysiwyg.element.querySelectorAll('.protyle-action[draggable="true"]').forEach(item => { item.setAttribute("draggable", "false"); }); - protyle.wysiwyg.element.querySelectorAll('.av').forEach((item: HTMLElement) => { + protyle.wysiwyg.element.querySelectorAll(".av").forEach((item: HTMLElement) => { const headerElement = item.querySelector(".av__row--header") as HTMLElement; if (headerElement) { headerElement.style.transform = ""; @@ -375,7 +375,7 @@ export const enableProtyle = (protyle: IProtyle) => { item.setAttribute("draggable", "true"); }); const contentRect = protyle.contentElement.getBoundingClientRect(); - protyle.wysiwyg.element.querySelectorAll('.av').forEach((item: HTMLElement) => { + protyle.wysiwyg.element.querySelectorAll(".av").forEach((item: HTMLElement) => { stickyRow(item, contentRect, "all"); }); if (protyle.breadcrumb) { diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.ts index 6ffd8f578..aa99926f9 100644 --- a/app/src/protyle/wysiwyg/enter.ts +++ b/app/src/protyle/wysiwyg/enter.ts @@ -456,8 +456,8 @@ export const softEnter = (range: Range, nodeElement: HTMLElement, protyle: IProt addNewLineToEnd(range, nodeElement, protyle, startElement); return true; } - return false -} + return false; +}; const addNewLineToEnd = (range: Range, nodeElement: HTMLElement, protyle: IProtyle, startElement: Element) => { const wbrElement = document.createElement("wbr"); @@ -468,7 +468,7 @@ const addNewLineToEnd = (range: Range, nodeElement: HTMLElement, protyle: IProty } const oldHTML = nodeElement.outerHTML; wbrElement.remove(); - let endNewlineNode + let endNewlineNode; if (!hasNextSibling(startElement)) { endNewlineNode = document.createTextNode("\n"); startElement.after(endNewlineNode); @@ -483,4 +483,4 @@ const addNewLineToEnd = (range: Range, nodeElement: HTMLElement, protyle: IProty range.collapse(true); focusByRange(range); updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML); -} +};