adb4474687
- Fix DockerNode default icon: use Anchor instead of Package - Add border_style option to Group Rectangle (solid/dashed/dotted/double/none) - Group node type selector by category (Hardware, Virtualization, IoT, Generic) - Add tests for border style feature
27 lines
1.6 KiB
TypeScript
27 lines
1.6 KiB
TypeScript
import { type NodeProps, type Node } from '@xyflow/react'
|
|
import {
|
|
Globe, Router, Network, Server, Layers, Box, Container,
|
|
HardDrive, Cpu, Wifi, Circle, Cctv, Printer, Monitor, PlugZap, Anchor,
|
|
} from 'lucide-react'
|
|
import { BaseNode } from './BaseNode'
|
|
import type { NodeData } from '@/types'
|
|
|
|
type N = NodeProps<Node<NodeData>>
|
|
|
|
export const IspNode = (props: N) => <BaseNode {...props} icon={Globe} />
|
|
export const RouterNode = (props: N) => <BaseNode {...props} icon={Router} />
|
|
export const SwitchNode = (props: N) => <BaseNode {...props} icon={Network} />
|
|
export const ServerNode = (props: N) => <BaseNode {...props} icon={Server} />
|
|
export const ProxmoxNode = (props: N) => <BaseNode {...props} icon={Layers} />
|
|
export const VmNode = (props: N) => <BaseNode {...props} icon={Box} />
|
|
export const LxcNode = (props: N) => <BaseNode {...props} icon={Container} />
|
|
export const NasNode = (props: N) => <BaseNode {...props} icon={HardDrive} />
|
|
export const IotNode = (props: N) => <BaseNode {...props} icon={Cpu} />
|
|
export const ApNode = (props: N) => <BaseNode {...props} icon={Wifi} />
|
|
export const CameraNode = (props: N) => <BaseNode {...props} icon={Cctv} />
|
|
export const PrinterNode = (props: N) => <BaseNode {...props} icon={Printer} />
|
|
export const ComputerNode = (props: N) => <BaseNode {...props} icon={Monitor} />
|
|
export const CplNode = (props: N) => <BaseNode {...props} icon={PlugZap} />
|
|
export const DockerNode = (props: N) => <BaseNode {...props} icon={Anchor} />
|
|
export const GenericNode = (props: N) => <BaseNode {...props} icon={Circle} />
|