diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-16 17:03:07 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-16 17:03:07 +0100 |
| commit | 92881093ae19e4d76193447c187028aee5cbe4c7 (patch) | |
| tree | 8e3b4baa4ea790b5e9b30e2fed6ed4f1b871cc5c /animism-align/frontend/site/app.js | |
| parent | 77489cf313dd47122b9be80f6d49caf513a9e03c (diff) | |
getting the viewer-only version of the site working. flask command to run test server
Diffstat (limited to 'animism-align/frontend/site/app.js')
| -rw-r--r-- | animism-align/frontend/site/app.js | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/animism-align/frontend/site/app.js b/animism-align/frontend/site/app.js index 4f8a6cf..8509954 100644 --- a/animism-align/frontend/site/app.js +++ b/animism-align/frontend/site/app.js @@ -3,31 +3,26 @@ import { ConnectedRouter } from 'connected-react-router' import { Route } from 'react-router' // import ViewerContainer from './viewer/viewer.container' +import Viewer from 'app/views/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) + actions.site.loadProject() } render() { - return ( - <ConnectedRouter history={this.props.history}> - <div className='app'> - <Route exact key='root' path='/' render={() => { - // setTimeout(() => this.props.history.push('/'), 10) - return null - }} /> - </div> - </ConnectedRouter> - ) + return <Viewer /> + // return ( + // <ConnectedRouter history={this.props.history}> + // <div className='app'> + // <Route exact key='root' path='/' render={() => { + // // setTimeout(() => this.props.history.push('/'), 10) + // return null + // }} /> + // </div> + // </ConnectedRouter> + // ) } } /* |
