xy %!s(int64=7) %!d(string=hai) anos
pai
achega
e33edef4ec

+ 0 - 25
src/all_graphql.txt

@@ -1296,7 +1296,6 @@ mutation createapiGWPath($apiGWName: String, $updatedAt: String, $apiGWGroup_id:
       serviceId
       status
       id
-
     }
     createdAt
     deploy_id {
@@ -1304,7 +1303,6 @@ mutation createapiGWPath($apiGWName: String, $updatedAt: String, $apiGWGroup_id:
       updatedAt
       cosBucketName
       memorySize
-
       createdAt
       subnetId
       cosObjectName
@@ -1312,8 +1310,6 @@ mutation createapiGWPath($apiGWName: String, $updatedAt: String, $apiGWGroup_id:
       vpcId
       cosBucketRegion
       id
-
-
       serviceName
       timeout
       handler
@@ -1347,7 +1343,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
     updatedAt
     database_id {
       id
-
       dbName
       dbUsername
       dbPassword
@@ -1369,7 +1364,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       serviceId
       status
       id
-
     }
     case_id {
       description
@@ -1383,8 +1377,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       id
       detailDescription
       detailAttention
-
-
       detailImages
       img
     }
@@ -1396,7 +1388,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       updatedAt
       cosBucketName
       memorySize
-
       createdAt
       subnetId
       cosObjectName
@@ -1404,8 +1395,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       vpcId
       cosBucketRegion
       id
-
-
       serviceName
       timeout
       handler
@@ -1413,7 +1402,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
     }
     notification_id {
       id
-
       type
       webhook
       name
@@ -1422,7 +1410,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
     projectType
     cloud_id {
       id
-
       cloudName
       secretId
       secretKey
@@ -1456,7 +1443,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       enter_url
       id
       pay_api_key
-
       body
       welcome_words
       attach
@@ -1473,7 +1459,6 @@ mutation createproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       id
       schemaData
       authReadWrite
-
       authWriteObjects
     }
   }
@@ -1545,7 +1530,6 @@ mutation updateproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
     updatedAt
     database_id {
       id
-
       dbName
       dbUsername
       dbPassword
@@ -1581,8 +1565,6 @@ mutation updateproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       id
       detailDescription
       detailAttention
-
-
       detailImages
       img
     }
@@ -1594,7 +1576,6 @@ mutation updateproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       updatedAt
       cosBucketName
       memorySize
-
       createdAt
       subnetId
       cosObjectName
@@ -1602,8 +1583,6 @@ mutation updateproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       vpcId
       cosBucketRegion
       id
-
-
       serviceName
       timeout
       handler
@@ -1611,7 +1590,6 @@ mutation updateproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
     }
     notification_id {
       id
-
       type
       webhook
       name
@@ -1620,7 +1598,6 @@ mutation updateproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
     projectType
     cloud_id {
       id
-
       cloudName
       secretId
       secretKey
@@ -1654,7 +1631,6 @@ mutation updateproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       enter_url
       id
       pay_api_key
-
       body
       welcome_words
       attach
@@ -1671,7 +1647,6 @@ mutation updateproject($updatedAt: String, $database_id: ID, $apiGWGroup_id: ID,
       id
       schemaData
       authReadWrite
-
       authWriteObjects
     }
   }

+ 1 - 1
src/app/App.jsx

@@ -28,7 +28,7 @@ class App extends Component {
                             <div className="intro" style={{ padding: '30px' }}>
                                 <Row gutter={16}>
                                     <Col span={24}>
-                                        <h2 >无年费&nbsp;&nbsp;&nbsp;&nbsp;数据完全私有</h2>
+                                        <h2>无年费&nbsp;&nbsp;&nbsp;&nbsp;数据完全私有</h2>
                                         <h3>即刻拥有自己的微信公众号、小程序</h3>
                                     </Col>
                                 </Row>

+ 2 - 2
src/app/basicVersion/BasicVersion.jsx

@@ -7,7 +7,7 @@ import '../developVersion/index.css';
 import CaseShow from "./caseShow/CaseShow";
 import MyDeploy from "./myDeploy/MyDeploy";
 import Communication from "./communication/Communication";
-import CaseDetail from "./caseShow/CaseDetail";
+import CaseDetailBackup from "./caseShow/CaseDetailBackup";
 import {logoutUrl} from "../../config";
 import {getCookie, setCookie} from "../../cookie";
 import {GET_USER} from "../../gql";
@@ -202,7 +202,7 @@ class BasicVersion extends Component {
                         <Route path="/common/example" exact component={CaseShow}/>
                         <Route path="/common/deploy" component={MyDeploy}/>
                         <Route path="/common/communication" component={Communication}/>
-                        <PrivateRoute path="/common/example/deploy-cloud-choose" component={CaseDetail} ownProps={ownProps}/>
+                        <PrivateRoute path="/common/example/deploy-cloud-choose" component={CaseDetailBackup} ownProps={ownProps}/>
                     </Switch>
                 </Layout>
 

+ 2 - 2
src/app/basicVersion/caseShow/CaseDetail.js → src/app/basicVersion/caseShow/CaseDetailBackup.js

@@ -11,7 +11,7 @@ import gql from "graphql-tag";
 
 const {Content} = Layout;
 
-class CaseDetail extends Component {
+class CaseDetailBackup extends Component {
     constructor() {
         super();
         this.state = {
@@ -187,7 +187,7 @@ class CaseDetail extends Component {
     }
 }
 
-export default CaseDetail
+export default CaseDetailBackup
 
 class GraphShow extends Component {
 // <GraphShow domain={domain}/>

+ 167 - 92
src/app/basicVersion/caseShow/CaseShow.jsx

@@ -1,5 +1,5 @@
 import React, {Component} from 'react';
-import {Layout, Card, Button, Avatar, Spin, Icon, Row, Col, notification} from 'antd';
+import {Layout, Card, Button, Avatar, Spin, Icon, Row, Col, notification, Tabs, Select} from 'antd';
 import lo from '../../../images/lo.png'
 import './index.css'
 import {graphqlUrl} from "../../../config";
@@ -11,6 +11,7 @@ import {Query} from "react-apollo";
 import gql from "graphql-tag";
 import {getCookie} from "../../../cookie";
 
+const TabPane = Tabs.TabPane;
 const {Content} = Layout;
 const {Meta} = Card;
 
@@ -18,10 +19,13 @@ class CaseShow extends Component {
     constructor(props) {
         super(props);
         this.state = {
-            examplesIoobot: [],
-            examplesOthers: [],
+            examplesMP: [],
+            examplesPublic: [],
+            examplesH5: [],
             showCustom: false,
-            chosenSchemaID: ''
+            chosenSchemaID: '',
+            activeKey: '1',
+            showCaseID: 'order-react-CaseID'
         }
     }
 
@@ -37,13 +41,14 @@ class CaseShow extends Component {
 
         request(graphqlUrl, SHOW_ALL_CASE, {}).then(data => {
                 let cases = data.case_by_props;
-                console.log(cases);
-                let examplesIoobot = cases.filter(case1 => case1.user_id.id === 'ioobot');
-                let examplesOthers = cases.filter(case2 => case2.user_id.id !== 'ioobot');
+                let examplesMP = cases.filter(case1 => case1.description === '小程序');
+                let examplesPublic = cases.filter(case2 => case2.description === '公众号');
+                let examplesH5 = cases.filter(case2 => case2.description === 'H5');
                 if (this._isMounted) {
                     this.setState({
-                        examplesIoobot,
-                        examplesOthers
+                        examplesMP,
+                        examplesPublic,
+                        examplesH5
                     })
                 }
             }
@@ -76,7 +81,13 @@ class CaseShow extends Component {
     };
 
     render() {
-        let {userID, showCustom, chosenSchemaID} = this.state;
+        let {userID, showCustom, chosenSchemaID, activeKey, showCaseID} = this.state;
+        const tabStyle = {
+            paddingTop: '50px',
+            paddingBottom: '50px',
+            height: '550px',
+            display: 'inline-block',
+        };
         return (
             <div id="example-show">
                 <Layout style={{padding: '24px', minHeight: '300px'}}>
@@ -84,18 +95,16 @@ class CaseShow extends Component {
                         {
                             !showCustom ?
                                 <div>
-                                    <div className={'schema-name'} style={{fontSize: 25}}><FormattedMessage id='scan and use'/></div>
+                                    <div className={'schema-name'} style={{fontSize: 25}}><FormattedMessage
+                                        id='scan and use'/></div>
                                     <div>
-                                        <div className={'schema-name'}><FormattedMessage id='ioobot case'/></div>
-                                        <div>
-                                            {
-                                                this.state.examplesIoobot.length === 0 ?
-                                                    <Spin/>
-                                                    :
-                                                    this.state.examplesIoobot.map((item, index) => (
-                                                        <Row key={index} className='case-item'>
-                                                            <Col span={12} style={{padding:'20px'}}>
-                                                                <Query query={gql(SHOW_CASE)} variables={{id: item.id}}>
+                                        <Tabs tabPosition='left' size='large' tabBarStyle={tabStyle} tabBarGutter={100}>
+                                            <TabPane tab="公众号" key="1">
+                                                <div>
+                                                    <Row>
+                                                        <Col span={12}>
+                                                            <Row>
+                                                                <Query query={gql(SHOW_CASE)} variables={{id: showCaseID}}>
                                                                     {
                                                                         ({loading, error, data}) => {
                                                                             if (loading) {
@@ -108,88 +117,154 @@ class CaseShow extends Component {
 
                                                                             return (
                                                                                 <div>
-                                                                                    <div className={'case-detail-attention'}> {thisCase.detailAttention ?
-                                                                                        <div>
-                                                                                            <Icon type="alert"/>{thisCase.detailAttention}
-                                                                                        </div>
-                                                                                        :
-                                                                                        ''
-                                                                                    }
-                                                                                    </div>
-                                                                                    <div
-                                                                                        className={'case-detail-description'}>{thisCase.detailDescription ? thisCase.detailDescription : '暂无简介'}</div>
-                                                                                    <div className={'detail-images'}>
-                                                                                        <img
-                                                                                            key={thisCase.detailImages[0]}
-                                                                                            src={thisCase.detailImages[0]}
-                                                                                            alt=""
-                                                                                            height="500"/>
-                                                                                    </div>
+                                                                                    <div>{thisCase.title}</div>
+                                                                                    <div className={'case-detail-description'}>{thisCase.detailDescription ? thisCase.detailDescription : '暂无简介'}</div>
                                                                                 </div>
                                                                             )
                                                                         }
                                                                     }
                                                                 </Query>
-                                                            </Col>
-                                                            <Col span={4}>
-                                                                <div>
-                                                                    <div
-                                                                        className={'schema-name'}>想要定制化该案例
-                                                                    </div>
+                                                            </Row>
+                                                            <Row>
+                                                                {
+                                                                    this.state.examplesMP.map((item, index) => (
+                                                                        <div
+                                                                            className='cover-div'
+                                                                            onMouseEnter={() => {
+                                                                                this.setState({
+                                                                                    showCaseID: item.id
+                                                                                })
+                                                                            }}
+                                                                        >
+                                                                            <img
+                                                                                className='cover-img'
+                                                                                src={item.img}
+                                                                                alt={item.title + '' + item.description}
+                                                                            />
+                                                                            <div>{item.title}</div>
+                                                                        </div>
+                                                                    ))
+                                                                }
+                                                            </Row>
+                                                        </Col>
+                                                        <Col span={6}>
+
+                                                        </Col>
+                                                    </Row>
+
+                                                    {/*下面这串代码仅供参考,可以整体删除*/}
+                                                    {
+                                                        this.state.examplesMP.map((item, index) => (
+                                                            <Row key={index} className='case-item'>
+                                                                <Col span={12} style={{padding: '20px'}}>
+                                                                    <Query query={gql(SHOW_CASE)}
+                                                                           variables={{id: item.id}}>
+                                                                        {
+                                                                            ({loading, error, data}) => {
+                                                                                if (loading) {
+                                                                                    return <Spin/>
+                                                                                }
+                                                                                if (error) {
+                                                                                    return 'error!';
+                                                                                }
+                                                                                let thisCase = data.case_by_id;
+
+                                                                                return (
+                                                                                    <div>
+                                                                                        <div
+                                                                                            className={'case-detail-attention'}> {thisCase.detailAttention ?
+                                                                                            <div>
+                                                                                                <Icon
+                                                                                                    type="alert"/>{thisCase.detailAttention}
+                                                                                            </div>
+                                                                                            :
+                                                                                            ''
+                                                                                        }
+                                                                                        </div>
+                                                                                        <div
+                                                                                            className={'case-detail-description'}>{thisCase.detailDescription ? thisCase.detailDescription : '暂无简介'}</div>
+                                                                                        <div
+                                                                                            className={'detail-images'}>
+                                                                                            <img
+                                                                                                key={thisCase.detailImages[0]}
+                                                                                                src={thisCase.detailImages[0]}
+                                                                                                alt=""
+                                                                                                height="500"/>
+                                                                                        </div>
+                                                                                    </div>
+                                                                                )
+                                                                            }
+                                                                        }
+                                                                    </Query>
+                                                                </Col>
+                                                                <Col span={4}>
                                                                     <div>
-                                                                        <div>联系作者</div>
+                                                                        <div
+                                                                            className={'schema-name'}>想要定制化该案例
+                                                                        </div>
                                                                         <div>
-                                                                            <Icon type="mail"/>
-                                                                            {
-                                                                                item.user_id.email ? item.user_id.email : '该作者未留下联系方式'
-                                                                            }
+                                                                            <div>联系作者</div>
+                                                                            <div>
+                                                                                <Icon type="mail"/>
+                                                                                {
+                                                                                    item.user_id.email ? item.user_id.email : '该作者未留下联系方式'
+                                                                                }
+                                                                            </div>
                                                                         </div>
-                                                                    </div>
-                                                                    <div>
-                                                                        <div>自行修改代码</div>
                                                                         <div>
-                                                                            <Icon type="github"/>
-                                                                            {
-                                                                                item.codeAddress ? item.codeAddress : '该作者未留下代码仓库地址'
-                                                                            }
+                                                                            <div>自行修改代码</div>
+                                                                            <div>
+                                                                                <Icon type="github"/>
+                                                                                {
+                                                                                    item.codeAddress ? item.codeAddress : '该作者未留下代码仓库地址'
+                                                                                }
+                                                                            </div>
                                                                         </div>
                                                                     </div>
-                                                                </div>
-                                                            </Col>
-                                                            <Col span={8}>
-                                                                <div style={{padding: '10px 0'}}>
-                                                                    <Card
-                                                                        key={index}
-                                                                        style={{width: 300}}
-                                                                        cover={<div className='cover-div'><img
-                                                                            className='cover-img'
-                                                                            src={item.img}
-                                                                            alt={item.title + '' + item.description}/>
-                                                                        </div>}
-                                                                        actions={[
-                                                                            <span>已部署: {item.deployedNum}</span>,
-                                                                            <span><Icon
-                                                                                type="like"/>: {item.like}</span>,
-                                                                            <Button type="primary" onClick={() => {
-                                                                                this.setState({
-                                                                                    showCustom: true,
-                                                                                    chosenSchemaID: item.schema_id.id
-                                                                                })
-                                                                            }}><FormattedMessage id='one more step'/></Button>
-                                                                        ]}
-                                                                    >
-                                                                        <Meta
-                                                                            avatar={<Avatar src={lo}/>}
-                                                                            title={item.title}
-                                                                            description={item.description}
-                                                                        />
-                                                                    </Card>
-                                                                </div>
-                                                            </Col>
-                                                        </Row>
-                                                    ))
-                                            }
-                                        </div>
+                                                                </Col>
+                                                                <Col span={8}>
+                                                                    <div style={{padding: '10px 0'}}>
+                                                                        <Card
+                                                                            key={index}
+                                                                            style={{width: 300}}
+                                                                            cover={<div className='cover-div'><img
+                                                                                className='cover-img'
+                                                                                src={item.img}
+                                                                                alt={item.title + '' + item.description}/>
+                                                                            </div>}
+                                                                            actions={[
+                                                                                <span>已部署: {item.deployedNum}</span>,
+                                                                                <span><Icon
+                                                                                    type="like"/>: {item.like}</span>,
+                                                                                <Button type="primary" onClick={() => {
+                                                                                    this.setState({
+                                                                                        showCustom: true,
+                                                                                        chosenSchemaID: item.schema_id.id
+                                                                                    })
+                                                                                }}><FormattedMessage
+                                                                                    id='one more step'/></Button>
+                                                                            ]}
+                                                                        >
+                                                                            <Meta
+                                                                                avatar={<Avatar src={lo}/>}
+                                                                                title={item.title}
+                                                                                description={item.description}
+                                                                            />
+                                                                        </Card>
+                                                                    </div>
+                                                                </Col>
+                                                            </Row>
+                                                        ))
+                                                    }
+                                                </div>
+                                            </TabPane>
+                                            <TabPane onMouseEnter={() => {
+                                                this.setState({activeKey: '2'})
+                                            }} tab="小程序" key="2">Content of Tab 2</TabPane>
+                                            <TabPane onMouseEnter={() => {
+                                                this.setState({activeKey: '3'})
+                                            }} tab="H5 网页" key="3">Content of Tab 3</TabPane>
+                                        </Tabs>
                                     </div>
                                 </div>
                                 :

+ 212 - 0
src/app/basicVersion/caseShow/CaseShowBackup.js

@@ -0,0 +1,212 @@
+import React, {Component} from 'react';
+import {Layout, Card, Button, Avatar, Spin, Icon, Row, Col, notification} from 'antd';
+import lo from '../../../images/lo.png'
+import './index.css'
+import {graphqlUrl} from "../../../config";
+import {SHOW_ALL_CASE, SHOW_CASE} from "../../../gql";
+import {FormattedMessage} from 'react-intl';
+import {request} from 'graphql-request'
+import UserCustom from "./UserCustom";
+import {Query} from "react-apollo";
+import gql from "graphql-tag";
+import {getCookie} from "../../../cookie";
+
+const {Content} = Layout;
+const {Meta} = Card;
+
+class CaseShow extends Component {
+    constructor(props) {
+        super(props);
+        this.state = {
+            examplesIoobot: [],
+            examplesOthers: [],
+            showCustom: false,
+            chosenSchemaID: ''
+        }
+    }
+
+    componentWillMount() {
+        this._isMounted = true;
+        // 查询是否登录
+        let userID = getCookie('user_id');
+        if (userID !== undefined && userID !== '') {
+            this.setState({
+                userID
+            });
+        }
+
+        request(graphqlUrl, SHOW_ALL_CASE, {}).then(data => {
+                let cases = data.case_by_props;
+                console.log(cases);
+                let examplesIoobot = cases.filter(case1 => case1.user_id.id === 'ioobot');
+                let examplesOthers = cases.filter(case2 => case2.user_id.id !== 'ioobot');
+                if (this._isMounted) {
+                    this.setState({
+                        examplesIoobot,
+                        examplesOthers
+                    })
+                }
+            }
+        )
+    }
+
+    componentWillUnmount() {
+        this._isMounted = false;
+    }
+
+    schemaIDChangeBucket = (schemaID) => {
+        if (this.props.location && this.props.location.state) {
+            switch (schemaID) {
+                case 'order_schemaID':
+                    return 'appointment';
+                case 'ecommerce_schemaID':
+                    return 'e-commerce';
+                case 'bills_schemaID':
+                    return 'bills';
+                default:
+                    break;
+            }
+        }
+    };
+
+    backToMe = () => {
+        this.setState({
+            showCustom: false
+        })
+    };
+
+    render() {
+        let {userID, showCustom, chosenSchemaID} = this.state;
+        return (
+            <div id="example-show">
+                <Layout style={{padding: '24px', minHeight: '300px'}}>
+                    <Content className="content">
+                        {
+                            !showCustom ?
+                                <div>
+                                    <div className={'schema-name'} style={{fontSize: 25}}><FormattedMessage id='scan and use'/></div>
+                                    <div>
+                                        <div className={'schema-name'}><FormattedMessage id='ioobot case'/></div>
+                                        <div>
+                                            {
+                                                this.state.examplesIoobot.length === 0 ?
+                                                    <Spin/>
+                                                    :
+                                                    this.state.examplesIoobot.map((item, index) => (
+                                                        <Row key={index} className='case-item'>
+                                                            <Col span={12} style={{padding:'20px'}}>
+                                                                <Query query={gql(SHOW_CASE)} variables={{id: item.id}}>
+                                                                    {
+                                                                        ({loading, error, data}) => {
+                                                                            if (loading) {
+                                                                                return <Spin/>
+                                                                            }
+                                                                            if (error) {
+                                                                                return 'error!';
+                                                                            }
+                                                                            let thisCase = data.case_by_id;
+
+                                                                            return (
+                                                                                <div>
+                                                                                    <div className={'case-detail-attention'}> {thisCase.detailAttention ?
+                                                                                        <div>
+                                                                                            <Icon type="alert"/>{thisCase.detailAttention}
+                                                                                        </div>
+                                                                                        :
+                                                                                        ''
+                                                                                    }
+                                                                                    </div>
+                                                                                    <div
+                                                                                        className={'case-detail-description'}>{thisCase.detailDescription ? thisCase.detailDescription : '暂无简介'}</div>
+                                                                                    <div className={'detail-images'}>
+                                                                                        <img
+                                                                                            key={thisCase.detailImages[0]}
+                                                                                            src={thisCase.detailImages[0]}
+                                                                                            alt=""
+                                                                                            height="500"/>
+                                                                                    </div>
+                                                                                </div>
+                                                                            )
+                                                                        }
+                                                                    }
+                                                                </Query>
+                                                            </Col>
+                                                            <Col span={4}>
+                                                                <div>
+                                                                    <div
+                                                                        className={'schema-name'}>想要定制化该案例
+                                                                    </div>
+                                                                    <div>
+                                                                        <div>联系作者</div>
+                                                                        <div>
+                                                                            <Icon type="mail"/>
+                                                                            {
+                                                                                item.user_id.email ? item.user_id.email : '该作者未留下联系方式'
+                                                                            }
+                                                                        </div>
+                                                                    </div>
+                                                                    <div>
+                                                                        <div>自行修改代码</div>
+                                                                        <div>
+                                                                            <Icon type="github"/>
+                                                                            {
+                                                                                item.codeAddress ? item.codeAddress : '该作者未留下代码仓库地址'
+                                                                            }
+                                                                        </div>
+                                                                    </div>
+                                                                </div>
+                                                            </Col>
+                                                            <Col span={8}>
+                                                                <div style={{padding: '10px 0'}}>
+                                                                    <Card
+                                                                        key={index}
+                                                                        style={{width: 300}}
+                                                                        cover={<div className='cover-div'><img
+                                                                            className='cover-img'
+                                                                            src={item.img}
+                                                                            alt={item.title + '' + item.description}/>
+                                                                        </div>}
+                                                                        actions={[
+                                                                            <span>已部署: {item.deployedNum}</span>,
+                                                                            <span><Icon
+                                                                                type="like"/>: {item.like}</span>,
+                                                                            <Button type="primary" onClick={() => {
+                                                                                this.setState({
+                                                                                    showCustom: true,
+                                                                                    chosenSchemaID: item.schema_id.id
+                                                                                })
+                                                                            }}><FormattedMessage id='one more step'/></Button>
+                                                                        ]}
+                                                                    >
+                                                                        <Meta
+                                                                            avatar={<Avatar src={lo}/>}
+                                                                            title={item.title}
+                                                                            description={item.description}
+                                                                        />
+                                                                    </Card>
+                                                                </div>
+                                                            </Col>
+                                                        </Row>
+                                                    ))
+                                            }
+                                        </div>
+                                    </div>
+                                </div>
+                                :
+                                <UserCustom
+                                    userID={userID}
+                                    bucketName={this.schemaIDChangeBucket(chosenSchemaID)}
+                                    history={this.props.history}
+                                    backToMe={this.backToMe}
+                                />
+                        }
+
+                    </Content>
+                </Layout>
+            </div>
+        )
+    }
+}
+
+export default CaseShow;
+

+ 4 - 5
src/app/basicVersion/caseShow/index.css

@@ -10,16 +10,15 @@
 }
 
 .cover-div {
+    display: inline-block;
     height: 200px;
     text-align: center;
-    margin-top: 20px;
+    margin: 20px;
 }
 
 .cover-img {
-    width: auto;
-    height: auto;
-    max-width: 100%;
-    max-height: 100%;
+    width: 100px;
+    height: 100px;
 }
 
 .deploy-choose-cloud {

+ 1 - 0
src/gql.js

@@ -1055,6 +1055,7 @@ const SHOW_CASE = `
             query CASE($id: ID!) {
                 case_by_id(id: $id) {
                     id
+                    title
                     schema_id {
                         id
                     }   

+ 6 - 32
src/login/CloudConfig.js

@@ -129,7 +129,7 @@ class CloudConfig extends Component {
     };
 
     render() {
-        let {show, tenID, tenAppID, tenKey, tencentCLoudID, aliyunCLoudID, aliAppID, aliID, aliKey, showOK, showNotOK} = this.state;
+        let {show, tenID, tenAppID, tenKey, tencentCLoudID, showOK, showNotOK} = this.state;
         let {cloudName} = this.props;
 
         const customPanelStyle = {
@@ -153,7 +153,7 @@ class CloudConfig extends Component {
                                     <p>但我们会不定期进行删除您部署的函数和数据库。</p>
                                     <p>使用自己账户的优点:</p>
                                     <p>1. 完全体验数据库自有</p>
-                                    <p> 2. 稳定长期存在</p>
+                                    <p>2. 稳定长期存在</p>
                                 </Panel>
                                 <Panel header="我该如何获得这项配置?" key="2" style={customPanelStyle}>
                                     <p>腾讯云请到:<a href="https://console.cloud.tencent.com/cam/capi" rel="noopener noreferrer" target='_blank'>腾讯云API</a></p>
@@ -173,17 +173,17 @@ class CloudConfig extends Component {
                                                 </div>
                                                 <div style={{marginBottom: 20}}>
                                                     <span className='item-title-cloud'>SecretId:</span>
-                                                    <Input 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 style={{marginBottom: 20}}>
                                                     <span className='item-title-cloud'>SecretKey:</span>
-                                                    <Input 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>
                                                 {
-                                                    this.state.showOK === 'tencent' ?
+                                                    showOK === 'tencent' ?
                                                         <Icon type="check-circle" theme="twoTone" twoToneColor="#52c41a"/>
                                                         :
-                                                        this.state.showNotOK === 'tencent' ?
+                                                        showNotOK === 'tencent' ?
                                                             <span>not ok</span>
                                                             :
                                                             ""
@@ -204,32 +204,6 @@ class CloudConfig extends Component {
                                         <div style={{marginBottom: 15}}>
                                             如需使用请联系我们
                                         </div>
-                                        {/*<div style={{marginBottom: 15}}>*/}
-                                        {/*<div>*/}
-                                            {/*<div style={{marginBottom: 10}}>*/}
-                                                {/*<span className='item-title-cloud'>ID:</span>*/}
-                                                {/*<Input style={{width: 250}} value={aliID} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('aliID')}/>*/}
-                                            {/*</div>*/}
-                                            {/*<div style={{marginBottom: 10}}>*/}
-                                                {/*<span className='item-title-cloud'>Key:</span>*/}
-                                                {/*<Input style={{width: 250}} value={aliKey} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('aliKey')}/>*/}
-                                            {/*</div>*/}
-
-                                            {/*{*/}
-                                                {/*showOK === 'aliyun' ?*/}
-                                                    {/*<Icon type="check-circle" theme="twoTone" twoToneColor="#52c41a"/>*/}
-                                                    {/*:*/}
-                                                    {/*showNotOK === 'aliyun' ?*/}
-                                                        {/*<span>not ok</span>*/}
-                                                        {/*:*/}
-                                                        {/*""*/}
-                                            {/*}*/}
-                                        {/*</div>*/}
-                                        {/*<Button type='primary'*/}
-                                                {/*onClick={this.submit(aliyunCLoudID, 'aliyun', aliID, aliKey, aliAppID)}>*/}
-                                            {/*<FormattedMessage id="save"/>*/}
-                                        {/*</Button>*/}
-                                    {/*</div>*/}
                                     </div> : ''
                             }
                             {