feat: add YAML export — serialize canvas nodes/edges to downloadable .yaml file
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user