--- /dev/null
+import React from 'react';
+
+import './index.css';
+import {List, Item} from 'semantic-ui-react'
+class InfoList extends React.Component {
+ constructor(props) {
+ super(props);
+ }
+
+ render() {
+ let info = this.props.info
+ let name = this.props.name
+ let _list = Object.keys(info).map(key => {
+ let _list2 = 0
+ return (
+ <List.Item as='li'>
+ <h3>{key}</h3>
+ <List.List as='ul'>
+ <List.Item className="clear-list-style" >{info[key]}</List.Item>
+ </List.List>
+ </List.Item>
+ );
+ });
+ return (
+ <List className='info-list' as='ul'>
+
+ <List.Item as='li'>
+ <h2>{name} Info</h2>
+ <List.List as='ul'>
+
+ {_list}
+ {/*<List.Item as='li'>*/}
+ {/*<a href='#'>Link to somewhere</a>*/}
+ {/*</List.Item>*/}
+ {/*<List.Item as='li'>Rebates</List.Item>*/}
+
+
+ </List.List>
+
+ </List.Item>
+
+ <List.Item as='li'>Warranty</List.Item>
+ </List>
+ );
+ }
+}
+export default InfoList;
+
import {Table, Divider, Segment, Image, Label, Card, Button, List, Icon} from 'semantic-ui-react'
import PGUtil from 'util/util.jsx'
import FarmerCard from 'component/farmer-card/index.jsx'
+import InfoList from 'component/info-list/index.jsx'
import Record from 'service/record-service.jsx'
const _util = new PGUtil();
const _record = new Record();
render() {
let machine = this.state.recordInfo.test_machine || {};
let dataset = this.state.recordInfo.dataset_info || {};
-
+ let meta_info = this.state.recordInfo.meta_info || {};
+ let linux_info = this.state.recordInfo.linux_info || {};
let ro = dataset.ro || {};
let rw = dataset.rw || {};
console.log(machine)
{/*</Segment>*/}
<div>
- <h2><a href="#linuxInfo">Linux Info</a></h2>
- <div className="" data-example-id="">
- <dl>
- <dt><a href="#">Description lists</a></dt>
- <dd>A description list is perfect for defining terms.</dd>
- <dt>Euismod</dt>
- <dd>
- </dd>
- <dd></dd>
- <dt>Malesuada porta</dt>
- <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
- </dl>
- </div>
+ {/*<h2><a href="#linuxInfo">Linux Info</a></h2>*/}
+ {/*<div className="" data-example-id="">*/}
+ {/*<dl>*/}
+ {/*<dt><a href="#">Description lists</a></dt>*/}
+ {/*<dd>A description list is perfect for defining terms.</dd>*/}
+ {/*<dt>Euismod</dt>*/}
+ {/*<dd>*/}
+ {/*</dd>*/}
+ {/*<dd></dd>*/}
+ {/*<dt>Malesuada porta</dt>*/}
+ {/*<dd>Etiam porta sem malesuada magna mollis euismod.</dd>*/}
+ {/*</dl>*/}
+ {/*</div>*/}
+
+
+ <InfoList name="Meta" info={meta_info}> </InfoList>
+ <InfoList name="Linux" info={linux_info}> </InfoList>
</div>
</div>