Update client dependencies
This commit is contained in:
parent
c5062066cb
commit
77b53bfc5e
23 changed files with 1858 additions and 1363 deletions
|
@ -2,15 +2,15 @@ import React from 'react';
|
|||
import { render } from 'react-dom';
|
||||
import { browserHistory } from 'react-router';
|
||||
import { syncHistoryWithStore, replace } from 'react-router-redux';
|
||||
import 'react-virtualized/styles.css';
|
||||
|
||||
import configureStore from './store';
|
||||
import createRoutes from './routes';
|
||||
import Socket from './util/Socket';
|
||||
import handleSocket from './socket';
|
||||
import Root from './containers/Root';
|
||||
|
||||
import 'react-virtualized/styles.css';
|
||||
|
||||
const host = __DEV__ ? `${window.location.hostname}:1337` : window.location.host;
|
||||
const host = DEV ? `${window.location.hostname}:1337` : window.location.host;
|
||||
const socket = new Socket(host);
|
||||
|
||||
const store = configureStore(socket, browserHistory);
|
||||
|
@ -18,7 +18,7 @@ const store = configureStore(socket, browserHistory);
|
|||
const env = JSON.parse(document.getElementById('env').innerHTML);
|
||||
|
||||
// TODO: Handle this properly
|
||||
window.__ENV__ = {
|
||||
window.ENV = {
|
||||
defaults: env.defaults
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue