|
@@ -81,7 +81,8 @@ class CloudConfig extends Component {
|
|
|
this.setState({
|
|
this.setState({
|
|
|
showOK: ''
|
|
showOK: ''
|
|
|
});
|
|
});
|
|
|
- handleCancel();
|
|
|
|
|
|
|
+ if (handleCancel)
|
|
|
|
|
+ handleCancel();
|
|
|
}, 1500)
|
|
}, 1500)
|
|
|
} else {
|
|
} else {
|
|
|
this.setState({
|
|
this.setState({
|
|
@@ -113,7 +114,8 @@ class CloudConfig extends Component {
|
|
|
this.setState({
|
|
this.setState({
|
|
|
showOK: ''
|
|
showOK: ''
|
|
|
});
|
|
});
|
|
|
- handleCancel();
|
|
|
|
|
|
|
+ if (handleCancel)
|
|
|
|
|
+ handleCancel();
|
|
|
}, 1500)
|
|
}, 1500)
|
|
|
} else {
|
|
} else {
|
|
|
this.setState({
|
|
this.setState({
|
|
@@ -149,7 +151,7 @@ class CloudConfig extends Component {
|
|
|
<div>
|
|
<div>
|
|
|
<Collapse
|
|
<Collapse
|
|
|
bordered={false}
|
|
bordered={false}
|
|
|
- expandIcon={({ isActive }) => <Icon type="caret-right" rotate={isActive ? 90 : 0} />}
|
|
|
|
|
|
|
+ expandIcon={({isActive}) => <Icon type="caret-right" rotate={isActive ? 90 : 0}/>}
|
|
|
>
|
|
>
|
|
|
<Panel header="我为什么要填写这项配置?" key="1" style={customPanelStyle}>
|
|
<Panel header="我为什么要填写这项配置?" key="1" style={customPanelStyle}>
|
|
|
<p>如不填写,默认使用 ioobot 提供的账户进行体验。</p>
|
|
<p>如不填写,默认使用 ioobot 提供的账户进行体验。</p>
|
|
@@ -159,32 +161,40 @@ class CloudConfig extends Component {
|
|
|
<p>2. 稳定长期存在</p>
|
|
<p>2. 稳定长期存在</p>
|
|
|
</Panel>
|
|
</Panel>
|
|
|
<Panel header="我该如何获得这项配置?" key="2" style={customPanelStyle}>
|
|
<Panel header="我该如何获得这项配置?" key="2" style={customPanelStyle}>
|
|
|
- <p>腾讯云请到:<a href="https://console.cloud.tencent.com/cam/capi" rel="noopener noreferrer" target='_blank'>腾讯云API</a></p>
|
|
|
|
|
|
|
+ <p>腾讯云请到:<a href="https://console.cloud.tencent.com/cam/capi"
|
|
|
|
|
+ rel="noopener noreferrer" target='_blank'>腾讯云API</a></p>
|
|
|
<p>其他云请联系我们</p>
|
|
<p>其他云请联系我们</p>
|
|
|
</Panel>
|
|
</Panel>
|
|
|
</Collapse>
|
|
</Collapse>
|
|
|
<p style={{color: 'orange'}}>该项配置填写错误将导致部署失败,默认使用系统配置!</p>
|
|
<p style={{color: 'orange'}}>该项配置填写错误将导致部署失败,默认使用系统配置!</p>
|
|
|
{
|
|
{
|
|
|
- (cloudName === 'all' || cloudName === 'tencent')?
|
|
|
|
|
|
|
+ (cloudName === 'all' || cloudName === 'tencent') ?
|
|
|
<div style={{marginTop: 15}}>
|
|
<div style={{marginTop: 15}}>
|
|
|
<span className='cloud-name'><FormattedMessage id="Tencent"/>: </span>
|
|
<span className='cloud-name'><FormattedMessage id="Tencent"/>: </span>
|
|
|
<div style={{marginBottom: 15}}>
|
|
<div style={{marginBottom: 15}}>
|
|
|
<div>
|
|
<div>
|
|
|
<div style={{marginBottom: 20}}>
|
|
<div style={{marginBottom: 20}}>
|
|
|
<span className='item-title-cloud'>APPID:</span>
|
|
<span className='item-title-cloud'>APPID:</span>
|
|
|
- <Input style={{width: 250}} value={tenAppID} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('tenAppID')}/>
|
|
|
|
|
|
|
+ <Input style={{width: 250}} value={tenAppID}
|
|
|
|
|
+ placeholder={'不保存默认使用 ioobot 账户'}
|
|
|
|
|
+ onChange={this.inputChange('tenAppID')}/>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginBottom: 20}}>
|
|
<div style={{marginBottom: 20}}>
|
|
|
<span className='item-title-cloud'>SecretId:</span>
|
|
<span className='item-title-cloud'>SecretId:</span>
|
|
|
- <Input type='password' style={{width: 250}} value={tenID} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('tenID')}/>
|
|
|
|
|
|
|
+ <Input type='password' style={{width: 250}} value={tenID}
|
|
|
|
|
+ placeholder={'不保存默认使用 ioobot 账户'}
|
|
|
|
|
+ onChange={this.inputChange('tenID')}/>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginBottom: 20}}>
|
|
<div style={{marginBottom: 20}}>
|
|
|
<span className='item-title-cloud'>SecretKey:</span>
|
|
<span className='item-title-cloud'>SecretKey:</span>
|
|
|
- <Input type='password' style={{width: 250}} value={tenKey} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('tenKey')}/>
|
|
|
|
|
|
|
+ <Input type='password' style={{width: 250}} value={tenKey}
|
|
|
|
|
+ placeholder={'不保存默认使用 ioobot 账户'}
|
|
|
|
|
+ onChange={this.inputChange('tenKey')}/>
|
|
|
</div>
|
|
</div>
|
|
|
{
|
|
{
|
|
|
showOK === 'tencent' ?
|
|
showOK === 'tencent' ?
|
|
|
- <Icon type="check-circle" theme="twoTone" twoToneColor="#52c41a"/>
|
|
|
|
|
|
|
+ <Icon type="check-circle" theme="twoTone"
|
|
|
|
|
+ twoToneColor="#52c41a"/>
|
|
|
:
|
|
:
|
|
|
showNotOK === 'tencent' ?
|
|
showNotOK === 'tencent' ?
|
|
|
<span>not ok</span>
|
|
<span>not ok</span>
|
|
@@ -201,7 +211,7 @@ class CloudConfig extends Component {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
{
|
|
{
|
|
|
- (cloudName === 'all' || cloudName === 'aliyun')?
|
|
|
|
|
|
|
+ (cloudName === 'all' || cloudName === 'aliyun') ?
|
|
|
<div>
|
|
<div>
|
|
|
<span className='cloud-name'><FormattedMessage id="Aliyun"/>: </span>
|
|
<span className='cloud-name'><FormattedMessage id="Aliyun"/>: </span>
|
|
|
<div style={{marginBottom: 15}}>
|
|
<div style={{marginBottom: 15}}>
|
|
@@ -210,7 +220,7 @@ class CloudConfig extends Component {
|
|
|
</div> : ''
|
|
</div> : ''
|
|
|
}
|
|
}
|
|
|
{
|
|
{
|
|
|
- (cloudName === 'all' || cloudName === 'aws')?
|
|
|
|
|
|
|
+ (cloudName === 'all' || cloudName === 'aws') ?
|
|
|
<div>
|
|
<div>
|
|
|
<span className='cloud-name'><FormattedMessage id="AWS"/>: </span>
|
|
<span className='cloud-name'><FormattedMessage id="AWS"/>: </span>
|
|
|
<div style={{marginBottom: 15}}>
|
|
<div style={{marginBottom: 15}}>
|
|
@@ -219,7 +229,7 @@ class CloudConfig extends Component {
|
|
|
</div> : ''
|
|
</div> : ''
|
|
|
}
|
|
}
|
|
|
{
|
|
{
|
|
|
- (cloudName === 'all' || cloudName === 'huawei')?
|
|
|
|
|
|
|
+ (cloudName === 'all' || cloudName === 'huawei') ?
|
|
|
<div>
|
|
<div>
|
|
|
<span className='cloud-name'><FormattedMessage id="Huawei"/>: </span>
|
|
<span className='cloud-name'><FormattedMessage id="Huawei"/>: </span>
|
|
|
<div style={{marginBottom: 15}}>
|
|
<div style={{marginBottom: 15}}>
|