feat(definitions): declare unifiOs integration kind, category and widget kind
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
de0c0bf740
commit
c861ae6994
6 files changed
+15
No files matched your search
@@ -31,6 +31,7 @@ export const integrationDocSlugs: Record<IntegrationKind, string | null> = {
|
|||||||
proxmox: "proxmox",
|
proxmox: "proxmox",
|
||||||
nextcloud: "nextcloud",
|
nextcloud: "nextcloud",
|
||||||
unifiController: "unifi-controller",
|
unifiController: "unifi-controller",
|
||||||
|
unifiOs: null,
|
||||||
opnsense: "opnsense",
|
opnsense: "opnsense",
|
||||||
ntfy: "ntfy",
|
ntfy: "ntfy",
|
||||||
gotify: "gotify",
|
gotify: "gotify",
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ export const widgetDocSlugs: Record<WidgetKind, string | null> = {
|
|||||||
minecraftServerStatus: "minecraft-server-status",
|
minecraftServerStatus: "minecraft-server-status",
|
||||||
networkControllerSummary: "network-controller-summary",
|
networkControllerSummary: "network-controller-summary",
|
||||||
networkControllerStatus: "network-controller-status",
|
networkControllerStatus: "network-controller-status",
|
||||||
|
unifiOs: null,
|
||||||
rssFeed: "rss-feed",
|
rssFeed: "rss-feed",
|
||||||
bookmarks: "bookmarks",
|
bookmarks: "bookmarks",
|
||||||
indexerManager: "indexer-manager",
|
indexerManager: "indexer-manager",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { createDocumentationLink } from "./docs";
|
|||||||
|
|
||||||
export const integrationSecretKindObject = {
|
export const integrationSecretKindObject = {
|
||||||
apiKey: { isPublic: false, multiline: false },
|
apiKey: { isPublic: false, multiline: false },
|
||||||
|
siteManagerApiKey: { isPublic: false, multiline: false },
|
||||||
username: { isPublic: true, multiline: false },
|
username: { isPublic: true, multiline: false },
|
||||||
password: { isPublic: false, multiline: false },
|
password: { isPublic: false, multiline: false },
|
||||||
tokenId: { isPublic: true, multiline: false },
|
tokenId: { isPublic: true, multiline: false },
|
||||||
@@ -286,6 +287,14 @@ export const integrationDefs = {
|
|||||||
documentationUrl: createDocumentationLink("/docs/integrations/unifi-controller"),
|
documentationUrl: createDocumentationLink("/docs/integrations/unifi-controller"),
|
||||||
defaultPort: 8443,
|
defaultPort: 8443,
|
||||||
},
|
},
|
||||||
|
unifiOs: {
|
||||||
|
name: "UniFi OS",
|
||||||
|
secretKinds: [["apiKey"], ["apiKey", "siteManagerApiKey"]],
|
||||||
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/unifi.png",
|
||||||
|
category: ["unifiOs"],
|
||||||
|
documentationUrl: null,
|
||||||
|
defaultPort: 443,
|
||||||
|
},
|
||||||
opnsense: {
|
opnsense: {
|
||||||
name: "OPNsense",
|
name: "OPNsense",
|
||||||
secretKinds: [["opnsenseApiKey", "opnsenseApiSecret"]],
|
secretKinds: [["opnsenseApiKey", "opnsenseApiSecret"]],
|
||||||
@@ -593,6 +602,7 @@ export const integrationCategories = [
|
|||||||
"uptimeMonitoring",
|
"uptimeMonitoring",
|
||||||
"subtitleManager",
|
"subtitleManager",
|
||||||
"reverseProxy",
|
"reverseProxy",
|
||||||
|
"unifiOs",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export type IntegrationCategory = (typeof integrationCategories)[number];
|
export type IntegrationCategory = (typeof integrationCategories)[number];
|
||||||
@@ -23,6 +23,7 @@ export const widgetIntegrationSupport: Partial<Record<WidgetKind, readonly Integ
|
|||||||
mediaMissing: getIntegrationKindsByCategory("mediaOrganizer"),
|
mediaMissing: getIntegrationKindsByCategory("mediaOrganizer"),
|
||||||
networkControllerSummary: getIntegrationKindsByCategory("networkController"),
|
networkControllerSummary: getIntegrationKindsByCategory("networkController"),
|
||||||
networkControllerStatus: getIntegrationKindsByCategory("networkController"),
|
networkControllerStatus: getIntegrationKindsByCategory("networkController"),
|
||||||
|
unifiOs: ["unifiOs"],
|
||||||
indexerManager: getIntegrationKindsByCategory("indexerManager"),
|
indexerManager: getIntegrationKindsByCategory("indexerManager"),
|
||||||
healthMonitoring: getIntegrationKindsByCategory("healthMonitoring").filter(
|
healthMonitoring: getIntegrationKindsByCategory("healthMonitoring").filter(
|
||||||
(kind) => kind !== "patchmon" && kind !== "wud",
|
(kind) => kind !== "patchmon" && kind !== "wud",
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ export const widgetKinds = [
|
|||||||
"minecraftServerStatus",
|
"minecraftServerStatus",
|
||||||
"networkControllerSummary",
|
"networkControllerSummary",
|
||||||
"networkControllerStatus",
|
"networkControllerStatus",
|
||||||
|
"unifiOs",
|
||||||
"rssFeed",
|
"rssFeed",
|
||||||
"bookmarks",
|
"bookmarks",
|
||||||
"indexerManager",
|
"indexerManager",
|
||||||
|
|||||||
@@ -1015,6 +1015,7 @@
|
|||||||
"search": "Search",
|
"search": "Search",
|
||||||
"mediaTranscoding": "Transcoding",
|
"mediaTranscoding": "Transcoding",
|
||||||
"networkController": "Network",
|
"networkController": "Network",
|
||||||
|
"unifiOs": "UniFi OS",
|
||||||
"releasesProvider": "Releases",
|
"releasesProvider": "Releases",
|
||||||
"notifications": "Notifications",
|
"notifications": "Notifications",
|
||||||
"firewall": "Firewall",
|
"firewall": "Firewall",
|
||||||
|
|||||||
Reference in new issue
Block a user