feat: Cloud sync support smartx

This commit is contained in:
halo
2025-05-27 14:31:23 +08:00
committed by Bryan
parent 6dccdae9b4
commit 13838f66a9
2 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1748326203303" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2853" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M10.24 605.184l839.168-481.28L1013.76 220.672v191.488L174.592 895.488 10.24 804.352z" fill="#0096FF" p-id="2854"></path><path d="M10.24 416.768V220.672l168.96-96.768 308.736 178.688-331.776 193.536zM541.184 717.312l331.264-195.072 141.312 88.064v194.048l-165.376 95.744z" fill="#25C764" p-id="2855"></path></svg>

After

Width:  |  Height:  |  Size: 645 B

View File

@@ -28,19 +28,20 @@ export const fc = 'fc'
export const scp = 'scp'
export const apsara_stack = 'apsara_stack'
export const lan = 'lan'
export const smartx = 'smartx'
export const publicHostProviders = [
aliyun, qcloud, qcloud_lighthouse, huaweicloud,
baiducloud, jdcloud, kingsoftcloud, aws_china,
aws_international, azure, azure_international,
gcp, ucloud, volcengine
gcp, ucloud, volcengine, smartx
]
export const publicDBProviders = [aliyun]
export const privateCloudProviders = [
vmware, qingcloud_private, huaweicloud_private, ctyun_private,
openstack, zstack, nutanix, fc, scp, apsara_stack
openstack, zstack, nutanix, fc, scp, apsara_stack, smartx
]
export const ACCOUNT_PROVIDER_ATTRS_MAP = {
@@ -164,6 +165,12 @@ export const ACCOUNT_PROVIDER_ATTRS_MAP = {
attrs: ['access_key_id', 'access_key_secret', 'api_endpoint'],
image: require('@/assets/img/cloud/zstack.svg')
},
[smartx]: {
name: smartx,
title: i18n.t('SmartX CloudTower'),
attrs: ['username', 'password', 'api_endpoint'],
image: require('@/assets/img/cloud/smartx.svg')
},
[fc]: {
name: fc,
title: i18n.t('FC'),