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: 汇总主键添加 emoji
Vanessa9a605e869212
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex 4bb1204b15..a4be23f365 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -994,7 +994,7 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0, showIcon = trutext += "</div>";} else if (cellValue.type === "rollup") {cellValue?.rollup?.contents?.forEach((item) => {- const rollupText = ["template", "select", "mSelect", "mAsset", "checkbox", "relation"].includes(item.type) ? renderCell(item, rowIndex, showIcon, type) : renderRollup(item);+ const rollupText = ["template", "select", "mSelect", "mAsset", "checkbox", "relation"].includes(item.type) ? renderCell(item, rowIndex, showIcon, type) : renderRollup(item, showIcon);if (rollupText) {text += rollupText + ", ";}@@ -1028,7 +1028,7 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0, showIcon = trureturn text;};-const renderRollup = (cellValue: IAVCellValue) => {+const renderRollup = (cellValue: IAVCellValue, showIcon: boolean) => {let text = "";if (["text"].includes(cellValue.type)) {text = cellValue ? (cellValue[cellValue.type as "text"].content || "") : "";@@ -1046,7 +1046,7 @@ const renderRollup = (cellValue: IAVCellValue) => {if (cellValue?.isDetached) {text = `<span class="av__celltext">${Lute.EscapeHTMLStr(cellValue.block?.content || window.siyuan.languages.untitled)}</span>`;} else {- text = `<span data-type="block-ref" data-id="${cellValue.block?.id}" data-subtype="s" class="av__celltext av__celltext--ref">${Lute.EscapeHTMLStr(cellValue.block?.content || window.siyuan.languages.untitled)}</span>`;+ text = `<span class="b3-menu__avemoji${showIcon ? "" : " fn__none"}" data-unicode="${cellValue.block.icon || ""}">${unicode2Emoji(cellValue.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)}</span><span data-type="block-ref" data-id="${cellValue.block?.id}" data-subtype="s" class="av__celltext av__celltext--ref">${Lute.EscapeHTMLStr(cellValue.block?.content || window.siyuan.languages.untitled)}</span>`;}} else if (cellValue.type === "number") {text = cellValue?.number.formattedContent || cellValue?.number.content.toString() || "";