1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-10-30 07:40:05 -04:00
moneygo/static/main.js
Aaron Lindsay 2621f64cc7 Move to using npm/browserify to package everything
This means it now requires the Javascript to be compiled before it can
be run. This move also required a massive reorganization and lots of
debugging/fixups to make everything work properly again.
2016-02-13 10:42:48 -05:00

24 lines
733 B
JavaScript

var React = require('react');
var ReactDOM = require('react-dom');
var Globalize = require('globalize');
var globalizeLocalizer = require('react-widgets/lib/localizers/globalize');
var MoneyGoApp = require('./MoneyGoApp.js');
// 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() {
ReactDOM.render(<MoneyGoApp />, document.getElementById("content"));
});