mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-06 03:54:06 +02:00
23 lines
911 B
JavaScript
23 lines
911 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import {Router, Route, browserHistory, IndexRoute} from 'react-router';
|
|
import App from './App/App.jsx';
|
|
import ModsContent from './App/components/ModsContent.jsx';
|
|
import LogsContent from './App/components/LogsContent.jsx';
|
|
import SavesContent from './App/components/SavesContent.jsx';
|
|
import ConfigContent from './App/components/ConfigContent.jsx';
|
|
import Index from './App/components/Index.jsx';
|
|
|
|
ReactDOM.render((
|
|
<Router history={browserHistory}>
|
|
<Route path="/" component={App}>
|
|
<IndexRoute component={Index}/>
|
|
<Route path="/mods" component={ModsContent}/>
|
|
<Route path="/logs" component={LogsContent}/>
|
|
<Route path="/saves" component={SavesContent}/>
|
|
<Route path="/config" component={ConfigContent}/>
|
|
</Route>
|
|
</Router>
|
|
), document.getElementById('app'))
|
|
|