feat: add YAML export — serialize canvas nodes/edges to downloadable .yaml file

This commit is contained in:
Pouzor
2026-03-23 21:59:04 +01:00
parent d9787fdcbb
commit 2e49c14028
7 changed files with 316 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
import type { EdgeType, NodeType } from '@/types'
export interface YamlNodeConnection {
label: string
linkType: EdgeType
linkLabel: string
}
export interface YamlNode {
nodeType: NodeType
nodeIcon?: string
label: string
hostname?: string
ipAddress?: string
checkMethod?: string
checkTarget?: string
notes?: string
parent?: YamlNodeConnection
clusterR?: YamlNodeConnection
clusterL?: YamlNodeConnection
cpuModel?: string
cpuCore?: number
ram?: number
disk?: number
}