2016-10-03 14:44:27 +13:00
|
|
|
/**
|
|
|
|
|
* Base-level application wrapper
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
import React, { PropTypes } from 'react';
|
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
|
import { Provider } from 'react-redux'
|
|
|
|
|
import { createStore } from 'redux'
|
|
|
|
|
import { Router, Route, Link, hashHistory } from 'react-router'
|
|
|
|
|
|
2016-10-03 15:22:15 +13:00
|
|
|
import store from './bootstrap.js'
|
|
|
|
|
import App from './components/App'
|
|
|
|
|
import Album from './components/Album'
|
|
|
|
|
import Queue from './components/Queue'
|
2016-10-03 14:44:27 +13:00
|
|
|
|
|
|
|
|
ReactDOM.render(
|
2016-10-03 15:22:15 +13:00
|
|
|
<Provider store={store}>
|
2016-10-03 14:44:27 +13:00
|
|
|
<Router history={hashHistory}>
|
|
|
|
|
<Route path="/" component={App}>
|
|
|
|
|
|
2016-10-16 12:37:37 +13:00
|
|
|
<Route path="album/:uri" component={Album} />
|
2016-10-03 15:22:15 +13:00
|
|
|
<Route path="queue" component={Queue} />
|
2016-10-03 14:44:27 +13:00
|
|
|
|
|
|
|
|
</Route>
|
|
|
|
|
</Router>
|
|
|
|
|
</Provider>,
|
|
|
|
|
document.getElementById('app')
|
|
|
|
|
);
|