Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:rotating_light:

Vanessaff3ab8481135
diff --git a/app/src/config/repos.ts b/app/src/config/repos.ts
index 2428c783d2..9226f4590d 100644
--- a/app/src/config/repos.ts
+++ b/app/src/config/repos.ts
@@ -284,7 +284,7 @@ const bindProviderEvent = () => {
let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10);
if (7 > timeout) {
if (1 > timeout) {
- timeout = 30
+ timeout = 30;
} else {
timeout = 7;
}
@@ -307,7 +307,7 @@ const bindProviderEvent = () => {
window.siyuan.config.sync.s3 = s3;
});
} else if (window.siyuan.config.sync.provider === 3) {
- let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10)
+ let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10);
if (7 > timeout) {
timeout = 7;
}
diff --git a/app/src/protyle/markdown/highlightRender.ts b/app/src/protyle/markdown/highlightRender.ts
index bebeaa742c..dfb83e2588 100644
--- a/app/src/protyle/markdown/highlightRender.ts
+++ b/app/src/protyle/markdown/highlightRender.ts
@@ -100,7 +100,7 @@ export const highlightRender = (element: Element, cdn = Constants.PROTYLE_CDN) =
}
}
// 搜索定位
- const layoutElement = hasClosestByClassName(block, "search__layout", true)
+ const layoutElement = hasClosestByClassName(block, "search__layout", true);
if (layoutElement && block.parentElement.getAttribute("data-node-id") === layoutElement.querySelector("#searchList > .b3-list-item--focus")?.getAttribute("data-node-id")) {
const matchElement = block.querySelector('span[data-type="search-mark"]');
if (matchElement) {