An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
import {getFileTreeIconHTML} from "../../../emoji/fileTreeIcon";
import {escapeAttr} from "../../../util/escape";
export const getAVBlockIconHTML = (value: Pick<IAVCellValue, "block" | "isDetached">) => {
if (value.isDetached && !value.block?.icon) {
return '<svg><use xlink:href="#iconLine"></use></svg>';
}
return getFileTreeIconHTML(value.block?.icon, "file");
};
export const renderAVBlockIcon = (value: Pick<IAVCellValue, "block" | "isDetached">, showIcon = true) =>
`<span class="b3-menu__avemoji${showIcon ? "" : " fn__none"}" data-unicode="${escapeAttr(value.block?.icon || "")}">${getAVBlockIconHTML(value)}</span>`;