Modernize board item, application, and integration selection flows with shared Mantine components, batch board actions, improved accessibility, and hardened persistence.
76 lines
1.6 KiB
TypeScript
76 lines
1.6 KiB
TypeScript
export const widgetKinds = [
|
|
"clock",
|
|
"weather",
|
|
"airQuality",
|
|
"countdown",
|
|
"timer",
|
|
"app",
|
|
"iframe",
|
|
"video",
|
|
"notebook",
|
|
"anchorNote",
|
|
"dnsHoleSummary",
|
|
"dnsHoleControls",
|
|
"smartHome-entityState",
|
|
"smartHome-executeAutomation",
|
|
"stockPrice",
|
|
"mediaServer",
|
|
"calendar",
|
|
"downloads",
|
|
"mediaRequests-requestList",
|
|
"mediaRequests-requestStats",
|
|
"mediaTranscoding",
|
|
"mediaMissing",
|
|
"minecraftServerStatus",
|
|
"networkControllerSummary",
|
|
"networkControllerStatus",
|
|
"rssFeed",
|
|
"bookmarks",
|
|
"indexerManager",
|
|
"healthMonitoring",
|
|
"releases",
|
|
"mediaReleases",
|
|
"dockerContainers",
|
|
"firewall",
|
|
"notifications",
|
|
"systemResources",
|
|
"coolify",
|
|
"systemDisks",
|
|
"timetable",
|
|
"immich-serverStats",
|
|
"immich-albumCarousel",
|
|
"paperlessNgx",
|
|
"patchmon",
|
|
"bazarr",
|
|
"tracearr",
|
|
"speedtestTracker",
|
|
"uptimeKuma",
|
|
"audioStats",
|
|
"umami",
|
|
"vpn",
|
|
"archiveTeamWarrior",
|
|
"ups",
|
|
"beszelSystemTable",
|
|
"beszelSystemGrid",
|
|
"beszelAlerts",
|
|
"beszelSystemStats",
|
|
"traefik",
|
|
"customApi",
|
|
"assistant",
|
|
"wud",
|
|
] as const;
|
|
export type WidgetKind = (typeof widgetKinds)[number];
|
|
|
|
export const widgetDefaultSizes: Partial<Record<WidgetKind, { width: number; height: number }>> = {
|
|
airQuality: { width: 2, height: 1 },
|
|
countdown: { width: 2, height: 1 },
|
|
timer: { width: 2, height: 1 },
|
|
uptimeKuma: { width: 2, height: 3 },
|
|
audioStats: { width: 2, height: 2 },
|
|
paperlessNgx: { width: 2, height: 2 },
|
|
patchmon: { width: 2, height: 2 },
|
|
mediaMissing: { width: 4, height: 3 },
|
|
bazarr: { width: 2, height: 2 },
|
|
assistant: { width: 10, height: 4 },
|
|
};
|