fix: Squash commit of several fixes and features for many different elements
This commit is contained in:
@@ -60,7 +60,7 @@ export interface SSHHostData {
|
||||
enableFileManager?: boolean;
|
||||
defaultPath?: string;
|
||||
tunnelConnections?: TunnelConnection[];
|
||||
statsConfig?: string;
|
||||
statsConfig?: string | Record<string, unknown>; // Can be string (from backend) or object (from form)
|
||||
terminalConfig?: TerminalConfig;
|
||||
}
|
||||
|
||||
@@ -374,6 +374,7 @@ export interface HostManagerProps {
|
||||
onSelectView?: (view: string) => void;
|
||||
isTopbarOpen?: boolean;
|
||||
initialTab?: string;
|
||||
hostConfig?: SSHHost;
|
||||
}
|
||||
|
||||
export interface SSHManagerHostEditorProps {
|
||||
|
||||
@@ -9,8 +9,18 @@ export type WidgetType =
|
||||
|
||||
export interface StatsConfig {
|
||||
enabledWidgets: WidgetType[];
|
||||
// Status monitoring configuration
|
||||
statusCheckEnabled: boolean;
|
||||
statusCheckInterval: number; // seconds (5-3600)
|
||||
// Metrics monitoring configuration
|
||||
metricsEnabled: boolean;
|
||||
metricsInterval: number; // seconds (5-3600)
|
||||
}
|
||||
|
||||
export const DEFAULT_STATS_CONFIG: StatsConfig = {
|
||||
enabledWidgets: ["cpu", "memory", "disk", "network", "uptime", "system"],
|
||||
statusCheckEnabled: true,
|
||||
statusCheckInterval: 30,
|
||||
metricsEnabled: true,
|
||||
metricsInterval: 30,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user