refactor: simplify widget and integration architecture
This commit is contained in:
1 parent
c988c35b29
commit
8f9efd0074
179 files changed
+1509
-4187
No files matched your search
@@ -22,6 +22,7 @@ import {
|
||||
IconCloud,
|
||||
IconDeviceCctv,
|
||||
IconDeviceGamepad,
|
||||
IconDownload,
|
||||
IconFileText,
|
||||
IconGraphFilled,
|
||||
IconHeadphones,
|
||||
@@ -55,17 +56,9 @@ import type { TablerIcon } from "@tabler/icons-react";
|
||||
|
||||
import type { WidgetKind } from "@homarr/definitions";
|
||||
|
||||
import { generatedWidgetCatalogIcons } from "./generated/widget-icons";
|
||||
|
||||
const {
|
||||
weather: generatedWeatherIcon,
|
||||
downloads: generatedDownloadsIcon,
|
||||
...additionalGeneratedWidgetIcons
|
||||
} = generatedWidgetCatalogIcons;
|
||||
|
||||
export const widgetCatalogIcons: Record<WidgetKind, TablerIcon> = {
|
||||
clock: IconClock,
|
||||
weather: generatedWeatherIcon,
|
||||
weather: IconCloud,
|
||||
airQuality: IconWind,
|
||||
countdown: IconHourglass,
|
||||
timer: IconClockPlay,
|
||||
@@ -82,7 +75,7 @@ export const widgetCatalogIcons: Record<WidgetKind, TablerIcon> = {
|
||||
stockPrice: IconBuildingBank,
|
||||
mediaServer: IconVideo,
|
||||
calendar: IconCalendar,
|
||||
downloads: generatedDownloadsIcon,
|
||||
downloads: IconDownload,
|
||||
"mediaRequests-requestList": IconZoomQuestion,
|
||||
"mediaRequests-requestStats": IconChartBar,
|
||||
mediaTranscoding: IconTransform,
|
||||
@@ -123,5 +116,4 @@ export const widgetCatalogIcons: Record<WidgetKind, TablerIcon> = {
|
||||
traefik: IconRoute,
|
||||
customApi: IconApi,
|
||||
wud: IconBrandDocker,
|
||||
...additionalGeneratedWidgetIcons,
|
||||
};
|
||||
Reference in new issue
Block a user