mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Add support for more icons (#14299)
This commit is contained in:
parent
48c60621b6
commit
40bb4765d4
@ -7,16 +7,31 @@ import {
|
|||||||
FaCarSide,
|
FaCarSide,
|
||||||
FaCat,
|
FaCat,
|
||||||
FaCheckCircle,
|
FaCheckCircle,
|
||||||
|
FaDhl,
|
||||||
FaDog,
|
FaDog,
|
||||||
FaFedex,
|
FaFedex,
|
||||||
FaFire,
|
FaFire,
|
||||||
FaFootballBall,
|
FaFootballBall,
|
||||||
|
FaHockeyPuck,
|
||||||
|
FaHorse,
|
||||||
FaMotorcycle,
|
FaMotorcycle,
|
||||||
FaMouse,
|
FaMouse,
|
||||||
|
FaRegTrashAlt,
|
||||||
|
FaUmbrella,
|
||||||
FaUps,
|
FaUps,
|
||||||
FaUsps,
|
FaUsps,
|
||||||
} from "react-icons/fa";
|
} from "react-icons/fa";
|
||||||
import { GiDeer, GiHummingbird, GiPolarBear, GiSailboat } from "react-icons/gi";
|
import {
|
||||||
|
GiDeer,
|
||||||
|
GiFox,
|
||||||
|
GiGoat,
|
||||||
|
GiHummingbird,
|
||||||
|
GiPolarBear,
|
||||||
|
GiPostStamp,
|
||||||
|
GiRabbit,
|
||||||
|
GiRaccoonHead,
|
||||||
|
GiSailboat,
|
||||||
|
} from "react-icons/gi";
|
||||||
import { LuBox, LuLassoSelect } from "react-icons/lu";
|
import { LuBox, LuLassoSelect } from "react-icons/lu";
|
||||||
import * as LuIcons from "react-icons/lu";
|
import * as LuIcons from "react-icons/lu";
|
||||||
import { MdRecordVoiceOver } from "react-icons/md";
|
import { MdRecordVoiceOver } from "react-icons/md";
|
||||||
@ -53,8 +68,12 @@ export function getIconForLabel(label: string, className?: string) {
|
|||||||
case "bark":
|
case "bark":
|
||||||
case "dog":
|
case "dog":
|
||||||
return <FaDog key={label} className={className} />;
|
return <FaDog key={label} className={className} />;
|
||||||
case "fire_alarm":
|
case "fox":
|
||||||
return <FaFire key={label} className={className} />;
|
return <GiFox key={label} className={className} />;
|
||||||
|
case "goat":
|
||||||
|
return <GiGoat key={label} className={className} />;
|
||||||
|
case "horse":
|
||||||
|
return <FaHorse key={label} className={className} />;
|
||||||
case "motorcycle":
|
case "motorcycle":
|
||||||
return <FaMotorcycle key={label} className={className} />;
|
return <FaMotorcycle key={label} className={className} />;
|
||||||
case "mouse":
|
case "mouse":
|
||||||
@ -63,8 +82,20 @@ export function getIconForLabel(label: string, className?: string) {
|
|||||||
return <LuBox key={label} className={className} />;
|
return <LuBox key={label} className={className} />;
|
||||||
case "person":
|
case "person":
|
||||||
return <BsPersonWalking key={label} className={className} />;
|
return <BsPersonWalking key={label} className={className} />;
|
||||||
|
case "rabbit":
|
||||||
|
return <GiRabbit key={label} className={className} />;
|
||||||
|
case "raccoon":
|
||||||
|
return <GiRaccoonHead key={label} className={className} />;
|
||||||
|
case "robot_lawnmower":
|
||||||
|
return <FaHockeyPuck key={label} className={className} />;
|
||||||
case "sports_ball":
|
case "sports_ball":
|
||||||
return <FaFootballBall key={label} className={className} />;
|
return <FaFootballBall key={label} className={className} />;
|
||||||
|
case "squirrel":
|
||||||
|
return <LuIcons.LuSquirrel key={label} className={className} />;
|
||||||
|
case "umbrella":
|
||||||
|
return <FaUmbrella key={label} className={className} />;
|
||||||
|
case "waste_bin":
|
||||||
|
return <FaRegTrashAlt key={label} className={className} />;
|
||||||
// audio
|
// audio
|
||||||
case "crying":
|
case "crying":
|
||||||
case "laughter":
|
case "laughter":
|
||||||
@ -72,9 +103,21 @@ export function getIconForLabel(label: string, className?: string) {
|
|||||||
case "speech":
|
case "speech":
|
||||||
case "yell":
|
case "yell":
|
||||||
return <MdRecordVoiceOver key={label} className={className} />;
|
return <MdRecordVoiceOver key={label} className={className} />;
|
||||||
|
case "fire_alarm":
|
||||||
|
return <FaFire key={label} className={className} />;
|
||||||
// sub labels
|
// sub labels
|
||||||
case "amazon":
|
case "amazon":
|
||||||
return <FaAmazon key={label} className={className} />;
|
return <FaAmazon key={label} className={className} />;
|
||||||
|
case "an_post":
|
||||||
|
case "dpd":
|
||||||
|
case "gls":
|
||||||
|
case "nzpost":
|
||||||
|
case "postnl":
|
||||||
|
case "postnord":
|
||||||
|
case "purolator":
|
||||||
|
return <GiPostStamp key={label} className={className} />;
|
||||||
|
case "dhl":
|
||||||
|
return <FaDhl key={label} className={className} />;
|
||||||
case "fedex":
|
case "fedex":
|
||||||
return <FaFedex key={label} className={className} />;
|
return <FaFedex key={label} className={className} />;
|
||||||
case "ups":
|
case "ups":
|
||||||
|
Loading…
Reference in New Issue
Block a user