diff options
| author | adamhrv <adam@ahprojects.com> | 2019-04-01 19:50:48 +0200 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-04-01 19:50:48 +0200 |
| commit | 54a9853e9dce4a2c00208c80e49b6d6497d50886 (patch) | |
| tree | f589646658c17ff6c2870fe008d508daf6b04118 /client/applet.js | |
| parent | 79ca5c75243e4d94a7924d1bda8666123f398d9c (diff) | |
| parent | 83858f95425278d44e7f39177e141e7b82c0022c (diff) | |
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'client/applet.js')
| -rw-r--r-- | client/applet.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/applet.js b/client/applet.js index 21e1e4fa..db95168a 100644 --- a/client/applet.js +++ b/client/applet.js @@ -4,11 +4,12 @@ import { Container as FaceSearchContainer } from './faceSearch' import { Container as FaceAnalysisContainer } from './faceAnalysis' import { Container as NameSearchContainer } from './nameSearch' import { Container as DatasetListContainer } from './datasetList' +import { CitationsTable, FileTable } from './table' import { CountriesByYear, PieCharts } from './chart' export default class Applet extends Component { render() { - // console.log(this.props) + // console.log(this.props.payload.cmd) switch (this.props.payload.cmd) { case 'face_analysis': return <FaceAnalysisContainer {...this.props} /> @@ -22,6 +23,10 @@ export default class Applet extends Component { return <CountriesByYear {...this.props} /> case 'piechart': return <PieCharts {...this.props} /> + case 'citations': + return <CitationsTable {...this.props} /> + case 'load_file': + return <FileTable {...this.props} /> default: return <pre style={{ color: '#0f0' }}>{'Megapixels'}</pre> } |
