mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
e9d64ebb23
* Got a hacky workspace implementation running * Removed some hax with reducer composition * Moved some more around * Moved files back out * Started on entities reducer * Split up some components * Moved nested modules back out of workspaces * Started on new Sidebar tree stuff * Better store stuff * Some more tweaks * Removed workspace update action * Re-implemented filtering in the Sidbare * Switch to get the newest response
32 lines
792 B
JavaScript
32 lines
792 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/index.scss'
|
|
import './css/lib/chrome/platform_app.css'
|
|
import './css/lib/fontawesome/css/font-awesome.css'
|
|
import {initStore} from './redux/initstore'
|
|
import {initDB} from './database'
|
|
|
|
// Don't inject component styles (use our own)
|
|
Tabs.setUseDefaultStyles(false);
|
|
|
|
export const store = createStore();
|
|
|
|
console.log('-- Loading App --');
|
|
|
|
initDB()
|
|
.then(() => initStore(store.dispatch))
|
|
.then(() => {
|
|
console.log('-- Rendering App --');
|
|
render(
|
|
<Provider store={store}><App /></Provider>,
|
|
document.getElementById('root')
|
|
);
|
|
});
|