2023-09-04 12:11:56 +00:00
|
|
|
import "@fontsource/roboto/300.css";
|
|
|
|
import "@fontsource/roboto/400.css";
|
|
|
|
import "@fontsource/roboto/500.css";
|
|
|
|
import "@fontsource/roboto/700.css";
|
|
|
|
|
|
|
|
import React from "react";
|
|
|
|
import ReactDOM from "react-dom/client";
|
|
|
|
import { App } from "./App";
|
|
|
|
import "./index.css";
|
|
|
|
import reportWebVitals from "./reportWebVitals";
|
|
|
|
import { LoadServerConfig } from "./widgets/LoadServerConfig";
|
|
|
|
import { ThemeProvider, createTheme } from "@mui/material";
|
2023-09-04 13:12:00 +00:00
|
|
|
import { LoadingMessageProvider } from "./hooks/providers/LoadingMessageProvider";
|
2023-09-05 11:19:25 +00:00
|
|
|
import { AlertDialogProvider } from "./hooks/providers/AlertDialogProvider";
|
|
|
|
import { SnackbarProvider } from "./hooks/providers/SnackbarProvider";
|
2023-09-06 12:55:41 +00:00
|
|
|
import { ConfirmDialogProvider } from "./hooks/providers/ConfirmDialogProvider";
|
2023-09-04 12:11:56 +00:00
|
|
|
|
|
|
|
const darkTheme = createTheme({
|
|
|
|
palette: {
|
|
|
|
mode: "dark",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
const root = ReactDOM.createRoot(
|
|
|
|
document.getElementById("root") as HTMLElement
|
|
|
|
);
|
|
|
|
root.render(
|
|
|
|
<React.StrictMode>
|
|
|
|
<ThemeProvider theme={darkTheme}>
|
2023-09-06 12:55:41 +00:00
|
|
|
<ConfirmDialogProvider>
|
|
|
|
<AlertDialogProvider>
|
|
|
|
<SnackbarProvider>
|
|
|
|
<LoadingMessageProvider>
|
|
|
|
<LoadServerConfig>
|
|
|
|
<App />
|
|
|
|
</LoadServerConfig>
|
|
|
|
</LoadingMessageProvider>
|
|
|
|
</SnackbarProvider>
|
|
|
|
</AlertDialogProvider>
|
|
|
|
</ConfirmDialogProvider>
|
2023-09-04 12:11:56 +00:00
|
|
|
</ThemeProvider>
|
|
|
|
</React.StrictMode>
|
|
|
|
);
|
|
|
|
|
|
|
|
// If you want to start measuring performance in your app, pass a function
|
|
|
|
// to log results (for example: reportWebVitals(console.log))
|
|
|
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
|
|
reportWebVitals();
|