feat: add cluster list

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent 43e1dd0b0e
commit 89001dbb92
24 changed files with 1695 additions and 110 deletions
@@ -0,0 +1,29 @@
export const ClusterDataList = [
{
id: 1,
name: 'custom-cluster',
provider: 'Custom',
clusterType: 'Kubernetes',
workers: 2,
gpus: 4,
deployments: 1
},
{
id: 2,
name: 'Digital-Ocean-cluster',
provider: 'Digital Ocean',
clusterType: 'Custom',
workers: 3,
gpus: 6,
deployments: 2
},
{
id: 3,
name: 'AutoDL-cluster',
provider: 'AutoDL',
clusterType: 'Custom',
workers: 4,
gpus: 8,
deployments: 3
}
];
@@ -0,0 +1,40 @@
export interface FormData {
name: string;
provider: string;
access_key: string;
secret_key: string;
description?: string;
id?: number;
}
export interface ListItem {
id: number;
name: string;
provider: string;
access_key: string;
secret_key: string;
description?: string;
created_at: string;
updated_at: string;
}
export interface ClusterListItem {
name: string;
provider: string;
workers: number;
created_at: string;
gpus: number;
deployments: number;
id: number;
}
export interface ClusterFormData {
name: string;
provider: string;
credential: string;
region: string;
workers: number;
gpuPlan: string;
description?: string;
id?: number;
}