Skip to content

Commit 439b401

Browse files
hujiahao-hjhlaojun
authored andcommitted
feat(cmp): clusters list add new background img (erda-project#2121)
* feat(cmp): clusters list add new background img * feat: code optimization
1 parent d0081e1 commit 439b401

File tree

5 files changed

+138
-1
lines changed

5 files changed

+138
-1
lines changed

shell/app/common/components/list/index.scss

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
background-color: $white;
77
box-shadow: 0 2px 4px 0 $color-box-shadow;
88
background-position: 100% 0;
9-
background-size: auto 70%;
109
background-repeat: no-repeat;
1110

1211
&.no-border {

shell/app/config-page/img-map.ts

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ import defaultK8sNodeIcon from 'app/images/default-k8s-node.svg';
2222
import defaultK8sPodIcon from 'app/images/default-k8s-pod.svg';
2323
import defaultK8sWorkload from 'app/images/default-k8s-workload.svg';
2424
import K8sClusterBg from 'app/images/k8s-cluster-bg.svg';
25+
import edasClusterBg from 'app/images/edas-cluster-bg.svg';
26+
import dcosClusterBg from 'app/images/dcos-cluster-bg.svg';
27+
import aliCloudClusterBg from 'app/images/ali-cloud-cluster-bg.svg';
2528

2629
const ImgMap = {
2730
frontImg_default_project_icon: defaultProjectIcon,
@@ -35,6 +38,9 @@ const ImgMap = {
3538
default_k8s_pod: defaultK8sPodIcon,
3639
default_k8s_workload: defaultK8sWorkload,
3740
k8s_cluster_bg: K8sClusterBg,
41+
edas_cluster_bg: edasClusterBg,
42+
dcos_cluster_bg: dcosClusterBg,
43+
ali_cloud_cluster_bg: aliCloudClusterBg,
3844
};
3945

4046
export default ImgMap;
+44
Loading

shell/app/images/dcos-cluster-bg.svg

+46
Loading

shell/app/images/edas-cluster-bg.svg

+42
Loading

0 commit comments

Comments
 (0)