2015-10-29 08:33:21 +03:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
2015-10-30 12:40:55 +03:00
|
|
|
import { Router, Route, IndexRoute } from 'react-router';
|
2015-12-19 16:14:40 +03:00
|
|
|
|
|
|
|
import 'react-toolbox/commons';
|
2015-10-30 12:40:55 +03:00
|
|
|
import { App } from 'react-toolbox';
|
|
|
|
import { createHashHistory } from 'history';
|
2015-10-29 08:33:21 +03:00
|
|
|
|
2015-10-30 12:40:55 +03:00
|
|
|
import Home from './components/layout/home';
|
2015-11-01 20:22:20 +03:00
|
|
|
import Install from './components/layout/install';
|
2015-10-30 12:40:55 +03:00
|
|
|
import Main from './components/layout/main';
|
|
|
|
|
|
|
|
ReactDOM.render((
|
2015-10-30 22:30:56 +03:00
|
|
|
<Router history={createHashHistory({queryKey: false})}>
|
2015-10-30 12:40:55 +03:00
|
|
|
<Route component={App}>
|
|
|
|
<Route path="/" component={Home} />
|
2015-11-01 20:22:20 +03:00
|
|
|
<Route path="/install" component={Install} />
|
2015-10-30 22:30:56 +03:00
|
|
|
<Route path="/components" component={Main}>
|
|
|
|
<Route path=":component" />
|
2015-10-30 12:40:55 +03:00
|
|
|
</Route>
|
|
|
|
<IndexRoute component={Home}/>
|
|
|
|
</Route>
|
|
|
|
</Router>
|
|
|
|
), document.getElementById('app'));
|