41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
|
var React = require('react');
|
||
|
var ReactDOM = require('react-dom');
|
||
|
|
||
|
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');
|
||
|
|
||
|
var LunchAppContainer = require('./containers/LunchAppContainer');
|
||
|
var LunchReducer = require('./reducers/LunchReducer');
|
||
|
|
||
|
// 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() {
|
||
|
var store = Redux.createStore(
|
||
|
LunchReducer,
|
||
|
Redux.applyMiddleware(
|
||
|
ReduxThunk
|
||
|
)
|
||
|
);
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Provider store={store}>
|
||
|
<LunchAppContainer />
|
||
|
</Provider>,
|
||
|
document.getElementById("content")
|
||
|
);
|
||
|
});
|