2021-02-22 02:39:04 +00:00
|
|
|
import { hydrate } from "inferno-hydrate";
|
|
|
|
import { BrowserRouter } from "inferno-router";
|
2021-07-17 20:42:55 +00:00
|
|
|
import { App } from "../shared/components/app/app";
|
2023-01-04 16:56:24 +00:00
|
|
|
import { initializeSite } from "../shared/utils";
|
2020-08-23 04:04:58 +00:00
|
|
|
|
2023-04-15 14:47:10 +00:00
|
|
|
import "bootstrap/js/dist/dropdown";
|
|
|
|
|
2023-01-04 16:56:24 +00:00
|
|
|
const site = window.isoData.site_res;
|
2020-10-26 07:09:44 +00:00
|
|
|
initializeSite(site);
|
|
|
|
|
2020-08-23 04:04:58 +00:00
|
|
|
const wrapper = (
|
|
|
|
<BrowserRouter>
|
2022-06-21 21:42:29 +00:00
|
|
|
<App />
|
2020-08-23 04:04:58 +00:00
|
|
|
</BrowserRouter>
|
|
|
|
);
|
2020-09-07 03:41:46 +00:00
|
|
|
|
2023-04-15 14:47:10 +00:00
|
|
|
const root = document.getElementById("root");
|
2023-01-04 16:56:24 +00:00
|
|
|
if (root) {
|
|
|
|
hydrate(wrapper, root);
|
|
|
|
}
|