mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-24 12:13:28 +00:00
Polish: Remove duplicate NodeConfigWithStatus definitions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user