diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts index 4e3f636c4..c628005f4 100644 --- a/app/src/layout/dock/Outline.ts +++ b/app/src/layout/dock/Outline.ts @@ -470,6 +470,6 @@ export class Outline extends Model { currentElement.classList.add("b3-list-item--focus"); } } - this.element.removeAttribute("data-loading") + this.element.removeAttribute("data-loading"); } } diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts index 545569654..3bf96261b 100644 --- a/app/src/protyle/breadcrumb/index.ts +++ b/app/src/protyle/breadcrumb/index.ts @@ -15,7 +15,7 @@ import {zoomOut} from "../../menus/protyle"; import {getEditorRange} from "../util/selection"; /// #if !MOBILE import {openFileById} from "../../editor/util"; -import {saveLayout, setPanelFocus} from "../../layout/util"; +import {saveLayout} from "../../layout/util"; /// #endif /// #if !BROWSER import {ipcRenderer} from "electron"; @@ -565,7 +565,7 @@ ${padHTML} let range: Range; let blockElement: Element; if (nodeElement) { - blockElement = nodeElement + blockElement = nodeElement; } else if (getSelection().rangeCount > 0) { range = getSelection().getRangeAt(0); if (!protyle.wysiwyg.element.isEqualNode(range.startContainer) && !protyle.wysiwyg.element.contains(range.startContainer)) { diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts index d091f9e56..943670321 100644 --- a/app/src/protyle/header/Title.ts +++ b/app/src/protyle/header/Title.ts @@ -14,8 +14,7 @@ import {Constants} from "../../constants"; import {matchHotKey} from "../util/hotKey"; import {isMac, readText, writeText} from "../util/compatibility"; import * as dayjs from "dayjs"; -import {setPanelFocus} from "../../layout/util"; -import {openFileById, updatePanelByEditor} from "../../editor/util"; +import {openFileById} from "../../editor/util"; import {setTitle} from "../../dialog/processSystem"; import {getNoContainerElement} from "../wysiwyg/getBlock"; import {commonHotkey} from "../wysiwyg/commonHotkey"; diff --git a/app/src/protyle/preview/index.ts b/app/src/protyle/preview/index.ts index ea34388d2..b981ab9a6 100644 --- a/app/src/protyle/preview/index.ts +++ b/app/src/protyle/preview/index.ts @@ -10,9 +10,8 @@ import {getSearch, isMobile} from "../../util/functions"; import {shell} from "electron"; /// #endif /// #if !MOBILE -import {openAsset, openBy, updateOutline} from "../../editor/util"; +import {openAsset, openBy} from "../../editor/util"; import {getAllModels} from "../../layout/getAll"; -import {setPanelFocus} from "../../layout/util"; /// #endif import {fetchPost} from "../../util/fetch"; import {processRender} from "../util/processCode"; diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index 02a815f89..c5cdd95ef 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -304,9 +304,9 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi rowElement.querySelector(".av__firstcol use").setAttribute("xlink:href", "#iconCheck"); const rowElements = blockElement.querySelectorAll(".av__row--select:not(.av__row--header)"); updateHeader(rowElement); - const keyCellElement = rowElements[0].querySelector('.av__cell[data-block-id]') as HTMLElement + const keyCellElement = rowElements[0].querySelector(".av__cell[data-block-id]") as HTMLElement; if (rowElements.length === 1 && keyCellElement.getAttribute("data-detached") !== "true") { - const blockId = rowElements[0].getAttribute("data-id") + const blockId = rowElements[0].getAttribute("data-id"); openEditorTab(protyle.app, blockId); menu.addItem({ label: window.siyuan.languages.copy, @@ -318,7 +318,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi label: window.siyuan.languages.unbindBlock, icon: "iconLinkOff", click() { - updateCellsValue(protyle, blockElement, keyCellElement.querySelector(".av__celltext").textContent, [keyCellElement]) + updateCellsValue(protyle, blockElement, keyCellElement.querySelector(".av__celltext").textContent, [keyCellElement]); } }); } diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 685def84d..d35896738 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -726,7 +726,7 @@ const renderRollup = (cellValue: IAVCellValue) => { } else if (cellValue.type === "date") { const dataValue = cellValue ? cellValue.date : null; if (dataValue.formattedContent) { - text = dataValue.formattedContent + text = dataValue.formattedContent; } else { if (dataValue && dataValue.isNotEmpty) { text = dayjs(dataValue.content).format(dataValue.isNotTime ? "YYYY-MM-DD" : "YYYY-MM-DD HH:mm"); diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts index ba6605da0..86bbae70b 100644 --- a/app/src/protyle/render/av/col.ts +++ b/app/src/protyle/render/av/col.ts @@ -220,7 +220,7 @@ export const getEditHTML = (options: { ` +`; } return `