switch to plantuml

This commit is contained in:
2026-03-07 00:13:14 +01:00
parent b7aa1079d4
commit cb89557998
6 changed files with 250 additions and 116 deletions

View File

@@ -36,7 +36,7 @@ const initialNodes: Node[] = [
{
id: 'config-1',
position: { x: 50, y: 50 },
data: { yaml: "# example:\nmessage: Hello from config" },
data: { plantuml: '@startuml\nactor User\nparticipant "Render" as R\nUser -> R : config\n@enduml\n' },
type: 'config',
},
{
@@ -116,7 +116,7 @@ export default function App() {
function: 'function',
}
const dataMap: Record<string, any> = {
config: { yaml: '# Enter YAML here\n', title: `config-${id}` },
config: { plantuml: '@startuml\n\n@enduml\n', title: `config-${id}` },
render: {},
variable: { value: '', valueType: 'string' },
function: { body: '// args[0], args[1], ...\nreturn args[0];' },