2024-05-06 12:19:06 -07:00
|
|
|
import ReactDOM from "react-dom/client";
|
|
|
|
|
import App from "./App.jsx";
|
2026-09-03 00:45:40 -04:00
|
|
|
// Self-hosted so the app keeps its typeface on air-gapped installs
|
|
|
|
|
import "@fontsource-variable/geist";
|
2024-05-06 12:19:06 -07:00
|
|
|
import "./index.css";
|
2024-10-07 13:47:20 +08:00
|
|
|
import { BrowserRouter as Router } from "react-router-dom";
|
2024-06-04 12:15:35 -07:00
|
|
|
import { Provider } from "react-redux";
|
2026-02-12 18:30:15 +00:00
|
|
|
import { persistor, store } from "@/store.js";
|
2024-06-20 14:07:33 -07:00
|
|
|
import { PersistGate } from "redux-persist/integration/react";
|
2026-02-20 18:13:39 +00:00
|
|
|
import I18nLoader from "./Components/i18nLoader/index.js";
|
2026-02-09 23:51:18 +00:00
|
|
|
import { initApiClient } from "./Utils/ApiClient.js";
|
2026-01-24 20:26:05 +00:00
|
|
|
|
|
|
|
|
initApiClient(store);
|
2024-10-07 13:47:20 +08:00
|
|
|
|
2026-02-09 23:51:18 +00:00
|
|
|
ReactDOM.createRoot(document.getElementById("root")!).render(
|
2024-10-17 12:05:06 +08:00
|
|
|
<Provider store={store}>
|
|
|
|
|
<PersistGate
|
|
|
|
|
loading={null}
|
|
|
|
|
persistor={persistor}
|
|
|
|
|
>
|
2025-05-30 15:03:32 -07:00
|
|
|
<I18nLoader />
|
2024-10-17 12:05:06 +08:00
|
|
|
<Router>
|
2026-02-09 23:37:07 +00:00
|
|
|
<App />
|
2024-10-17 12:05:06 +08:00
|
|
|
</Router>
|
|
|
|
|
</PersistGate>
|
|
|
|
|
</Provider>
|
2024-05-06 12:19:06 -07:00
|
|
|
);
|