An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/11839
Vanessab335d7126c29
diff --git a/app/src/constants.ts b/app/src/constants.tsindex 0d9340d8d5..0d78fa3d82 100644--- a/app/src/constants.ts+++ b/app/src/constants.ts@@ -65,6 +65,7 @@ export abstract class Constants {public static readonly CUSTOM_RIFF_DECKS: string = "custom-riff-decks";// size+ public static readonly SIZE_DATABASE_MAZ_SIZE: number = 102400;public static readonly SIZE_SCROLL_TB: number = 24;public static readonly SIZE_SCROLL_STEP: number = 256;public static readonly SIZE_LINK_TEXT_MAX: number = 64;diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.tsindex ccfe5806ff..a8bf23d647 100644--- a/app/src/protyle/render/av/row.ts+++ b/app/src/protyle/render/av/row.ts@@ -6,6 +6,7 @@ import {genCellValueByElement, getTypeByCellElement, popTextCell, renderCell, reimport {fetchPost} from "../../../util/fetch";import {showMessage} from "../../../dialog/message";import * as dayjs from "dayjs";+import {Constants} from "../../../constants";export const selectRow = (checkElement: Element, type: "toggle" | "select" | "unselect" | "unselectAll") => {const rowElement = hasClosestByClassName(checkElement, "av__row");@@ -355,6 +356,20 @@ export const setPageSize = (options: {});}});+ menu.addItem({+ iconHTML: "",+ checked: currentPageSize === Constants.SIZE_DATABASE_MAZ_SIZE.toString(),+ label: window.siyuan.languages.all,+ click() {+ updatePageSize({+ currentPageSize,+ newPageSize: Constants.SIZE_DATABASE_MAZ_SIZE.toString(),+ protyle: options.protyle,+ avID: options.avID,+ nodeElement: options.nodeElement+ });+ }+ });const rect = options.target.getBoundingClientRect();menu.open({x: rect.left,diff --git a/app/src/protyle/render/av/view.ts b/app/src/protyle/render/av/view.tsindex 99ac7e9dee..3dbeccc97b 100644--- a/app/src/protyle/render/av/view.ts+++ b/app/src/protyle/render/av/view.ts@@ -188,7 +188,7 @@ export const getViewHTML = (data: IAVTable) => {<button class="b3-menu__item" data-type="set-page-size" data-size="${data.pageSize}"><svg class="b3-menu__icon"></svg><span class="b3-menu__label">${window.siyuan.languages.pageCount}</span>- <span class="b3-menu__accelerator">${data.pageSize}</span>+ <span class="b3-menu__accelerator">${data.pageSize === Constants.SIZE_DATABASE_MAZ_SIZE ? window.siyuan.languages.all : data.pageSize}</span><svg class="b3-menu__icon b3-menu__icon--small"><use xlink:href="#iconRight"></use></svg></button><label class="b3-menu__item">