diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.ts
index 7fa781c47..03d8d4df1 100644
--- a/app/src/protyle/ui/initUI.ts
+++ b/app/src/protyle/ui/initUI.ts
@@ -89,7 +89,7 @@ export const setPadding = (protyle: IProtyle) => {
});
}
if (window.siyuan.config.editor.displayBookmarkIcon) {
- const editorAttrElement = document.getElementById("editorAttr")
+ const editorAttrElement = document.getElementById("editorAttr");
if (editorAttrElement) {
editorAttrElement.innerHTML = `.protyle-wysiwyg--attr .b3-tooltips:after { max-width: ${protyle.wysiwyg.element.clientWidth - min16 - min24}px; }`;
}
diff --git a/app/src/util/history.ts b/app/src/util/history.ts
index ff443bdad..c6c5ab14c 100644
--- a/app/src/util/history.ts
+++ b/app/src/util/history.ts
@@ -112,10 +112,10 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string
let actionHTML = `
`;
if (type === "download") {
- actionHTML = ``
+ actionHTML = ``;
} else if (type === "upload") {
actionHTML = `
-`
+`;
}
let repoHTML = "";
response.data.snapshots.forEach((item: { memo: string, id: string, hCreated: string, count: number, hSize: string, tag: string }) => {
@@ -131,7 +131,7 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string
`;
});
element.lastElementChild.innerHTML = `${repoHTML}`;
-}
+};
const renderRepo = (element: Element, currentPage: number) => {
const previousElement = element.querySelector('[data-type="previous"]');
@@ -140,18 +140,18 @@ const renderRepo = (element: Element, currentPage: number) => {
if (currentPage === -1) {
fetchPost("/api/repo/getRepoTagSnapshots", {}, (response) => {
renderRepoItem(response, element, "upload");
- })
+ });
}
if (currentPage === -2) {
fetchPost("/api/repo/getCloudRepoTagSnapshots", {}, (response) => {
renderRepoItem(response, element, "download");
- })
+ });
}
- previousElement.classList.add("fn__none")
- nextElement.classList.add("fn__none")
+ previousElement.classList.add("fn__none");
+ nextElement.classList.add("fn__none");
} else {
- previousElement.classList.remove("fn__none")
- nextElement.classList.remove("fn__none")
+ previousElement.classList.remove("fn__none");
+ nextElement.classList.remove("fn__none");
element.setAttribute("data-init", "true");
element.setAttribute("data-page", currentPage.toString());
if (currentPage > 1) {
@@ -299,7 +299,7 @@ export const openHistory = () => {
} else if (value === "2") {
renderRepo(repoElement, -2);
}
- })
+ });
dialog.element.addEventListener("click", (event) => {
let target = event.target as HTMLElement;
while (target && !target.isEqualNode(dialog.element)) {
@@ -436,7 +436,7 @@ export const openHistory = () => {
fetchPost("/api/repo/downloadCloudSnapshot", {
tag: target.parentElement.getAttribute("data-tag"),
id: target.parentElement.getAttribute("data-id")
- })
+ });
} else if (type === "genTag") {
const genTagDialog = new Dialog({
title: window.siyuan.languages.tagSnapshot,