2021-07-16 08:59:46 +00:00
|
|
|
import "./index.css";
|
2021-07-14 12:20:04 +00:00
|
|
|
import React, { StrictMode } 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-12-02 13:37:40 +00:00
|
|
|
import { KeycloakAdminConsole } from "./KeycloakAdminConsole";
|
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) => {
|
2021-07-14 12:20:04 +00:00
|
|
|
ReactDOM.render(
|
|
|
|
<StrictMode>
|
|
|
|
<KeycloakAdminConsole adminClient={adminClient} />
|
|
|
|
</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
|
|
|
|
|
|
|
// Hot Module Replacement (HMR) - Remove this snippet to remove HMR.
|
|
|
|
// Learn more: https://snowpack.dev/concepts/hot-module-replacement
|
|
|
|
if (import.meta.hot) {
|
|
|
|
import.meta.hot.accept();
|
|
|
|
}
|