Merge pull request #84 from findthelorax/feature/property-icons
feature: added new icons for properties
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import { Cpu, HardDrive, MemoryStick } from 'lucide-react'
|
||||
import { CircuitBoard, Cpu, EthernetPort, Gpu, HardDrive, HdmiPort, MemoryStick, Usb } from 'lucide-react'
|
||||
import { PROPERTY_ICONS, PROPERTY_ICON_NAMES, resolvePropertyIcon } from '../propertyIcons'
|
||||
|
||||
describe('PROPERTY_ICONS', () => {
|
||||
it('contains the hardware migration icons', () => {
|
||||
expect(PROPERTY_ICONS['CircuitBoard']).toBe(CircuitBoard)
|
||||
expect(PROPERTY_ICONS['Cpu']).toBe(Cpu)
|
||||
expect(PROPERTY_ICONS['EthernetPort']).toBe(EthernetPort)
|
||||
expect(PROPERTY_ICONS['Gpu']).toBe(Gpu)
|
||||
expect(PROPERTY_ICONS['HardDrive']).toBe(HardDrive)
|
||||
expect(PROPERTY_ICONS['HdmiPort']).toBe(HdmiPort)
|
||||
expect(PROPERTY_ICONS['MemoryStick']).toBe(MemoryStick)
|
||||
expect(PROPERTY_ICONS['Usb']).toBe(Usb)
|
||||
})
|
||||
|
||||
it('has at least 10 icons', () => {
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
import {
|
||||
Battery,
|
||||
Box,
|
||||
CircuitBoard,
|
||||
Clock,
|
||||
Cpu,
|
||||
Database,
|
||||
EthernetPort,
|
||||
Globe,
|
||||
Gpu,
|
||||
HardDrive,
|
||||
HdmiPort,
|
||||
Hash,
|
||||
Key,
|
||||
Layers,
|
||||
@@ -17,6 +21,7 @@ import {
|
||||
Shield,
|
||||
Tag,
|
||||
Thermometer,
|
||||
Usb,
|
||||
Wifi,
|
||||
Zap,
|
||||
} from 'lucide-react'
|
||||
@@ -25,11 +30,15 @@ import type { LucideIcon } from 'lucide-react'
|
||||
export const PROPERTY_ICONS: Record<string, LucideIcon> = {
|
||||
Battery,
|
||||
Box,
|
||||
CircuitBoard,
|
||||
Clock,
|
||||
Cpu,
|
||||
Database,
|
||||
EthernetPort,
|
||||
Globe,
|
||||
Gpu,
|
||||
HardDrive,
|
||||
HdmiPort,
|
||||
Hash,
|
||||
Key,
|
||||
Layers,
|
||||
@@ -41,6 +50,7 @@ export const PROPERTY_ICONS: Record<string, LucideIcon> = {
|
||||
Shield,
|
||||
Tag,
|
||||
Thermometer,
|
||||
Usb,
|
||||
Wifi,
|
||||
Zap,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user