Farmbot-Web-App/webpack/entry.tsx

20 lines
521 B
TypeScript
Raw Normal View History

2017-06-29 12:54:02 -06:00
/// <reference path="../typings/index.d.ts" />
import { RootComponent } from "./routes";
import { store } from "./redux/store";
import { ready } from "./config/actions";
import { detectLanguage } from "./i18n";
import * as i18next from "i18next";
2017-08-09 10:13:04 -06:00
import { stopIE, attachToRoot, shortRevision } from "./util";
2017-08-10 13:11:17 -06:00
2017-06-29 12:54:02 -06:00
stopIE();
2017-08-09 10:13:04 -06:00
2017-09-28 15:46:46 -06:00
const r = shortRevision();
2017-06-29 12:54:02 -06:00
console.log(r);
detectLanguage().then((config) => {
i18next.init(config, (err, t) => {
attachToRoot(RootComponent, { store });
store.dispatch(ready());
});
});