Skip to content

Commit 9989d79

Browse files
committed
🚨
1 parent 09d1d7c commit 9989d79

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

app/src/ai/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
233233
element.setAttribute("style", "height: 100%;padding: 0 16px;");
234234
element.querySelectorAll(".b3-menu__separator").forEach(item => {
235235
item.remove();
236-
})
236+
});
237237
/// #endif
238238
const listElement = element.querySelector(".b3-list");
239239
const inputElement = element.querySelector("input");

app/src/protyle/header/Title.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export class Title {
296296
if (response.data.ial["custom-avs"]) {
297297
let avTitle = "";
298298
response.data.attrViews.forEach((item: { id: string, name: string }) => {
299-
avTitle += `<span data-av-id="${item.id}" data-popover-url="/api/av/getMirrorDatabaseBlocks" class="popover__block">${item.name}</span>&nbsp;`
299+
avTitle += `<span data-av-id="${item.id}" data-popover-url="/api/av/getMirrorDatabaseBlocks" class="popover__block">${item.name}</span>&nbsp;`;
300300
});
301301
if (avTitle) {
302302
avTitle = avTitle.substring(0, avTitle.length - 6);

app/src/protyle/render/av/render.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value)}</div>`;
307307
} else {
308308
viewsElement.classList.remove("av__views--show");
309309
}
310-
updateSearch(e, protyle)
310+
updateSearch(e, protyle);
311311
});
312312
searchInputElement.addEventListener("compositionend", () => {
313-
updateSearch(e, protyle)
313+
updateSearch(e, protyle);
314314
});
315315
searchInputElement.addEventListener("blur", (event: KeyboardEvent) => {
316316
if (event.isComposing) {
@@ -341,15 +341,15 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value)}</div>`;
341341
}
342342
};
343343

344-
let searchTimeout: number
344+
let searchTimeout: number;
345345

346346
const updateSearch = (e: HTMLElement, protyle: IProtyle) => {
347-
clearTimeout(searchTimeout)
347+
clearTimeout(searchTimeout);
348348
searchTimeout = window.setTimeout(() => {
349349
e.removeAttribute("data-render");
350-
avRender(e, protyle)
350+
avRender(e, protyle);
351351
}, Constants.TIMEOUT_INPUT);
352-
}
352+
};
353353

354354
const refreshTimeouts: {
355355
[key: string]: number;

app/src/protyle/render/av/row.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const setPage = (blockElement: Element) => {
9494
export const insertAttrViewBlockAnimation = (protyle: IProtyle, blockElement: Element, srcIDs: string[], previousId: string, avId?: string,) => {
9595
if ((blockElement.querySelector('[data-type="av-search"]') as HTMLInputElement).value !== "") {
9696
showMessage(window.siyuan.languages.insertRowTip);
97-
return
97+
return;
9898
}
9999
let previousElement = blockElement.querySelector(`.av__row[data-id="${previousId}"]`) || blockElement.querySelector(".av__row--header");
100100
// 有排序需要加入最后一行

0 commit comments

Comments
 (0)