mirror of
https://github.com/johndoe6345789/docker-swarm-termina.git
synced 2026-04-25 06:05:00 +00:00
Move all TypeScript interfaces from component files to /lib/interfaces folder Move terminal utility functions to /lib/utils folder Update all component imports to use centralized interfaces and utilities Fix JSX.Element type to React.ReactElement in terminal utils This improves code organization and reduces duplication across components https://claude.ai/code/session_G4kZm
36 lines
674 B
TypeScript
36 lines
674 B
TypeScript
import { Container } from '@/lib/api';
|
|
|
|
export interface ContainerCardProps {
|
|
container: Container;
|
|
onOpenShell: () => void;
|
|
onContainerUpdate?: () => void;
|
|
}
|
|
|
|
export interface ContainerHeaderProps {
|
|
name: string;
|
|
image: string;
|
|
status: string;
|
|
}
|
|
|
|
export interface ContainerInfoProps {
|
|
id: string;
|
|
uptime: string;
|
|
}
|
|
|
|
export interface ContainerActionsProps {
|
|
status: string;
|
|
isLoading: boolean;
|
|
onStart: () => void;
|
|
onStop: () => void;
|
|
onRestart: () => void;
|
|
onRemove: () => void;
|
|
onOpenShell: () => void;
|
|
}
|
|
|
|
export interface DeleteConfirmDialogProps {
|
|
open: boolean;
|
|
containerName: string;
|
|
onClose: () => void;
|
|
onConfirm: () => void;
|
|
}
|