2016-02-12 20:36:59 -05:00
|
|
|
var React = require('react');
|
|
|
|
var ReactDOM = require('react-dom');
|
|
|
|
|
2016-10-03 19:49:15 -04:00
|
|
|
var Provider = require('react-redux').Provider;
|
|
|
|
var Redux = require('redux');
|
|
|
|
var ReduxThunk = require('redux-thunk').default;
|
|
|
|
|
2016-02-12 20:36:59 -05:00
|
|
|
var Globalize = require('globalize');
|
|
|
|
var globalizeLocalizer = require('react-widgets/lib/localizers/globalize');
|
|
|
|
|
2016-10-05 13:36:47 -04:00
|
|
|
var MoneyGoAppContainer = require('./containers/MoneyGoAppContainer');
|
2016-10-03 19:49:15 -04:00
|
|
|
var MoneyGoReducer = require('./reducers/MoneyGoReducer');
|
2016-02-12 20:36:59 -05:00
|
|
|
|
|
|
|
// Setup globalization for react-widgets
|
|
|
|
//Globalize.load(require("cldr-data").entireSupplemental());
|
|
|
|
Globalize.load(
|
|
|
|
require("cldr-data/main/en/ca-gregorian"),
|
|
|
|
require("cldr-data/main/en/numbers"),
|
|
|
|
require("cldr-data/supplemental/likelySubtags"),
|
|
|
|
require("cldr-data/supplemental/timeData"),
|
|
|
|
require("cldr-data/supplemental/weekData")
|
|
|
|
);
|
|
|
|
Globalize.locale('en');
|
|
|
|
globalizeLocalizer(Globalize);
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
2016-10-03 19:49:15 -04:00
|
|
|
var store = Redux.createStore(
|
|
|
|
MoneyGoReducer,
|
|
|
|
Redux.applyMiddleware(
|
|
|
|
ReduxThunk
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<Provider store={store}>
|
2016-10-05 13:36:47 -04:00
|
|
|
<MoneyGoAppContainer />
|
2016-10-03 19:49:15 -04:00
|
|
|
</Provider>,
|
|
|
|
document.getElementById("content")
|
|
|
|
);
|
2016-02-12 20:36:59 -05:00
|
|
|
});
|