diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index 77d26359c..e8e606a91 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -46,7 +46,7 @@ export class Files extends Model {
break;
case "createnotebook":
setNoteBook((notebooks) => {
- let previousId: string
+ let previousId: string;
notebooks.find(item => {
if (!item.closed) {
if (item.id === data.data.box.id) {
@@ -59,7 +59,7 @@ export class Files extends Model {
}
previousId = item.id;
}
- })
+ });
});
break;
case "unmount":
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts
index 6e4ce88f2..c46e9e33c 100644
--- a/app/src/mobile/index.ts
+++ b/app/src/mobile/index.ts
@@ -128,7 +128,7 @@ class App {
}
}
}
- })
+ });
});
}
}
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index e225c9842..ad9ac8546 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -30,7 +30,6 @@ import {openTitleMenu} from "../header/openTitleMenu";
import {emitOpenMenu} from "../../plugin/EventBus";
import {isInAndroid} from "../util/compatibility";
import {resize} from "../util/resize";
-import {transferBlockRef} from "../../menus/block";
export class Breadcrumb {
public element: HTMLElement;
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.ts
index c7941307e..b5306de26 100644
--- a/app/src/protyle/hint/extend.ts
+++ b/app/src/protyle/hint/extend.ts
@@ -47,13 +47,13 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
filter: ["ai chat"],
value: Constants.ZWSP + 5,
html: '
AI Chat
',
- }]
+ }];
if (isPaidUser()) {
allList.push({
filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"],
value: '',
html: `${window.siyuan.languages.database}
`,
- })
+ });
}
[{
filter: ["文档", "子文档", "wendang", "wd", "ziwendang", "zwd", "xjwd"],
diff --git a/app/src/protyle/render/av/asset.ts b/app/src/protyle/render/av/asset.ts
index 2d3f1e387..a2f75a1ec 100644
--- a/app/src/protyle/render/av/asset.ts
+++ b/app/src/protyle/render/av/asset.ts
@@ -115,7 +115,7 @@ export const updateAssetCell = (options: {
const colId = options.cellElements[0].dataset.colId;
const cellDoOperations: IOperation[] = [];
const cellUndoOperations: IOperation[] = [];
- let newValue: IAVCellAssetValue[] = []
+ let newValue: IAVCellAssetValue[] = [];
options.cellElements.forEach((item, elementIndex) => {
let cellData: IAVCell;
const rowID = item.parentElement.dataset.id;
@@ -197,7 +197,7 @@ export const updateAssetCell = (options: {
}
});
if (item.classList.contains("custom-attr__avvalue")) {
- item.innerHTML = genAVValueHTML(cellData.value)
+ item.innerHTML = genAVValueHTML(cellData.value);
} else {
updateAttrViewCellAnimation(item);
}
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts
index 9d91e8b18..8523c87eb 100644
--- a/app/src/protyle/render/av/blockAttr.ts
+++ b/app/src/protyle/render/av/blockAttr.ts
@@ -2,8 +2,6 @@ import {fetchPost} from "../../../util/fetch";
import {getColIconByType} from "./col";
import {escapeAttr} from "../../../util/escape";
import {hasClosestByAttribute} from "../../util/hasClosest";
-import {Menu} from "../../../plugin/Menu";
-import {Constants} from "../../../constants";
import * as dayjs from "dayjs";
import {popTextCell} from "./cell";
diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts
index 30a311287..2fc47b9f4 100644
--- a/app/src/protyle/render/av/openMenuPanel.ts
+++ b/app/src/protyle/render/av/openMenuPanel.ts
@@ -232,7 +232,7 @@ export const openMenuPanel = (options: {
}
if (type === "assets") {
if (isTop) {
- targetElement.before(sourceElement)
+ targetElement.before(sourceElement);
} else {
targetElement.after(sourceElement);
}
@@ -243,9 +243,9 @@ export const openMenuPanel = (options: {
content: item.dataset.content,
name: item.dataset.name,
type: item.dataset.type as "image" | "file",
- })
+ });
}
- })
+ });
updateAssetCell({
protyle: options.protyle,
data,
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts
index 6fe8dd1de..67c84d37e 100644
--- a/app/src/protyle/render/av/select.ts
+++ b/app/src/protyle/render/av/select.ts
@@ -52,7 +52,7 @@ export const removeCellOption = (protyle: IProtyle, data: IAV, cellElements: HTM
const colId = cellElements[0].dataset.colId;
const doOperations: IOperation[] = [];
const undoOperations: IOperation[] = [];
- let newData: IAVCellSelectValue[]
+ let newData: IAVCellSelectValue[];
cellElements.forEach((item, elementIndex) => {
const rowID = item.parentElement.dataset.id;
const cellId = item.dataset.id;
@@ -434,7 +434,7 @@ export const addColOptionOrCell = (protyle: IProtyle, data: IAV, cellElements: H
const cellDoOperations: IOperation[] = [];
const cellUndoOperations: IOperation[] = [];
- let newValue: IAVCellSelectValue[]
+ let newValue: IAVCellSelectValue[];
cellElements.forEach((item, index) => {
let cellData: IAVCell;
const rowID = item.parentElement.dataset.id;
@@ -474,7 +474,7 @@ export const addColOptionOrCell = (protyle: IProtyle, data: IAV, cellElements: H
content: currentElement.dataset.name
});
}
- newValue = cellData.value.mSelect
+ newValue = cellData.value.mSelect;
} else {
cellData.value.mSelect = newValue;
}
diff --git a/app/src/util/needSubscribe.ts b/app/src/util/needSubscribe.ts
index e801d0f7a..1a807c996 100644
--- a/app/src/util/needSubscribe.ts
+++ b/app/src/util/needSubscribe.ts
@@ -31,4 +31,4 @@ export const needSubscribe = (tip = window.siyuan.languages._kernel[29]) => {
export const isPaidUser = () => {
return window.siyuan.user && (0 === window.siyuan.user.userSiYuanSubscriptionStatus || 1 === window.siyuan.user.userSiYuanOneTimePayStatus);
-}
+};