Polish: Remove duplicate NodeConfigWithStatus definitions

This commit is contained in:
rcourtman
2025-12-23 12:37:56 +00:00
parent 3dafb8f7c5
commit 9e6e62f289
2 changed files with 3 additions and 19 deletions
@@ -1,14 +1,8 @@
import { Component, For, Show, createMemo } from 'solid-js';
import type { NodeConfig } from '@/types/nodes';
import type { NodeConfig, NodeConfigWithStatus } from '@/types/nodes';
import type { Node, PBSInstance, PMGInstance, Host } from '@/types/api';
import { Card } from '@/components/shared/Card';
type NodeConfigWithStatus = NodeConfig & {
hasPassword?: boolean;
hasToken?: boolean;
status: 'connected' | 'disconnected' | 'offline' | 'error' | 'pending';
};
export interface TemperatureTransportInfo {
httpMap: Record<string, { reachable: boolean; error?: string; url?: string }>;
socketStatus: 'healthy' | 'error' | 'missing';
@@ -21,11 +15,7 @@ type TemperatureSocketCooldownInfo = {
lastError?: string;
};
// Host agent info passed from state
interface HostAgentInfo {
hostname: string;
status: string;
}
interface PveNodesTableProps {
nodes: NodeConfigWithStatus[];
@@ -32,13 +32,7 @@ interface DiscoveryScanStatus {
errors?: string[];
}
type NodeConfigWithStatus = NodeConfig & {
hasPassword?: boolean;
hasToken?: boolean;
connectionStatus?: 'connected' | 'error' | 'pending' | 'unknown';
connectionError?: string;
status?: 'connected' | 'error' | 'pending' | 'unknown';
};
interface ProxmoxAgentNodesPanelProps {
agentType: AgentType;