2016-04-18 18:39:09 +02:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
2016-04-19 19:55:21 +02:00
|
|
|
import {Router, Route, browserHistory, IndexRoute} from 'react-router';
|
2016-04-18 18:39:09 +02:00
|
|
|
import App from './App/App.jsx';
|
2016-04-19 19:55:21 +02:00
|
|
|
import ModsContent from './App/components/ModsContent.jsx';
|
|
|
|
import LogsContent from './App/components/LogsContent.jsx';
|
|
|
|
import SavesContent from './App/components/SavesContent.jsx';
|
2016-04-25 01:07:00 +02:00
|
|
|
import ConfigContent from './App/components/ConfigContent.jsx';
|
2016-04-29 16:37:21 +02:00
|
|
|
import LoginContent from './App/components/LoginContent.jsx';
|
2016-04-19 19:55:21 +02:00
|
|
|
import Index from './App/components/Index.jsx';
|
|
|
|
|
2016-04-30 05:59:13 +02:00
|
|
|
var loggedIn = false
|
|
|
|
|
2016-04-19 19:55:21 +02:00
|
|
|
ReactDOM.render((
|
|
|
|
<Router history={browserHistory}>
|
2016-04-30 05:59:13 +02:00
|
|
|
<Route path="/login" component={LoginContent} loggedIn={loggedIn}/>
|
|
|
|
<Route path="/" component={App} loggedIn={loggedIn}>
|
2016-04-19 19:55:21 +02:00
|
|
|
<IndexRoute component={Index}/>
|
2016-04-30 05:59:13 +02:00
|
|
|
<Route path="/server" component={Index}/>
|
2016-04-24 01:14:13 +02:00
|
|
|
<Route path="/mods" component={ModsContent}/>
|
2016-04-19 19:55:21 +02:00
|
|
|
<Route path="/logs" component={LogsContent}/>
|
|
|
|
<Route path="/saves" component={SavesContent}/>
|
2016-04-25 01:07:00 +02:00
|
|
|
<Route path="/config" component={ConfigContent}/>
|
2016-04-19 19:55:21 +02:00
|
|
|
</Route>
|
|
|
|
</Router>
|
|
|
|
), document.getElementById('app'))
|
2016-04-18 18:39:09 +02:00
|
|
|
|