2016-12-22 14:09:16 +01:00
|
|
|
import 'whatwg-fetch';
|
2021-02-25 10:54:53 +01:00
|
|
|
import './app.css';
|
2019-03-11 21:10:45 +01:00
|
|
|
|
2016-11-10 14:26:24 +01:00
|
|
|
import ReactDOM from 'react-dom';
|
2021-05-04 09:59:42 +02:00
|
|
|
import { Route, BrowserRouter as Router } from 'react-router-dom';
|
2021-03-30 15:14:02 +02:00
|
|
|
import { ThemeProvider, CssBaseline } from '@material-ui/core';
|
2021-04-27 09:48:00 +02:00
|
|
|
import { DndProvider } from 'react-dnd';
|
|
|
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
2021-03-30 15:14:02 +02:00
|
|
|
import { StylesProvider } from '@material-ui/core/styles';
|
2022-03-25 12:34:20 +01:00
|
|
|
import mainTheme from 'themes/mainTheme';
|
2022-02-11 11:19:55 +01:00
|
|
|
import { App } from './component/App';
|
2022-03-25 12:34:20 +01:00
|
|
|
import ScrollToTop from 'component/scrollToTop';
|
2021-10-19 13:08:25 +02:00
|
|
|
import AccessProvider from './component/providers/AccessProvider/AccessProvider';
|
2022-03-25 12:34:20 +01:00
|
|
|
import { getBasePath } from 'utils/formatPath';
|
2022-01-14 15:50:02 +01:00
|
|
|
import UIProvider from './component/providers/UIProvider/UIProvider';
|
2016-11-10 14:26:24 +01:00
|
|
|
|
|
|
|
ReactDOM.render(
|
2022-02-11 11:19:55 +01:00
|
|
|
<DndProvider backend={HTML5Backend}>
|
|
|
|
<UIProvider>
|
|
|
|
<AccessProvider>
|
|
|
|
<Router basename={`${getBasePath()}`}>
|
|
|
|
<ThemeProvider theme={mainTheme}>
|
|
|
|
<StylesProvider injectFirst>
|
|
|
|
<CssBaseline />
|
|
|
|
<ScrollToTop>
|
|
|
|
<Route path="/" component={App} />
|
|
|
|
</ScrollToTop>
|
|
|
|
</StylesProvider>
|
|
|
|
</ThemeProvider>
|
|
|
|
</Router>
|
|
|
|
</AccessProvider>
|
|
|
|
</UIProvider>
|
|
|
|
</DndProvider>,
|
2017-08-28 19:15:47 +02:00
|
|
|
document.getElementById('app')
|
|
|
|
);
|