feat: add YAML import — merge nodes/edges from .yaml file into canvas

This commit is contained in:
Pouzor
2026-03-23 21:34:26 +01:00
parent d5b67a770c
commit e7ab9a1d7a
5 changed files with 435 additions and 7 deletions
+4 -4
View File
@@ -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