insomnia/app/ui/index.js
Gregory Schier 318c35c2cb Move a bunch of stuff to async/await (#39)
* Some minor implementations

* Some more

* Lots more

* Removed 'backend' alias

* removed all promises

* Removed a bunch of module exports stuff

* Some morE'

* Fix

* custom DNS

* Tests for DNS

* bug fix

* Some small adjustments

* Small stuff
2016-10-02 13:57:00 -07:00

36 lines
990 B
JavaScript

import React from 'react';
import {render} from 'react-dom'
import {Provider} from 'react-redux'
import {Tabs} from 'react-tabs'
import createStore from './redux/create';
import App from './containers/App';
// Global CSS
import './css/lib/fontawesome/css/font-awesome.css'
import './css/lib/fonts/open-sans.css'
import './css/index.less'
import './css/lib/chrome/platform_app.css'
import {initStore} from './redux/initstore';
import {initDB} from '../backend/database';
import {getAppVersion} from '../backend/appInfo';
import {initAnalytics} from '../backend/analytics';
// Don't inject component styles (use our own)
Tabs.setUseDefaultStyles(false);
export const store = createStore();
console.log(`-- Loading App v${getAppVersion()} --`);
(async function () {
await initDB();
await initStore(store.dispatch);
await initAnalytics();
console.log('-- Rendering App --');
render(
<Provider store={store}><App /></Provider>,
document.getElementById('root')
);
})();