insomnia/app/index.js
Gregory Schier 9e84bc4387 Workspaces, Cookies, and More! (#31)
* Start on workspace dropdown and upgrade fontawesome

* WorkspaceDropdown start and Elm components!

* Lots of CSS shit

* Refactor some db stuff and move filter out of sidebar

* Adjust dropdown css

* Handle duplicate header names, and stuff

* Shitty cookies tab

* fixed cookie table a bit

* Modal refactor

* Starteed cookie modal design

* Better cookie storage and filter cookie modal

* Cookie editor round 1

* Fix kve cursor jumping and form encoding templating

* New cookies now show up in filter

* Checkpoint

* Stuff and fix environments css

* Added manage cookies button to cookie pane

* Fix accidental sidebar item drag on sidebar resize

* Environments modal is looking pretty good now

* Pretty much done environments nad cookies

* Some changes

* Fixed codemirror in modals

* Fixed some things

* Add basic proxy support

* Updated shortcuts

* Code snippet generation

* Some style

* bug fix

* Code export now gets cookies for correct domain
2016-08-15 10:04:36 -07:00

48 lines
1.3 KiB
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';
// PERFORMANCE DEBUGGING STUFF
// import * as Perf from 'react-addons-perf';
// setTimeout(() => {
// Perf.start();
// console.log('started');
// }, 1000 * 5);
// setTimeout(() => {
// Perf.stop();
// console.log('stopped');
// Perf.printWasted(Perf.getLastMeasurements())
// }, 1000 * 10);
// Global CSS
import './css/lib/fontawesome/css/font-awesome.css'
import './css/lib/fonts/open-sans.css'
import './css/index.scss'
import './css/lib/chrome/platform_app.css'
import {initStore} from './redux/initstore';
import {initDB} from './database';
import {getAppVersion} from './lib/appInfo';
import {initAnalytics} from './lib/analytics';
// Don't inject component styles (use our own)
Tabs.setUseDefaultStyles(false);
export const store = createStore();
console.log(`-- Loading App v${getAppVersion()} --`);
initDB()
.then(() => initStore(store.dispatch))
.then(() => initAnalytics()) // Must be after because we don't want to track the initial stuff
.then(() => {
console.log('-- Rendering App --');
render(
<Provider store={store}><App /></Provider>,
document.getElementById('root')
);
});