feat: Add Traefik Integration with dedicated widget and Add optional Icons for Gotify/Notifcation Widget (ONLY GOTIFY) (#6206)

Co-authored-by: Thomas <thomas@ajnart.fr>
This commit is contained in:
Nerdy TechnicianandThomas authored and GitHub committed 2026-07-10 16:49:24 +02:00
1 parent bcd36b1b27
commit 9864fed775
33 files changed
+998 -46

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import { IconRoute, IconRouteOff } from "@tabler/icons-react";
import { createWidgetDefinition } from "../definition";
import { optionsBuilder } from "../options";
export const { definition, componentLoader } = createWidgetDefinition("traefik", {
icon: IconRoute,
createOptions() {
return optionsBuilder.from((factory) => ({
showTcp: factory.switch({
defaultValue: true,
}),
showUdp: factory.switch({
defaultValue: true,
}),
showEntryPoints: factory.switch({
defaultValue: true,
}),
}));
},
supportedIntegrations: ["traefik"],
errors: {
INTERNAL_SERVER_ERROR: {
icon: IconRouteOff,
message: (t) => t("widget.traefik.error.internalServerError"),
},
},
}).withDynamicImport(() => import("./component"));