diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-15 19:09:37 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-15 19:09:37 +0100 |
| commit | 8792e9fe1c7ab76c35f9a18d866880ba3da2c13e (patch) | |
| tree | fbdc78484f654ec344d10814cb83987c873d4360 /frontend/app/site/app.js | |
| parent | 7c15f34186622410e25ee85c01d832e48e012140 (diff) | |
move frontend site folder. add video support
Diffstat (limited to 'frontend/app/site/app.js')
| -rw-r--r-- | frontend/app/site/app.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/frontend/app/site/app.js b/frontend/app/site/app.js deleted file mode 100644 index 389e5b5..0000000 --- a/frontend/app/site/app.js +++ /dev/null @@ -1,35 +0,0 @@ -import React, { Component } from 'react' -import { ConnectedRouter } from 'connected-react-router' -import { Route } from 'react-router' - -import ViewerContainer from './viewer/viewer.container' -import actions from './actions' - -export default class App extends Component { - componentDidMount() { - const path_partz = window.location.pathname.split('/') - const graph_name = path_partz[1] - let path_name = null - if (path_partz.length > 2) { - path_name = path_partz[2] - } - // console.log('loading', graph_name, path_name) - actions.site.loadSite(graph_name, path_name) - } - - render() { - return ( - <ConnectedRouter history={this.props.history}> - <div className='app'> - <Route path={'/:graph_name/:page_name'} component={ViewerContainer} exact /> - <Route exact key='root' path='/' render={() => { - // setTimeout(() => this.props.history.push('/'), 10) - return null - }} /> - </div> - </ConnectedRouter> - ) - } -} -/* -*/ |
