From 8ace4b1da8774cc774ccc2c60a1c43d174b28706 Mon Sep 17 00:00:00 2001 From: Pouzor Date: Mon, 9 Mar 2026 22:51:13 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20add=20sourceHandle/targetHandle=20to=20a?= =?UTF-8?q?ll=20demo=20edges=20so=20connections=20use=20bottom=E2=86=92top?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/utils/demoData.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/utils/demoData.ts b/frontend/src/utils/demoData.ts index 6b307d9..8be5dab 100644 --- a/frontend/src/utils/demoData.ts +++ b/frontend/src/utils/demoData.ts @@ -65,14 +65,14 @@ export const demoNodes: Node[] = [ ] export const demoEdges: Edge[] = [ - { id: 'e1', source: 'isp-1', target: 'router-1', type: 'ethernet', data: { type: 'ethernet' } }, - { id: 'e2', source: 'router-1', target: 'switch-1', type: 'ethernet', data: { type: 'ethernet', label: '1G' } }, - { id: 'e3', source: 'router-1', target: 'switch-2', type: 'ethernet', data: { type: 'ethernet', label: '1G' } }, - { id: 'e4', source: 'switch-1', target: 'proxmox-1', type: 'ethernet', data: { type: 'ethernet' } }, - { id: 'e5', source: 'switch-1', target: 'server-1', type: 'ethernet', data: { type: 'ethernet' } }, - { id: 'e6', source: 'switch-2', target: 'ap-1', type: 'ethernet', data: { type: 'ethernet' } }, - { id: 'e7', source: 'proxmox-1', target: 'vm-1', type: 'virtual', data: { type: 'virtual' } }, - { id: 'e8', source: 'proxmox-1', target: 'lxc-1', type: 'virtual', data: { type: 'virtual' } }, - { id: 'e9', source: 'ap-1', target: 'iot-1', type: 'wifi', data: { type: 'wifi' } }, - { id: 'e10', source: 'router-1', target: 'server-1', type: 'vlan', data: { type: 'vlan', vlan_id: 20, label: 'VLAN 20' } }, + { id: 'e1', source: 'isp-1', sourceHandle: 'bottom', target: 'router-1', targetHandle: 'top', type: 'ethernet', data: { type: 'ethernet' } }, + { id: 'e2', source: 'router-1', sourceHandle: 'bottom', target: 'switch-1', targetHandle: 'top', type: 'ethernet', data: { type: 'ethernet', label: '1G' } }, + { id: 'e3', source: 'router-1', sourceHandle: 'bottom', target: 'switch-2', targetHandle: 'top', type: 'ethernet', data: { type: 'ethernet', label: '1G' } }, + { id: 'e4', source: 'switch-1', sourceHandle: 'bottom', target: 'proxmox-1', targetHandle: 'top', type: 'ethernet', data: { type: 'ethernet' } }, + { id: 'e5', source: 'switch-1', sourceHandle: 'bottom', target: 'server-1', targetHandle: 'top', type: 'ethernet', data: { type: 'ethernet' } }, + { id: 'e6', source: 'switch-2', sourceHandle: 'bottom', target: 'ap-1', targetHandle: 'top', type: 'ethernet', data: { type: 'ethernet' } }, + { id: 'e7', source: 'proxmox-1', sourceHandle: 'bottom', target: 'vm-1', targetHandle: 'top', type: 'virtual', data: { type: 'virtual' } }, + { id: 'e8', source: 'proxmox-1', sourceHandle: 'bottom', target: 'lxc-1', targetHandle: 'top', type: 'virtual', data: { type: 'virtual' } }, + { id: 'e9', source: 'ap-1', sourceHandle: 'bottom', target: 'iot-1', targetHandle: 'top', type: 'wifi', data: { type: 'wifi' } }, + { id: 'e10', source: 'router-1', sourceHandle: 'bottom', target: 'server-1', targetHandle: 'top', type: 'vlan', data: { type: 'vlan', vlan_id: 20, label: 'VLAN 20' } }, ]