2022-08-02 12:11:38 +00:00
|
|
|
import "@patternfly/react-core/dist/styles/base.css";
|
2023-03-27 16:34:53 +00:00
|
|
|
import "@patternfly/patternfly/patternfly-addons.css";
|
2022-08-02 12:11:38 +00:00
|
|
|
|
2022-08-03 12:12:07 +00:00
|
|
|
import { StrictMode } from "react";
|
2022-11-18 16:13:39 +00:00
|
|
|
import { render } from "react-dom";
|
2023-03-27 16:34:53 +00:00
|
|
|
import { createHashRouter, RouterProvider } from "react-router-dom";
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2023-05-03 11:27:27 +00:00
|
|
|
import { initI18n } from "./i18n";
|
|
|
|
import { keycloak } from "./keycloak";
|
2023-03-27 16:34:53 +00:00
|
|
|
import { RootRoute } from "./routes";
|
2022-04-27 15:29:57 +00:00
|
|
|
|
|
|
|
import "./index.css";
|
|
|
|
|
2023-05-03 11:27:27 +00:00
|
|
|
// Initialize required components before rendering app.
|
|
|
|
await keycloak.init({ onLoad: "check-sso", pkceMethod: "S256" });
|
|
|
|
await initI18n();
|
|
|
|
|
2023-03-27 16:34:53 +00:00
|
|
|
const router = createHashRouter([RootRoute]);
|
2023-02-13 07:18:16 +00:00
|
|
|
const container = document.getElementById("app");
|
2022-04-27 15:29:57 +00:00
|
|
|
|
2023-02-13 07:18:16 +00:00
|
|
|
render(
|
|
|
|
<StrictMode>
|
2023-03-27 16:34:53 +00:00
|
|
|
<RouterProvider router={router} />
|
2023-02-13 07:18:16 +00:00
|
|
|
</StrictMode>,
|
|
|
|
container
|
|
|
|
);
|