2016-03-16 05:49:42 +00:00
|
|
|
import React from 'react'
|
2016-03-20 04:00:40 +00:00
|
|
|
import {render} from 'react-dom'
|
|
|
|
import {Provider} from 'react-redux'
|
2016-03-16 05:49:42 +00:00
|
|
|
import configureStore from './stores/configureStore'
|
2016-03-20 04:47:43 +00:00
|
|
|
import AppWrapper from './containers/App'
|
2016-03-20 04:00:40 +00:00
|
|
|
|
2016-03-18 06:30:48 +00:00
|
|
|
|
|
|
|
// Global CSS
|
2016-03-16 05:49:42 +00:00
|
|
|
import './css/index.scss'
|
2016-03-16 23:34:25 +00:00
|
|
|
import './css/lib/chrome/platform_app.css'
|
2016-03-16 05:49:42 +00:00
|
|
|
import './css/lib/fontawesome/css/font-awesome.css'
|
2016-03-21 05:47:49 +00:00
|
|
|
import * as GlobalActions from "./actions/global";
|
2016-03-16 05:49:42 +00:00
|
|
|
|
|
|
|
const store = configureStore();
|
|
|
|
|
2016-03-21 05:47:49 +00:00
|
|
|
// Dispatch the initial load of data
|
2016-04-09 21:08:55 +00:00
|
|
|
console.log('Init Insomnia');
|
2016-03-21 05:47:49 +00:00
|
|
|
store.dispatch(GlobalActions.restoreState());
|
|
|
|
|
2016-03-16 05:49:42 +00:00
|
|
|
render(
|
2016-03-20 04:00:40 +00:00
|
|
|
<Provider store={store}><AppWrapper /></Provider>,
|
|
|
|
document.getElementById('root')
|
2016-03-16 05:49:42 +00:00
|
|
|
);
|