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
f3d0c2f527
commit
13d27fb308
5 files changed
+14
No files matched your search
@@ -27,6 +27,7 @@ export const widgetDocSlugs = {
|
|||||||
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",
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ type IntegrationDocumentationSlug = IntegrationDocumentationPath extends `/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 },
|
||||||
@@ -705,6 +706,14 @@ export const integrationDefs = {
|
|||||||
defaultPort: 8443,
|
defaultPort: 8443,
|
||||||
features: { docker: { aliases: ["unifi", "unifi-controller"] } },
|
features: { docker: { aliases: ["unifi", "unifi-controller"] } },
|
||||||
},
|
},
|
||||||
|
unifiOs: {
|
||||||
|
name: "UniFi OS",
|
||||||
|
secretKinds: [["apiKey"], ["apiKey", "siteManagerApiKey"]],
|
||||||
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/unifi.png",
|
||||||
|
category: ["unifiOs"],
|
||||||
|
documentationSlug: null,
|
||||||
|
defaultPort: 443,
|
||||||
|
},
|
||||||
opnsense: {
|
opnsense: {
|
||||||
httpAuth: { type: "basic", usernameKind: "opnsenseApiKey", passwordKind: "opnsenseApiSecret" },
|
httpAuth: { type: "basic", usernameKind: "opnsenseApiKey", passwordKind: "opnsenseApiSecret" },
|
||||||
name: "OPNsense",
|
name: "OPNsense",
|
||||||
@@ -1192,6 +1201,7 @@ export const integrationCategories = [
|
|||||||
"reverseProxy",
|
"reverseProxy",
|
||||||
"systemMonitoring",
|
"systemMonitoring",
|
||||||
"security",
|
"security",
|
||||||
|
"unifiOs",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export type IntegrationCategory = (typeof integrationCategories)[number];
|
export type IntegrationCategory = (typeof integrationCategories)[number];
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ export const widgetIntegrationConfigs = {
|
|||||||
mediaMissing: { supportedIntegrations: getIntegrationKindsByCategory("mediaOrganizer") },
|
mediaMissing: { supportedIntegrations: getIntegrationKindsByCategory("mediaOrganizer") },
|
||||||
networkControllerSummary: { supportedIntegrations: getIntegrationKindsByCategory("networkController") },
|
networkControllerSummary: { supportedIntegrations: getIntegrationKindsByCategory("networkController") },
|
||||||
networkControllerStatus: { supportedIntegrations: getIntegrationKindsByCategory("networkController") },
|
networkControllerStatus: { supportedIntegrations: getIntegrationKindsByCategory("networkController") },
|
||||||
|
unifiOs: { supportedIntegrations: ["unifiOs"] },
|
||||||
indexerManager: { supportedIntegrations: getIntegrationKindsByCategory("indexerManager") },
|
indexerManager: { supportedIntegrations: getIntegrationKindsByCategory("indexerManager") },
|
||||||
healthMonitoring: {
|
healthMonitoring: {
|
||||||
supportedIntegrations: [...healthMonitoringGeneralIntegrationKinds, ...healthMonitoringClusterIntegrationKinds],
|
supportedIntegrations: [...healthMonitoringGeneralIntegrationKinds, ...healthMonitoringClusterIntegrationKinds],
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export const widgetKinds = [
|
|||||||
"minecraftServerStatus",
|
"minecraftServerStatus",
|
||||||
"networkControllerSummary",
|
"networkControllerSummary",
|
||||||
"networkControllerStatus",
|
"networkControllerStatus",
|
||||||
|
"unifiOs",
|
||||||
"rssFeed",
|
"rssFeed",
|
||||||
"bookmarks",
|
"bookmarks",
|
||||||
"indexerManager",
|
"indexerManager",
|
||||||
|
|||||||
@@ -1418,6 +1418,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