fix(widgets): remove out-of-scope UniFi Site Manager widget stub
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9a7915d230
commit
74ff68993e
3 files changed
-24
No files matched your search
@@ -56,7 +56,6 @@ import * as traefik from "./traefik";
|
|||||||
import * as tracearr from "./tracearr";
|
import * as tracearr from "./tracearr";
|
||||||
import * as umami from "./umami";
|
import * as umami from "./umami";
|
||||||
import * as unifiOs from "./unifi-os";
|
import * as unifiOs from "./unifi-os";
|
||||||
import * as unifiSiteManager from "./unifi-site-manager";
|
|
||||||
import * as ups from "./ups";
|
import * as ups from "./ups";
|
||||||
import * as vpn from "./vpn";
|
import * as vpn from "./vpn";
|
||||||
import * as beszelSystemTable from "./beszel-system-table";
|
import * as beszelSystemTable from "./beszel-system-table";
|
||||||
@@ -134,7 +133,6 @@ export const widgetImports = {
|
|||||||
customApi,
|
customApi,
|
||||||
wud,
|
wud,
|
||||||
unifiOs,
|
unifiOs,
|
||||||
unifiSiteManager,
|
|
||||||
} satisfies WidgetImportRecord;
|
} satisfies WidgetImportRecord;
|
||||||
|
|
||||||
export type WidgetImports = typeof widgetImports;
|
export type WidgetImports = typeof widgetImports;
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
"use client";
|
|
||||||
|
|
||||||
import type { WidgetComponentProps } from "../definition";
|
|
||||||
|
|
||||||
export default function UnifiSiteManagerWidget({ integrationIds, options }: WidgetComponentProps<"unifiSiteManager">) {
|
|
||||||
return <div>Unifi Site Manager</div>;
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
import { IconCloudNetwork } from "@tabler/icons-react";
|
|
||||||
|
|
||||||
import { createWidgetDefinition } from "../definition";
|
|
||||||
import { optionsBuilder } from "../options";
|
|
||||||
|
|
||||||
export const { definition, componentLoader } = createWidgetDefinition("unifiSiteManager", {
|
|
||||||
icon: IconCloudNetwork,
|
|
||||||
refetchInterval: 5 * 60,
|
|
||||||
supportedIntegrations: ["unifiSiteManager"],
|
|
||||||
integrationsRequired: true,
|
|
||||||
createOptions() {
|
|
||||||
return optionsBuilder.from((factory) => ({}));
|
|
||||||
},
|
|
||||||
errors: {},
|
|
||||||
}).withDynamicImport(() => import("./component"));
|
|
||||||
Reference in new issue
Block a user