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 {LIST_MINDMAP_CONNECTOR_STYLES} from "./connectors";
import type {ListMindmapConnectorStyle} from "./connectors";
export const getListMindmapConnectorMenuItem = (current: ListMindmapConnectorStyle,
select: (style: ListMindmapConnectorStyle) => void,
labels: Record<string, string>, scope: "current" | "default" = "current"): IMenu => {
const names = {
spline: labels.listMindmapConnectorSpline,
orthogonal: labels.listMindmapConnectorOrthogonal,
bezier: labels.listMindmapConnectorBezier,
rounded: labels.listMindmapConnectorRounded,
};
return {
id: scope === "default" ? "defaultConnectorStyle" : "connectorStyle", iconHTML: "",
label: scope === "default" ? labels.listMindmapDefaultConnectorStyle : labels.listMindmapConnectorStyle,
submenu: LIST_MINDMAP_CONNECTOR_STYLES.map(style => ({
id: style, iconHTML: "", label: names[style], checked: current === style,
click: () => select(style),
})),
};
};