2020-09-01 14:51:59 +00:00
|
|
|
import React from "react";
|
|
|
|
import ReactDom from "react-dom";
|
2020-09-10 18:04:03 +00:00
|
|
|
import i18n from "./i18n";
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2020-10-06 08:25:38 +00:00
|
|
|
import init from "./context/auth/keycloak";
|
2020-11-12 19:16:41 +00:00
|
|
|
import { AdminClient } from "./context/auth/AdminClient";
|
2020-11-12 12:55:52 +00:00
|
|
|
import { RealmContextProvider } from "./context/realm-context/RealmContext";
|
2020-11-12 19:16:41 +00:00
|
|
|
import { WhoAmIContextProvider } from "./context/whoami/WhoAmI";
|
|
|
|
import { App } from "./App";
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2020-09-10 18:04:03 +00:00
|
|
|
console.info("supported languages", ...i18n.languages);
|
2020-11-12 12:55:52 +00:00
|
|
|
|
|
|
|
init().then((adminClient) => {
|
2020-08-04 12:59:41 +00:00
|
|
|
ReactDom.render(
|
2020-11-12 19:16:41 +00:00
|
|
|
<AdminClient.Provider value={adminClient}>
|
|
|
|
<WhoAmIContextProvider>
|
|
|
|
<RealmContextProvider>
|
|
|
|
<App />
|
|
|
|
</RealmContextProvider>
|
|
|
|
</WhoAmIContextProvider>
|
|
|
|
</AdminClient.Provider>,
|
2020-09-01 14:51:59 +00:00
|
|
|
document.getElementById("app")
|
2020-08-04 12:59:41 +00:00
|
|
|
);
|
|
|
|
});
|