1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-11-17 03:50:05 -05:00
moneygo/js/main.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

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;
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');
// 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")
);
});