diff --git a/frontend/src/components/canvas/nodes/index.tsx b/frontend/src/components/canvas/nodes/index.tsx index 21ef288..1543835 100644 --- a/frontend/src/components/canvas/nodes/index.tsx +++ b/frontend/src/components/canvas/nodes/index.tsx @@ -1,7 +1,7 @@ import { type NodeProps, type Node } from '@xyflow/react' import { Globe, Router, Network, Server, Layers, Box, Container, - HardDrive, Cpu, Wifi, Circle, Cctv, + HardDrive, Cpu, Wifi, Circle, Cctv, Printer, Monitor, } from 'lucide-react' import { BaseNode } from './BaseNode' import type { NodeData } from '@/types' @@ -18,5 +18,7 @@ export const LxcNode = (props: N) => export const IotNode = (props: N) => export const ApNode = (props: N) => -export const CameraNode = (props: N) => -export const GenericNode = (props: N) => +export const CameraNode = (props: N) => +export const PrinterNode = (props: N) => +export const ComputerNode = (props: N) => +export const GenericNode = (props: N) => diff --git a/frontend/src/components/canvas/nodes/nodeTypes.ts b/frontend/src/components/canvas/nodes/nodeTypes.ts index 1a670e7..517c540 100644 --- a/frontend/src/components/canvas/nodes/nodeTypes.ts +++ b/frontend/src/components/canvas/nodes/nodeTypes.ts @@ -1,4 +1,4 @@ -import { IspNode, RouterNode, SwitchNode, ServerNode, VmNode, LxcNode, NasNode, IotNode, ApNode, CameraNode, GenericNode } from './index' +import { IspNode, RouterNode, SwitchNode, ServerNode, VmNode, LxcNode, NasNode, IotNode, ApNode, CameraNode, PrinterNode, ComputerNode, GenericNode } from './index' import { ProxmoxGroupNode } from './ProxmoxGroupNode' export const nodeTypes = { @@ -13,5 +13,7 @@ export const nodeTypes = { iot: IotNode, ap: ApNode, camera: CameraNode, + printer: PrinterNode, + computer: ComputerNode, generic: GenericNode, } diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts index 4c2cc19..b7a1d3e 100644 --- a/frontend/src/types/index.ts +++ b/frontend/src/types/index.ts @@ -10,6 +10,8 @@ export type NodeType = | 'iot' | 'ap' | 'camera' + | 'printer' + | 'computer' | 'generic' export type EdgeType = 'ethernet' | 'wifi' | 'iot' | 'vlan' | 'virtual' | 'cluster' @@ -69,6 +71,8 @@ export const NODE_TYPE_LABELS: Record = { iot: 'IoT Device', ap: 'Access Point', camera: 'Camera', + printer: 'Printer', + computer: 'Computer', generic: 'Generic Device', }