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: https://github.com/siyuan-note/siyuan/issues/10964
Vanessa168b373a0c15
diff --git a/app/src/protyle/render/av/view.ts b/app/src/protyle/render/av/view.tsindex 37e5cf35d0..9f37598ba2 100644--- a/app/src/protyle/render/av/view.ts+++ b/app/src/protyle/render/av/view.ts@@ -164,12 +164,7 @@ export const bindViewEvent = (options: {export const getViewHTML = (data: IAV) => {const view = data.view;- let fields: IAVColumn[];- if (data.viewType === "table") {- fields = (view as IAVTable).columns;- } else if (data.viewType === "gallery") {- fields = (view as IAVGallery).fields;- }+ const fields = getFieldsByData(data);return `<div class="b3-menu__items"><button class="b3-menu__item" data-type="nobg"><span class="b3-menu__label ft__center">${window.siyuan.languages.config}</span>@@ -219,7 +214,7 @@ export const getViewHTML = (data: IAV) => {<button class="b3-menu__item" data-type="goGroups"><svg class="b3-menu__icon"><use xlink:href="#iconGroups"></use></svg><span class="b3-menu__label">${window.siyuan.languages.group}</span>- <span class="b3-menu__accelerator">${view.filters.length}</span>+ <span class="b3-menu__accelerator">${data.view.groups ? fields.filter((item: IAVColumn) => item.id === data.view.groups.field)[0].name : ""}</span><svg class="b3-menu__icon b3-menu__icon--small"><use xlink:href="#iconRight"></use></svg></button><button class="b3-menu__separator"></button>diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 61cd611550..d5336c5ada 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -839,12 +839,15 @@ interface IAVView {pageSize: number;showIcon: boolean;wrapField: boolean;+ filters: IAVFilter[],+ sorts: IAVSort[],+ groups: {+ field: string,+ }}interface IAVTable extends IAVView {columns: IAVColumn[],- filters: IAVFilter[],- sorts: IAVSort[],rows: IAVRow[],rowCount: number,}@@ -858,8 +861,6 @@ interface IAVGallery extends IAVView {cards: IAVGalleryItem[],desc: stringfields: IAVColumn[]- filters: IAVFilter[],- sorts: IAVSort[],cardCount: number,}