diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.ts
index 058eccada4e..c430abf8c09 100644
--- a/app/src/block/Panel.ts
+++ b/app/src/block/Panel.ts
@@ -14,7 +14,6 @@ import {openFileById} from "../editor/util";
import {fetchPost} from "../util/fetch";
import {showMessage} from "../dialog/message";
import {App} from "../index";
-import {isMobile} from "../util/functions";
import {resize} from "../protyle/util/resize";
export class BlockPanel {
diff --git a/app/src/history/diff.ts b/app/src/history/diff.ts
index 2b51133a4f5..3b6c1017b66 100644
--- a/app/src/history/diff.ts
+++ b/app/src/history/diff.ts
@@ -230,7 +230,7 @@ const genHTML = (left: string, right: string, dialog: Dialog, direct: string) =>
`;
headElement.nextElementSibling.innerHTML = `
-
+
-
diff --git a/app/src/history/doc.ts b/app/src/history/doc.ts
index 74df038ae3f..83b041f598b 100644
--- a/app/src/history/doc.ts
+++ b/app/src/history/doc.ts
@@ -62,7 +62,7 @@ export const openDocHistory = (options: {
pathString: string
}) => {
const contentHTML = `
-
+
- ${window.siyuan.languages.emptyContent}
@@ -168,7 +168,7 @@ export const openDocHistory = (options: {
action: [Constants.CB_GET_HISTORY, Constants.CB_GET_HTML],
});
}
- dialog.element.querySelector('.protyle-title__input').textContent = item.title;
+ dialog.element.querySelector(".protyle-title__input").textContent = item.title;
isLoading = false;
});
target.parentElement.querySelector(".b3-list-item--focus")?.classList.remove("b3-list-item--focus");
diff --git a/app/src/history/history.ts b/app/src/history/history.ts
index 6d9742a4ef9..71f07d33169 100644
--- a/app/src/history/history.ts
+++ b/app/src/history/history.ts
@@ -66,9 +66,9 @@ const renderDoc = (element: HTMLElement, currentPage: number) => {
opElement.querySelector('option[value="replace"]').classList.remove("fn__none");
opElement.querySelector('option[value="outline"]').classList.remove("fn__none");
}
- window.siyuan.storage[Constants.LOCAL_HISTORY].notebookId = notebookElement.value
- window.siyuan.storage[Constants.LOCAL_HISTORY].type = parseInt(typeElement.value)
- window.siyuan.storage[Constants.LOCAL_HISTORY].operation = opElement.value
+ window.siyuan.storage[Constants.LOCAL_HISTORY].notebookId = notebookElement.value;
+ window.siyuan.storage[Constants.LOCAL_HISTORY].type = parseInt(typeElement.value);
+ window.siyuan.storage[Constants.LOCAL_HISTORY].operation = opElement.value;
setStorageVal(Constants.LOCAL_HISTORY, window.siyuan.storage[Constants.LOCAL_HISTORY]);
fetchPost("/api/history/searchHistory", {
notebook: notebookElement.value,
@@ -393,7 +393,7 @@ export const openHistory = (app: App) => {
-
+
- ${window.siyuan.languages.emptyContent}
@@ -483,7 +483,7 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => {
const docElement = firstPanelElement.querySelector('.history__text[data-type="docPanel"]') as HTMLElement;
const assetElement = firstPanelElement.querySelector('.history__text[data-type="assetPanel"]');
const mdElement = firstPanelElement.querySelector('.history__text[data-type="mdPanel"]') as HTMLTextAreaElement;
- const titleElement = firstPanelElement.querySelector('.protyle-title__input') as HTMLElement;
+ const titleElement = firstPanelElement.querySelector(".protyle-title__input") as HTMLElement;
renderDoc(firstPanelElement, 1);
historyEditor = new Protyle(app, docElement, {
blockId: "",
diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts
index e90a3733efd..35eb6e3c95e 100644
--- a/app/src/mobile/util/initFramework.ts
+++ b/app/src/mobile/util/initFramework.ts
@@ -46,7 +46,7 @@ const openDockMenu = (app: App) => {
}
}
custom = plugin.docks[dockId].mobileModel(document.querySelector('#sidebar [data-type="sidebar-plugin"]'));
- window.siyuan.mobile.docks[dockId] = custom
+ window.siyuan.mobile.docks[dockId] = custom;
}
}
});
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index f77ef81a7e3..269c59fed9a 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -286,7 +286,7 @@ export class Gutter {
blockElement.setAttribute("updated", newUpdated);
} else {
if (!protyle.disabled && event.shiftKey) {
- const blockId = rowElement.querySelector('[data-dtype="block"] .av__celltext--ref')?.getAttribute("data-id")
+ const blockId = rowElement.querySelector('[data-dtype="block"] .av__celltext--ref')?.getAttribute("data-id");
if (blockId) {
fetchPost("/api/attr/getBlockAttrs", {id: blockId}, (response) => {
openFileAttr(response.data, "av", protyle);
@@ -2243,9 +2243,9 @@ export class Gutter {
element = rowElement;
let iconAriaLabel = isMac() ? window.siyuan.languages.rowTip : window.siyuan.languages.rowTip.replace("⇧", "Shift+");
if (protyle.disabled) {
- iconAriaLabel = window.siyuan.languages.rowTip.substring(0, window.siyuan.languages.rowTip.indexOf("
`;
if (!protyle.disabled) {
@@ -2278,7 +2278,7 @@ export class Gutter {
index += 1;
let gutterTip = this.gutterTip;
if (protyle.disabled) {
- gutterTip = this.gutterTip.split("
").splice(0, 2).join("
")
+ gutterTip = this.gutterTip.split("
").splice(0, 2).join("
");
}
const buttonHTML = `