insomnia/app/ui/index.js
Gregory Schier bb57f360e0 Environment Tags and Such (#90)
* Sort of working nunjucks editor

* Some more tweaks

* Lots of stuff

* Gettingn pretty good

* Minor tweaks and test fixes

* Minor bug fixes and stuff

* Some fixes and perf

* Refactoring

* Good for now

* Codemirror URL

* More and more fixes and improvements

* Code single-line CSS perfect!!!

* Better nj editing

* Show preview in nj edit

* Some editor updates

* All inputs now covered

* A bunch of fixes and stuff

* Don't cache node modules because it's not needed

* More stuff

* Tweak

* Style tweaks

* Pull nunjucks mode into own file

* Move codemirror click overlay to own file

* Pull nunjucks tag stuff out

* Fixed key value editor

* raw/endraw and marks improvements

* Some tweaks
2017-02-27 13:00:13 -08:00

35 lines
922 B
JavaScript

import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {Tabs} from 'react-tabs';
import App from './containers/App';
import './css/index.less';
import {init as initStore} from './redux/modules';
import {init as initDB} from '../common/database';
import {init as initSync} from '../sync';
import {init as initAnalytics} from '../analytics';
import {types as modelTypes} from '../models';
import {getAccountId} from '../sync/session';
// Don't inject component styles (use our own)
Tabs.setUseDefaultStyles(false);
(async function () {
await initDB(modelTypes());
await initAnalytics(getAccountId());
// Create Redux store
const store = await initStore();
// Actually render the app
ReactDOM.render(
<Provider store={store}><App /></Provider>,
document.getElementById('root')
);
// Do things that can wait
process.nextTick(initSync);
})();