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";
|
2023-07-25 16:56:44 +00:00
|
|
|
import { createRoot } from "react-dom/client";
|
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-11 18:23:10 +00:00
|
|
|
import { i18n } from "./i18n/i18n";
|
2023-05-10 06:20:49 +00:00
|
|
|
import { initKeycloak } 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.
|
2023-05-10 06:20:49 +00:00
|
|
|
await initKeycloak();
|
2023-05-11 18:23:10 +00:00
|
|
|
await i18n.init();
|
2023-05-03 11:27:27 +00:00
|
|
|
|
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");
|
2023-07-25 16:56:44 +00:00
|
|
|
const root = createRoot(container!);
|
2022-04-27 15:29:57 +00:00
|
|
|
|
2023-07-25 16:56:44 +00:00
|
|
|
root.render(
|
2023-02-13 07:18:16 +00:00
|
|
|
<StrictMode>
|
2023-03-27 16:34:53 +00:00
|
|
|
<RouterProvider router={router} />
|
2023-02-13 07:18:16 +00:00
|
|
|
</StrictMode>,
|
|
|
|
);
|