From 8792e9fe1c7ab76c35f9a18d866880ba3da2c13e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 15 Mar 2021 19:09:37 +0100 Subject: move frontend site folder. add video support --- frontend/site/app.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 frontend/site/app.js (limited to 'frontend/site/app.js') diff --git a/frontend/site/app.js b/frontend/site/app.js new file mode 100644 index 0000000..4bb352b --- /dev/null +++ b/frontend/site/app.js @@ -0,0 +1,35 @@ +import React, { Component } from 'react' +import { ConnectedRouter } from 'connected-react-router' +import { Route } from 'react-router' + +import ViewerContainer from 'site/viewer/viewer.container' +import actions from 'site/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 ( + +
+ + { + // setTimeout(() => this.props.history.push('/'), 10) + return null + }} /> +
+
+ ) + } +} +/* +*/ -- cgit v1.2.3-70-g09d2