2022-08-02 12:11:38 +00:00
|
|
|
import "@patternfly/patternfly/patternfly-addons.css";
|
|
|
|
import "@patternfly/react-core/dist/styles/base.css";
|
|
|
|
|
2021-07-14 12:20:04 +00:00
|
|
|
import React, { StrictMode } from "react";
|
|
|
|
import ReactDOM from "react-dom";
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2021-08-11 11:23:59 +00:00
|
|
|
import { App } from "./App";
|
2022-04-27 15:29:57 +00:00
|
|
|
import { initAdminClient } from "./context/auth/AdminClient";
|
|
|
|
import { initI18n } from "./i18n";
|
|
|
|
|
|
|
|
import "./index.css";
|
|
|
|
|
|
|
|
async function initialize() {
|
2022-07-14 13:02:28 +00:00
|
|
|
const { keycloak, adminClient } = await initAdminClient();
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2022-04-27 15:29:57 +00:00
|
|
|
await initI18n(adminClient);
|
2020-11-12 12:55:52 +00:00
|
|
|
|
2021-07-14 12:20:04 +00:00
|
|
|
ReactDOM.render(
|
|
|
|
<StrictMode>
|
2022-07-14 13:02:28 +00:00
|
|
|
<App keycloak={keycloak} adminClient={adminClient} />
|
2021-07-14 12:20:04 +00:00
|
|
|
</StrictMode>,
|
2020-09-01 14:51:59 +00:00
|
|
|
document.getElementById("app")
|
2020-08-04 12:59:41 +00:00
|
|
|
);
|
2021-07-14 12:17:57 +00:00
|
|
|
}
|
2022-04-27 15:29:57 +00:00
|
|
|
|
|
|
|
initialize();
|