Farmbot-Web-App/webpack/entry.tsx

20 lines
538 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 09:12:56 -06:00
console.log("...");
2017-06-29 12:54:02 -06:00
stopIE();
2017-08-09 10:13:04 -06:00
2017-07-05 15:57:08 -06:00
let 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());
});
});