Skip to content

Modern Docker Management, Designed for Everyone

chore(frontend): cleanup unused types

Kyle Mendell82fa256f286b
diff --git a/frontend/src/lib/types/container.type.ts b/frontend/src/lib/types/container.type.ts
index 16306e041..560accd0a 100644
--- a/frontend/src/lib/types/container.type.ts
+++ b/frontend/src/lib/types/container.type.ts
@@ -76,32 +76,6 @@ export interface ContainerStatusCounts {
totalContainers: number;
}
-export interface CreateContainerDto {
- name: string;
- image: string;
- command?: string[];
- entrypoint?: string[];
- workingDir?: string;
- user?: string;
- environment?: string[];
- ports?: Record<string, string>;
- volumes?: string[];
- networks?: string[];
- restartPolicy?: string;
- privileged?: boolean;
- autoRemove?: boolean;
- memory?: number;
- cpus?: number;
-}
-
-export interface ContainerActionResult {
- started?: string[];
- stopped?: string[];
- failed?: string[];
- success: boolean;
- errors?: string[];
-}
-
export interface ContainerStateDto {
status: string;
running: boolean;
diff --git a/frontend/src/lib/types/image.type.ts b/frontend/src/lib/types/image.type.ts
index 8c5d5c96d..cc7d4d66e 100644
--- a/frontend/src/lib/types/image.type.ts
+++ b/frontend/src/lib/types/image.type.ts
@@ -74,14 +74,3 @@ export interface ImageDetailSummaryDto {
}
export type ImageUpdateData = ImageUpdateInfoDto;
-
-export interface ImageVersions {
- imageRef: string;
- current: string;
- versions: string[];
- latest?: string;
-}
-
-export interface ImageLoadResult {
- stream?: string;
-}
diff --git a/frontend/src/lib/types/network.type.ts b/frontend/src/lib/types/network.type.ts
index 96a3a67bc..123292aa0 100644
--- a/frontend/src/lib/types/network.type.ts
+++ b/frontend/src/lib/types/network.type.ts
@@ -23,71 +23,6 @@ export interface NetworkUsageCounts {
totalNetworks: number;
}
-export interface IPAMConfig {
- driver?: string;
- config?: IPAMSubnet[];
- options?: Record<string, string>;
-}
-
-export interface IPAMSubnet {
- subnet?: string;
- gateway?: string;
- ipRange?: string;
- auxAddress?: Record<string, string>;
-}
-
-export interface NetworkConfigFrom {
- Network: string;
-}
-
-export interface ContainerEndpoint {
- Name: string;
- EndpointID: string;
- MacAddress: string;
- IPv4Address: string;
- IPv6Address: string;
-}
-
-export interface NetworkInspect {
- Name: string;
- ID: string;
- Created: string;
- Scope: string;
- Driver: string;
- EnableIPv6: boolean;
- IPAM?: IPAM;
- Internal: boolean;
- Attachable: boolean;
- Ingress: boolean;
- ConfigFrom?: NetworkConfigFrom;
- ConfigOnly: boolean;
- Containers?: Record<string, ContainerEndpoint> | null;
- Options?: Record<string, string> | null;
- Labels?: Record<string, string> | null;
-}
-
-export interface NetworkEndpointSettings {
- ipamConfig?: EndpointIPAMConfig;
- links?: string[];
- aliases?: string[];
- networkId?: string;
- endpointId?: string;
- gateway?: string;
- ipAddress?: string;
- ipPrefixLen?: number;
- ipv6Gateway?: string;
- globalIPv6Address?: string;
- globalIPv6PrefixLen?: number;
- macAddress?: string;
- driverOpts?: Record<string, string>;
-}
-
-export interface EndpointIPAMConfig {
- ipv4Address?: string;
- ipv6Address?: string;
- linkLocalIPs?: string[];
-}
-
export interface ContainerEndpointDto {
Name: string;
EndpointID: string;
diff --git a/frontend/src/lib/types/notification.type.ts b/frontend/src/lib/types/notification.type.ts
index 582e86678..5e252ea18 100644
--- a/frontend/src/lib/types/notification.type.ts
+++ b/frontend/src/lib/types/notification.type.ts
@@ -1,24 +1,6 @@
export type NotificationProvider = 'discord' | 'email';
export type EmailTLSMode = 'none' | 'starttls' | 'ssl';
-export interface DiscordConfig {
- webhookUrl: string;
- username: string;
- avatarUrl: string;
-}
-
-export interface EmailConfig {
- smtpHost: string;
- smtpPort: number;
- smtpUsername: string;
- smtpPassword: string;
- fromAddress: string;
- toAddresses: string[];
- tlsMode: EmailTLSMode;
-}
-
-export type NotificationConfig = DiscordConfig | EmailConfig;
-
export interface NotificationSettings {
provider: NotificationProvider;
enabled: boolean;
diff --git a/frontend/src/lib/types/settings.type.ts b/frontend/src/lib/types/settings.type.ts
index ee24f1c10..0bbc29aaf 100644
--- a/frontend/src/lib/types/settings.type.ts
+++ b/frontend/src/lib/types/settings.type.ts
@@ -1,12 +1,5 @@
import type { TemplateRegistryConfig } from './template.type';
-export type SettingRawResponse = {
- key: string;
- type: string;
- value: string;
- isPublic?: boolean;
-}[];
-
export type Settings = {
projectsDirectory: string;
diskUsagePath: string;
@@ -25,16 +18,16 @@ export type Settings = {
accentColor: string;
authLocalEnabled: boolean;
- oidcEnabled: boolean;
- oidcMergeAccounts: boolean;
authSessionTimeout: number;
authPasswordPolicy: 'basic' | 'standard' | 'strong';
+ oidcEnabled: boolean;
oidcClientId: string;
oidcClientSecret?: string;
oidcIssuerUrl: string;
oidcScopes: string;
oidcAdminClaim: string;
oidcAdminValue: string;
+ oidcMergeAccounts: boolean;
onboardingCompleted: boolean;
onboardingSteps: {
@@ -61,16 +54,6 @@ export interface RegistryCredential {
password: string;
}
-export interface OidcConfig {
- clientId: string;
- clientSecret?: string;
- issuerUrl: string;
- scopes: string;
-
- adminClaim?: string; // e.g., "roles", "groups", "realm_access.roles", "admin"
- adminValue?: string; // e.g., "admin" (comma-separated accepted values)
-}
-
export interface OidcStatusInfo {
envForced: boolean;
envConfigured: boolean;
diff --git a/frontend/src/lib/types/variable.type.ts b/frontend/src/lib/types/variable.type.ts
index 54fa19d7a..672c315cc 100644
--- a/frontend/src/lib/types/variable.type.ts
+++ b/frontend/src/lib/types/variable.type.ts
@@ -2,11 +2,3 @@ export interface Variable {
key: string;
value: string;
}
-
-export interface GlobalVariablesResponse {
- variables: Variable[];
-}
-
-export interface UpdateGlobalVariablesRequest {
- variables: Variable[];
-}