diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index f1c8d27f3..f0aa7eee1 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -996,7 +996,7 @@ export class Files extends Model {
if (item.count && item.count > 0) {
countHTML = `${item.count}`;
}
- const ariaLabel = `${getDisplayName(item.name, true, true)} ${item.hSize}${item.bookmark ? "
" + window.siyuan.languages.bookmark + " " + item.bookmark : ""}${item.name1 ? "
" + window.siyuan.languages.name + " " + item.name1 : ""}${item.alias ? "
" + window.siyuan.languages.alias + " " + item.alias : ""}${item.memo ? "
" + window.siyuan.languages.memo + " " + item.memo : ""}${item.subFileCount !== 0 ? window.siyuan.languages.includeSubFile.replace("x", item.subFileCount) : ""}
${window.siyuan.languages.modifiedAt} ${item.hMtime}
${window.siyuan.languages.createdAt} ${item.hCtime}`
+ const ariaLabel = `${getDisplayName(item.name, true, true)} ${item.hSize}${item.bookmark ? "
" + window.siyuan.languages.bookmark + " " + item.bookmark : ""}${item.name1 ? "
" + window.siyuan.languages.name + " " + item.name1 : ""}${item.alias ? "
" + window.siyuan.languages.alias + " " + item.alias : ""}${item.memo ? "
" + window.siyuan.languages.memo + " " + item.memo : ""}${item.subFileCount !== 0 ? window.siyuan.languages.includeSubFile.replace("x", item.subFileCount) : ""}
${window.siyuan.languages.modifiedAt} ${item.hMtime}
${window.siyuan.languages.createdAt} ${item.hCtime}`;
return `
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 1cdec1043..4fe917015 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -1638,27 +1638,27 @@ export class Toolbar {
this.subElement.style.width = "auto";
this.subElement.style.padding = "0 8px";
- let html = ""
+ let html = "";
const hasCopy = range.toString() !== "" || (range.cloneContents().childNodes[0] as HTMLElement)?.classList?.contains("emoji");
if (hasCopy) {
- html += ``
+ html += "";
if (!protyle.disabled) {
html += `
-`
+`;
}
}
if (!protyle.disabled) {
html += `
-`
+`;
}
if (hasCopy || !protyle.disabled) {
- html += ``
+ html += "";
}
this.subElement.innerHTML = `${html}
`;
this.subElement.lastElementChild.addEventListener("click", async (event) => {
const btnElemen = hasClosestByClassName(event.target as HTMLElement, "keyboard__action");
if (!btnElemen) {
- return
+ return;
}
const action = btnElemen.getAttribute("data-action");
if (action === "copy") {
@@ -1717,7 +1717,7 @@ export class Toolbar {
-`
+`;
setPosition(this.subElement, rangePosition.left, rangePosition.top + 28, Constants.SIZE_TOOLBAR_HEIGHT);
}
});
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index 2d04cefce..addc7c9b6 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -51,7 +51,7 @@ export const pasteEscaped = async (protyle:IProtyle, nodeElement:Element) => {
} catch (e) {
console.log(e);
}
-}
+};
const filterClipboardHint = (protyle: IProtyle, textPlain: string) => {
let needRender = true;
diff --git a/app/src/search/menu.ts b/app/src/search/menu.ts
index ad084c65b..8adeb33a4 100644
--- a/app/src/search/menu.ts
+++ b/app/src/search/menu.ts
@@ -211,7 +211,7 @@ const saveCriterionData = (config: ISearchOption,
criteriaElement.querySelector(".b3-chip--current")?.classList.remove("b3-chip--current");
criteriaElement.insertAdjacentHTML("beforeend", `${criterion.name}
`);
});
-}
+};
export const saveCriterion = (config: ISearchOption,
criteriaData: ISearchOption[],
@@ -244,7 +244,7 @@ export const saveCriterion = (config: ISearchOption,
if (item.name === value) {
return true;
}
- })
+ });
if (hasSame) {
confirmDialog(window.siyuan.languages.confirm, window.siyuan.languages.searchOverwrite, () => {
const criteriaElement = element.querySelector("#criteria").firstElementChild;