From 953027ccdfb34c83a6d301401ccb47ec43b86825 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 May 2018 04:05:11 +0200 Subject: file list --- app/client/dashboard/filelist.component.js | 46 ------------------------------ 1 file changed, 46 deletions(-) delete mode 100644 app/client/dashboard/filelist.component.js (limited to 'app/client/dashboard/filelist.component.js') diff --git a/app/client/dashboard/filelist.component.js b/app/client/dashboard/filelist.component.js deleted file mode 100644 index 2833ec8..0000000 --- a/app/client/dashboard/filelist.component.js +++ /dev/null @@ -1,46 +0,0 @@ -import { h, Component } from 'preact' -import { bindActionCreators } from 'redux' -import { connect } from 'react-redux' -import * as util from '../util' - -class FileList extends Component { - constructor(props){ - super() - } - render(){ - const { files } = this.props - let time = 0 - const fileList = files.map(file => { - const eta = (time + (file.epochs) * 180 / 60) + " min." - time += (file.epochs) * 180 / 60 - let dataset_type, dataset_name - if (file.dataset.indexOf('/') !== -1) { - [dataset_type, dataset_name] = file.dataset.split('/') - } else { - dataset_name = file.dataset - } - return ( -
-
{file.activity} {file.library} {dataset_type}
-
{dataset_name}
-
{file.epochs} ep.
-
{eta}
-
- ) - }) - return ( -
- {fileList} -
- ) - } -} - -const mapStateToProps = state => ({ -}) - -const mapDispatchToProps = (dispatch, ownProps) => ({ - // actions: bindActionCreators(liveActions, dispatch) -}) - -export default connect(mapStateToProps, mapDispatchToProps)(FileList) -- cgit v1.2.3-70-g09d2