|
|
@@ -7,6 +7,7 @@ import {
|
|
|
import {request} from 'graphql-request'
|
|
|
import copy from 'copy-to-clipboard';
|
|
|
import axios from 'axios';
|
|
|
+import QRCode from 'qrcode.react';
|
|
|
import {graphqlUrl} from "../../../config";
|
|
|
|
|
|
axios.defaults.withCredentials = true;
|
|
|
@@ -97,10 +98,12 @@ class TencentDeploy extends Component {
|
|
|
<div className={'schema-name'}><FormattedMessage id='service manage'/></div>
|
|
|
<div className={'schema-table-list-title'}>
|
|
|
<Row>
|
|
|
- <Col span={5}><span className={'schema-table-title'}><FormattedMessage
|
|
|
+ <Col span={4}><span className={'schema-table-title'}><FormattedMessage
|
|
|
id='groupName'/></span></Col>
|
|
|
- <Col span={15}><span className={'schema-table-title'}><FormattedMessage
|
|
|
+ <Col span={10}><span className={'schema-table-title'}><FormattedMessage
|
|
|
id='defaultDomain'/></span></Col>
|
|
|
+ <Col span={6}><span className={'schema-table-title'}><FormattedMessage
|
|
|
+ id='qrcode'/></span></Col>
|
|
|
<Col span={4}><span className={'schema-table-title'}><FormattedMessage
|
|
|
id='operation'/></span></Col>
|
|
|
</Row>
|
|
|
@@ -111,16 +114,23 @@ class TencentDeploy extends Component {
|
|
|
{
|
|
|
deployed.map(deploy => (
|
|
|
<Row key={deploy.id}>
|
|
|
- <Col span={5}>
|
|
|
+ <Col span={4}>
|
|
|
<span className={'schema-table-content'}>{deploy.groupName.replace(regexp, '')}</span>
|
|
|
</Col>
|
|
|
- <Col span={15}>
|
|
|
+ <Col span={10}>
|
|
|
<span className={'schema-table-content'}>{`http://${deploy.defaultDomain}/test`} </span>
|
|
|
<Icon type="copy" theme="twoTone" onClick={() => {
|
|
|
copy(`http://${deploy.defaultDomain}/test`);
|
|
|
message.success('复制成功.');
|
|
|
}}/>
|
|
|
</Col>
|
|
|
+ <Col span={6}>
|
|
|
+ <QRCode
|
|
|
+ value={deploy.userDomain ? `http://${deploy.userDomain}` : `http://${deploy.defaultDomain}/test`}
|
|
|
+ size={128}
|
|
|
+ includeMargin={true}
|
|
|
+ />
|
|
|
+ </Col>
|
|
|
<Col span={4}>
|
|
|
<Button type={'danger'} size={'small'}
|
|
|
style={{marginTop: 10}}><FormattedMessage id='delete'/></Button>
|