feat: add YAML import — merge nodes/edges from .yaml file into canvas
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { EdgeType, NodeType } from '@/types'
|
||||
import type { NodeType, EdgeType, CheckMethod } from '@/types'
|
||||
|
||||
export interface YamlNodeConnection {
|
||||
label: string
|
||||
linkType: EdgeType
|
||||
linkLabel: string
|
||||
linkType?: EdgeType
|
||||
linkLabel?: string
|
||||
}
|
||||
|
||||
export interface YamlNode {
|
||||
@@ -12,7 +12,7 @@ export interface YamlNode {
|
||||
label: string
|
||||
hostname?: string
|
||||
ipAddress?: string
|
||||
checkMethod?: string
|
||||
checkMethod?: CheckMethod
|
||||
checkTarget?: string
|
||||
notes?: string
|
||||
parent?: YamlNodeConnection
|
||||
|
||||
Reference in New Issue
Block a user