From 2eeac22a48e10358ffa89c7ebd066390e6eb638e Mon Sep 17 00:00:00 2001 From: "waliang.wang" Date: Tue, 11 Jul 2017 19:12:13 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=9D=99=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ReduxContainer.js | 4 +- client/actionTypes.js | 6 ++ client/actions/interface.js | 33 +++++++++++ client/containers/Interface/Interface.js | 45 +++++++++++++++ client/containers/Interface/Interface.scss | 38 +++++++++++++ .../Interface/InterfaceList/InterfaceList.js | 18 ++++++ .../InterfaceTable/InterfaceTable.js | 55 +++++++++++++++++++ client/containers/Login/Login_container.js | 24 -------- client/containers/index.js | 2 + client/reducer/interface/interface.js | 16 ++++++ client/routes.js | 3 +- client/styles/common.scss | 3 +- 12 files changed, 220 insertions(+), 27 deletions(-) create mode 100644 client/actionTypes.js create mode 100644 client/actions/interface.js create mode 100644 client/containers/Interface/Interface.js create mode 100644 client/containers/Interface/Interface.scss create mode 100644 client/containers/Interface/InterfaceList/InterfaceList.js create mode 100644 client/containers/Interface/InterfaceTable/InterfaceTable.js delete mode 100644 client/containers/Login/Login_container.js create mode 100644 client/reducer/interface/interface.js diff --git a/client/ReduxContainer.js b/client/ReduxContainer.js index dd3a41eb..6b1347ef 100644 --- a/client/ReduxContainer.js +++ b/client/ReduxContainer.js @@ -1,7 +1,9 @@ import LoginRedux from './reducer/Login/Login_redux.js' import group from './reducer/group/group.js' +import Interface from './reducer/interface/interface.js' export default { + group, LoginRedux, - group + Interface, } diff --git a/client/actionTypes.js b/client/actionTypes.js new file mode 100644 index 00000000..fb51f5b1 --- /dev/null +++ b/client/actionTypes.js @@ -0,0 +1,6 @@ +// Interface +export const FETCH_INTERFACE_DATA = 'FETCH_INTERFACE_DATA'; + +// Home +export const FETCH_HOME_DATA = 'FETCH_INTERFACE_DATA'; + diff --git a/client/actions/interface.js b/client/actions/interface.js new file mode 100644 index 00000000..91feefd3 --- /dev/null +++ b/client/actions/interface.js @@ -0,0 +1,33 @@ +import { + FETCH_INTERFACE_DATA, +} from '../actionTypes.js'; + +export function fetchAuditIcons () { + const data = [{ + key: '1', + name: 'John Brown', + age: 32, + address: 'New York No. 1 Lake Park', + date: '2015-11-11 13:00:15', + features: '3', + }, { + key: '2', + name: 'Jim Green', + age: 42, + address: 'London No. 1 Lake Park', + date: '2015-11-11 13:00:15', + features: '3', + }, { + key: '3', + name: 'Joe Black', + age: 32, + address: 'Sidney No. 1 Lake Park', + date: '2015-11-11 13:00:15', + features: '3', + }] + + return { + type: FETCH_INTERFACE_DATA, + payload: data, + }; +} \ No newline at end of file diff --git a/client/containers/Interface/Interface.js b/client/containers/Interface/Interface.js new file mode 100644 index 00000000..e7ac78d6 --- /dev/null +++ b/client/containers/Interface/Interface.js @@ -0,0 +1,45 @@ +import './Interface.scss' +import React, { Component } from 'react' +import { connect } from 'react-redux' +import PropTypes from 'prop-types' +import InterfaceList from './InterfaceList/InterfaceList.js' +import InterfaceTable from './InterfaceTable/InterfaceTable.js' +import { fetchAuditIcons } from '../../actions/interface.js' + +@connect( + state => { + return { + interfaceData: state.data, + } + }, + { + fetchAuditIcons, + } +) + +class Interface extends Component { + static propTypes = { + fetchAuditIcons: PropTypes.func, + } + + constructor(props) { + super(props) + } + + componentWillMount () { + this.props.fetchAuditIcons() + } + + render () { + const data = this.props.fetchAuditIcons().payload + + return ( +
+ + +
+ ) + } +} + +export default Interface \ No newline at end of file diff --git a/client/containers/Interface/Interface.scss b/client/containers/Interface/Interface.scss new file mode 100644 index 00000000..9df8129c --- /dev/null +++ b/client/containers/Interface/Interface.scss @@ -0,0 +1,38 @@ +/* .interface-box.css */ +.interface-box { + max-width: 11rem; + display: -webkit-box; + -webkit-box-flex: 1; + margin: 15px auto 0 auto; + font-size: 0.14rem; + + .interface-list { + width: 216px; + line-height: 45px; + background: #f9fafe; + + li { + padding: 0 0 0 30px; + color: #344562; + cursor: pointer; + + &:hover, &.active { + background: #657289; + color: #FFF; + } + } + } + + .interface-table { + -webkit-box-flex: 1; + margin: 0 0 0 20px; + + .ant-table-wrapper table { + font-size: .14rem; + + button { + margin: 0 10px 0 0; + } + } + } +} \ No newline at end of file diff --git a/client/containers/Interface/InterfaceList/InterfaceList.js b/client/containers/Interface/InterfaceList/InterfaceList.js new file mode 100644 index 00000000..1db38a0b --- /dev/null +++ b/client/containers/Interface/InterfaceList/InterfaceList.js @@ -0,0 +1,18 @@ +import React, { Component } from 'react' + +class InterfaceList extends Component { + constructor(props) { + super(props) + } + + render () { + return ( + + ) + } +} + +export default InterfaceList \ No newline at end of file diff --git a/client/containers/Interface/InterfaceTable/InterfaceTable.js b/client/containers/Interface/InterfaceTable/InterfaceTable.js new file mode 100644 index 00000000..887b8f58 --- /dev/null +++ b/client/containers/Interface/InterfaceTable/InterfaceTable.js @@ -0,0 +1,55 @@ +import React, { Component } from 'react' +import { Table, Button } from 'antd' +import PropTypes from 'prop-types' + +class InterfaceTable extends Component { + static propTypes = { + data: PropTypes.array, + } + + constructor(props) { + super(props) + } + + render () { + const columns = [{ + title: '接口名称', + dataIndex: 'name', + key: 'name', + }, { + title: '接口URL', + dataIndex: 'age', + key: 'age', + }, { + title: '操作者', + dataIndex: 'address', + key: 'address', + }, { + title: '更新日期', + dataIndex: 'date', + key: 'date', + }, { + title: '功能', + 'key': 'action', + render: () => { + return ( + + + + + ) + } + }] + + const data = this.props.data; + console.log(this.props.data) + + return ( +
+ + + ) + } +} + +export default InterfaceTable \ No newline at end of file diff --git a/client/containers/Login/Login_container.js b/client/containers/Login/Login_container.js deleted file mode 100644 index 92ad6d68..00000000 --- a/client/containers/Login/Login_container.js +++ /dev/null @@ -1,24 +0,0 @@ -import { connect } from 'react-redux' -import Login from './Login.js' - -// Action -const increaseAction = { type: 'increase' } - -function mapStateToProps() { - return { - per: '测试数据' - } -} - -function mapDispatchToProps(dispatch) { - return { - onIncreaseClick: () => dispatch(increaseAction) - } -} - -const App = connect( - mapStateToProps, - mapDispatchToProps -)(Login) - -export default App diff --git a/client/containers/index.js b/client/containers/index.js index a7398c4f..f02ebae6 100644 --- a/client/containers/index.js +++ b/client/containers/index.js @@ -1,9 +1,11 @@ import Home from './Home/Home.js' import Login from './Login/Login.js' import ProjectGroups from './ProjectGroups/ProjectGroups.js' +import Interface from './Interface/Interface.js' export { Home, Login, ProjectGroups, + Interface, } diff --git a/client/reducer/interface/interface.js b/client/reducer/interface/interface.js new file mode 100644 index 00000000..699736ca --- /dev/null +++ b/client/reducer/interface/interface.js @@ -0,0 +1,16 @@ +import { + FETCH_INTERFACE_DATA, +} from '../../actionTypes.js' + +export default (state = 3333, action) => { + switch (action.type) { + case FETCH_INTERFACE_DATA: { + return { + ...state, + icons: action.payload.data, + }; + } + default: + return state; + } +} diff --git a/client/routes.js b/client/routes.js index cfebbd3f..507133bc 100644 --- a/client/routes.js +++ b/client/routes.js @@ -1,6 +1,6 @@ import React from 'react' import { Route, HashRouter } from 'react-router-dom' -import { Home, Login, ProjectGroups } from './containers/index' +import { Home, Login, ProjectGroups, Interface } from './containers/index' export default () => { return ( @@ -9,6 +9,7 @@ export default () => { + ) diff --git a/client/styles/common.scss b/client/styles/common.scss index da060373..9813499b 100644 --- a/client/styles/common.scss +++ b/client/styles/common.scss @@ -2,7 +2,8 @@ @import '~antd/dist/antd.css'; html { - font-size:625% + font-size:625%; + background: #f1f3f6; } html, body { font-family: tahoma, 'Microsoft Yahei'; From 6767adcb13d1e0346502749b339448ceb2f3e59c Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Wed, 12 Jul 2017 10:17:57 +0800 Subject: [PATCH 02/10] =?UTF-8?q?add:=20=E9=A1=B9=E7=9B=AE=E9=A1=B5?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../containers/ProjectGroups/ProjectGroups.js | 19 +++++--- .../ProjectGroups/ProjectGroups.scss | 6 +-- .../ProjectGroups/ProjectList/index.js | 46 +++++++++++++++++++ client/styles/common.scss | 1 + 4 files changed, 63 insertions(+), 9 deletions(-) create mode 100644 client/containers/ProjectGroups/ProjectList/index.js diff --git a/client/containers/ProjectGroups/ProjectGroups.js b/client/containers/ProjectGroups/ProjectGroups.js index 86ff4723..3bfcd857 100644 --- a/client/containers/ProjectGroups/ProjectGroups.js +++ b/client/containers/ProjectGroups/ProjectGroups.js @@ -1,5 +1,7 @@ -import React, { Component } from 'react' -import GroupList from '../../components/GroupList/GroupList.js' +import React, { Component } from 'react'; +import GroupList from '../../components/GroupList/GroupList.js'; +import ProjectList from './ProjectList'; +import { Row, Col } from 'antd'; import './ProjectGroups.scss' @@ -10,10 +12,15 @@ export default class ProjectGroups extends Component { render () { return ( -
-
- -
+
+ +
+ + + + + + ) } diff --git a/client/containers/ProjectGroups/ProjectGroups.scss b/client/containers/ProjectGroups/ProjectGroups.scss index e6b3fbfa..53a31cf5 100644 --- a/client/containers/ProjectGroups/ProjectGroups.scss +++ b/client/containers/ProjectGroups/ProjectGroups.scss @@ -1,4 +1,4 @@ -.groups-left { - width: 250px; - margin: 20px; +.g-doc { + max-width: 11rem; + margin: .24rem auto; } diff --git a/client/containers/ProjectGroups/ProjectList/index.js b/client/containers/ProjectGroups/ProjectList/index.js new file mode 100644 index 00000000..594916a6 --- /dev/null +++ b/client/containers/ProjectGroups/ProjectList/index.js @@ -0,0 +1,46 @@ +import React, { Component } from 'react' +// import PropTypes from 'prop-types' +// import { connect } from 'react-redux' +import { Table } from 'antd' + +const columns = [{ + title: 'Name', + dataIndex: 'name', + key: 'name', + render: text => {text}, +}, { + title: 'Age', + dataIndex: 'age', + key: 'age', +}, { + title: 'Action', + key: 'action', + render: () => ( + + 修改 + + 删除 + + ), +}]; + +const data = [{ + key: '1', + age: 32 +}, { + key: '2', + age: 42 +}, { + key: '3', + age: 32 +}]; + + + +export default class GroupList extends Component { + render() { + return ( +
+ ); + } +} diff --git a/client/styles/common.scss b/client/styles/common.scss index da060373..da64bdf8 100644 --- a/client/styles/common.scss +++ b/client/styles/common.scss @@ -38,4 +38,5 @@ em { display: -webkit-box; -webkit-box-orient: vertical; height: 100%; + background-color: #ececec; } From 7d25d0ce8230de43c1cc126d0fe7189df6b1cbb5 Mon Sep 17 00:00:00 2001 From: zwjamnsss Date: Wed, 12 Jul 2017 11:39:06 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=AD=E9=97=B4?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/index.js | 12 ++++++++++-- package.json | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/client/index.js b/client/index.js index 5ab5a319..95d19a3c 100644 --- a/client/index.js +++ b/client/index.js @@ -1,13 +1,21 @@ import React from 'react' import 'babel-polyfill' +import thunkMiddleware from 'redux-thunk' +import promiseMiddleware from 'redux-promise'; import ReactDOM from 'react-dom' import App from './App' -import { createStore, combineReducers } from 'redux' +import { createStore, combineReducers, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import ReduxContainer from './ReduxContainer.js' +console.log('thunkMiddleware', thunkMiddleware) +console.log('promiseMiddleware', promiseMiddleware) + // 合并 redux 创建stroe -const store = createStore(combineReducers( ReduxContainer )) +const store = createStore(combineReducers( ReduxContainer ), applyMiddleware( + thunkMiddleware.default, + promiseMiddleware +)) ReactDOM.render( diff --git a/package.json b/package.json index 11bd3ebb..3c94b991 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,9 @@ "mongoose-auto-increment": "^5.0.1", "node-sass-china": "^4.5.0", "prop-types": "^15.5.10", - "sha1": "^1.1.1", "redux": "^3.7.1", + "redux-promise": "^0.5.3", + "redux-thunk": "^2.2.0", "sha1": "^1.1.1", "ykit-config-antd": "^0.1.3", "ykit-config-react": "^0.4.4" From 04f5ba3e141d324a7c5721f38120cd9b9b6f758a Mon Sep 17 00:00:00 2001 From: zwjamnsss Date: Wed, 12 Jul 2017 11:43:04 +0800 Subject: [PATCH 04/10] none --- client/components/GroupList/GroupList.js | 47 ------------------- client/components/GroupList/GroupList.scss | 0 .../containers/ProjectGroups/ProjectGroups.js | 2 +- 3 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 client/components/GroupList/GroupList.js delete mode 100644 client/components/GroupList/GroupList.scss diff --git a/client/components/GroupList/GroupList.js b/client/components/GroupList/GroupList.js deleted file mode 100644 index 64256b3f..00000000 --- a/client/components/GroupList/GroupList.js +++ /dev/null @@ -1,47 +0,0 @@ -import React, { Component } from 'react' -import PropTypes from 'prop-types' -import { connect } from 'react-redux' -import { Card } from 'antd' - -import { - fetchGroupList, - fetchCurrGroup -} from '../../actions/group.js' - -import './GroupList.scss' - -@connect( - state => ({ - groupList: state.group.groupList, - currGroup: state.group.currGroup, - }), - { - fetchGroupList, - fetchCurrGroup - } -) -export default class GroupList extends Component { - constructor(props) { - super(props) - } - - static propTypes = { - groupList: PropTypes.array, - currGroup: PropTypes.string - } - - render () { - const { groupList, currGroup } = this.props; - - return ( - -
{currGroup}
- { - groupList.map((group, index) => ( -
{group}
- )) - } -
- ) - } -} diff --git a/client/components/GroupList/GroupList.scss b/client/components/GroupList/GroupList.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/client/containers/ProjectGroups/ProjectGroups.js b/client/containers/ProjectGroups/ProjectGroups.js index 3bfcd857..196d408c 100644 --- a/client/containers/ProjectGroups/ProjectGroups.js +++ b/client/containers/ProjectGroups/ProjectGroups.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import GroupList from '../../components/GroupList/GroupList.js'; +import GroupList from './GroupList/GroupList.js'; import ProjectList from './ProjectList'; import { Row, Col } from 'antd'; From b0377ea35352754dbb4350a4fc13a165033859b0 Mon Sep 17 00:00:00 2001 From: zwjamnsss Date: Wed, 12 Jul 2017 11:43:10 +0800 Subject: [PATCH 05/10] none --- .../ProjectGroups/GroupList/GroupList.js | 47 +++++++++++++++++++ .../ProjectGroups/GroupList/GroupList.scss | 0 2 files changed, 47 insertions(+) create mode 100644 client/containers/ProjectGroups/GroupList/GroupList.js create mode 100644 client/containers/ProjectGroups/GroupList/GroupList.scss diff --git a/client/containers/ProjectGroups/GroupList/GroupList.js b/client/containers/ProjectGroups/GroupList/GroupList.js new file mode 100644 index 00000000..3a99273c --- /dev/null +++ b/client/containers/ProjectGroups/GroupList/GroupList.js @@ -0,0 +1,47 @@ +import React, { Component } from 'react' +import PropTypes from 'prop-types' +import { connect } from 'react-redux' +import { Card } from 'antd' + +import { + fetchGroupList, + fetchCurrGroup +} from '../../../actions/group.js' + +import './GroupList.scss' + +@connect( + state => ({ + groupList: state.group.groupList, + currGroup: state.group.currGroup, + }), + { + fetchGroupList, + fetchCurrGroup + } +) +export default class GroupList extends Component { + constructor(props) { + super(props) + } + + static propTypes = { + groupList: PropTypes.array, + currGroup: PropTypes.string + } + + render () { + const { groupList, currGroup } = this.props; + + return ( + +
{currGroup}
+ { + groupList.map((group, index) => ( +
{group}
+ )) + } +
+ ) + } +} diff --git a/client/containers/ProjectGroups/GroupList/GroupList.scss b/client/containers/ProjectGroups/GroupList/GroupList.scss new file mode 100644 index 00000000..e69de29b From b97727e1d20c3198ca63db61d45c895dcbcce3dc Mon Sep 17 00:00:00 2001 From: "waliang.wang" Date: Wed, 12 Jul 2017 11:48:11 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=E6=95=B4=E7=90=86=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/actionTypes.js | 6 ------ client/constants/action-types.js | 3 +++ client/reducer/interface/interface.js | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 client/actionTypes.js diff --git a/client/actionTypes.js b/client/actionTypes.js deleted file mode 100644 index fb51f5b1..00000000 --- a/client/actionTypes.js +++ /dev/null @@ -1,6 +0,0 @@ -// Interface -export const FETCH_INTERFACE_DATA = 'FETCH_INTERFACE_DATA'; - -// Home -export const FETCH_HOME_DATA = 'FETCH_INTERFACE_DATA'; - diff --git a/client/constants/action-types.js b/client/constants/action-types.js index 80686d1f..82b5022f 100644 --- a/client/constants/action-types.js +++ b/client/constants/action-types.js @@ -1,3 +1,6 @@ +// Interface +export const FETCH_INTERFACE_DATA = 'FETCH_INTERFACE_DATA'; + // group export const FETCH_GROUP_LIST = 'FETCH_GROUP_LIST' export const FETCH_CURR_GROUP = 'FETCH_CURR_GROUP' diff --git a/client/reducer/interface/interface.js b/client/reducer/interface/interface.js index 699736ca..89b3aed7 100644 --- a/client/reducer/interface/interface.js +++ b/client/reducer/interface/interface.js @@ -1,6 +1,6 @@ import { FETCH_INTERFACE_DATA, -} from '../../actionTypes.js' +} from '../../constants/action-types.js' export default (state = 3333, action) => { switch (action.type) { From c95610a86ec8406c64a801bc85bfe3164ea12075 Mon Sep 17 00:00:00 2001 From: "waliang.wang" Date: Wed, 12 Jul 2017 11:57:28 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E4=BC=98=E5=8C=96reduce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ReduxContainer.js | 2 +- client/actions/interface.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ReduxContainer.js b/client/ReduxContainer.js index 6b1347ef..afdd53f2 100644 --- a/client/ReduxContainer.js +++ b/client/ReduxContainer.js @@ -1,6 +1,6 @@ import LoginRedux from './reducer/Login/Login_redux.js' import group from './reducer/group/group.js' -import Interface from './reducer/interface/interface.js' +import Interface from './reducer/Interface/Interface.js' export default { group, diff --git a/client/actions/interface.js b/client/actions/interface.js index 91feefd3..def0a95f 100644 --- a/client/actions/interface.js +++ b/client/actions/interface.js @@ -1,6 +1,6 @@ import { FETCH_INTERFACE_DATA, -} from '../actionTypes.js'; +} from '../constants/action-types.js'; export function fetchAuditIcons () { const data = [{ From 0dac7875c6f98218d3fe340dca2bbc8c61e327f1 Mon Sep 17 00:00:00 2001 From: zwjamnsss Date: Wed, 12 Jul 2017 12:00:49 +0800 Subject: [PATCH 08/10] add axios --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ddf2e6ba..e4c1c3ca 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "license": "ISC", "dependencies": { "@qnpm/ykit-config-qunar": "^0.8.1", + "axios": "^0.16.2", "babel-plugin-transform-decorators-legacy": "^1.3.4", "fs-extra": "^3.0.1", "jsonwebtoken": "^7.4.1", From 2efd747caadb9177ac17513b14ca01d53dec89b1 Mon Sep 17 00:00:00 2001 From: "waliang.wang" Date: Wed, 12 Jul 2017 12:17:27 +0800 Subject: [PATCH 09/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/containers/Interface/Interface.scss | 1 + client/containers/Interface/InterfaceTable/InterfaceTable.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/containers/Interface/Interface.scss b/client/containers/Interface/Interface.scss index 9df8129c..765e24b4 100644 --- a/client/containers/Interface/Interface.scss +++ b/client/containers/Interface/Interface.scss @@ -5,6 +5,7 @@ -webkit-box-flex: 1; margin: 15px auto 0 auto; font-size: 0.14rem; + background: #FFF; .interface-list { width: 216px; diff --git a/client/containers/Interface/InterfaceTable/InterfaceTable.js b/client/containers/Interface/InterfaceTable/InterfaceTable.js index 887b8f58..3664bdbe 100644 --- a/client/containers/Interface/InterfaceTable/InterfaceTable.js +++ b/client/containers/Interface/InterfaceTable/InterfaceTable.js @@ -34,8 +34,8 @@ class InterfaceTable extends Component { render: () => { return ( - - + + ) } From 642e2272a19605307fd2ac4b63cda44b83b35e4b Mon Sep 17 00:00:00 2001 From: "waliang.wang" Date: Wed, 12 Jul 2017 12:20:01 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/containers/Interface/Interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/containers/Interface/Interface.js b/client/containers/Interface/Interface.js index e7ac78d6..dc32b1d3 100644 --- a/client/containers/Interface/Interface.js +++ b/client/containers/Interface/Interface.js @@ -16,7 +16,7 @@ import { fetchAuditIcons } from '../../actions/interface.js' fetchAuditIcons, } ) - +// class Interface extends Component { static propTypes = { fetchAuditIcons: PropTypes.func,