2021-01-31 21:55:25 -08:00
|
|
|
// This file is part of Moonfire NVR, a security camera network video recorder.
|
|
|
|
// Copyright (C) 2021 The Moonfire NVR Authors; see AUTHORS and LICENSE.txt.
|
|
|
|
// SPDX-License-Identifier: GPL-v3.0-or-later WITH GPL-3.0-linking-exception
|
|
|
|
|
|
|
|
import CssBaseline from "@material-ui/core/CssBaseline";
|
2021-08-10 11:57:16 -07:00
|
|
|
import { ThemeProvider, createTheme } from "@material-ui/core/styles";
|
2021-02-22 16:45:53 -08:00
|
|
|
import StyledEngineProvider from "@material-ui/core/StyledEngineProvider";
|
2021-03-05 16:56:51 -08:00
|
|
|
import LocalizationProvider from "@material-ui/lab/LocalizationProvider";
|
2021-02-22 16:45:53 -08:00
|
|
|
import "@fontsource/roboto";
|
2021-01-31 21:55:25 -08:00
|
|
|
import React from "react";
|
|
|
|
import ReactDOM from "react-dom";
|
|
|
|
import App from "./App";
|
|
|
|
import ErrorBoundary from "./ErrorBoundary";
|
|
|
|
import { SnackbarProvider } from "./snackbars";
|
2021-03-05 16:56:51 -08:00
|
|
|
import AdapterDateFns from "@material-ui/lab/AdapterDateFns";
|
|
|
|
import "./index.css";
|
2021-01-31 21:55:25 -08:00
|
|
|
|
2021-08-10 11:57:16 -07:00
|
|
|
const theme = createTheme({
|
2021-01-31 21:55:25 -08:00
|
|
|
palette: {
|
|
|
|
primary: {
|
|
|
|
main: "#000000",
|
|
|
|
},
|
|
|
|
secondary: {
|
|
|
|
main: "#e65100",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<React.StrictMode>
|
2021-02-22 16:45:53 -08:00
|
|
|
<StyledEngineProvider injectFirst>
|
|
|
|
<CssBaseline />
|
|
|
|
<ThemeProvider theme={theme}>
|
|
|
|
<ErrorBoundary>
|
2021-03-05 16:56:51 -08:00
|
|
|
<LocalizationProvider dateAdapter={AdapterDateFns}>
|
|
|
|
<SnackbarProvider autoHideDuration={5000}>
|
|
|
|
<App />
|
|
|
|
</SnackbarProvider>
|
|
|
|
</LocalizationProvider>
|
2021-02-22 16:45:53 -08:00
|
|
|
</ErrorBoundary>
|
|
|
|
</ThemeProvider>
|
|
|
|
</StyledEngineProvider>
|
2021-01-31 21:55:25 -08:00
|
|
|
</React.StrictMode>,
|
|
|
|
document.getElementById("root")
|
|
|
|
);
|