2016-12-22 14:09:16 +01:00
|
|
|
import 'whatwg-fetch';
|
2022-04-01 10:28:15 +02:00
|
|
|
import 'themes/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-04-27 09:48:00 +02:00
|
|
|
import { DndProvider } from 'react-dnd';
|
|
|
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
2022-05-02 15:52:41 +02:00
|
|
|
import { ThemeProvider } from 'themes/ThemeProvider';
|
2022-04-01 10:28:15 +02:00
|
|
|
import { App } from 'component/App';
|
|
|
|
import { ScrollTop } from 'component/common/ScrollTop/ScrollTop';
|
2022-05-02 15:52:41 +02:00
|
|
|
import { AccessProvider } from 'component/providers/AccessProvider/AccessProvider';
|
2022-03-25 12:34:20 +01:00
|
|
|
import { getBasePath } from 'utils/formatPath';
|
2022-03-31 09:23:46 +02:00
|
|
|
import { FeedbackCESProvider } from 'component/feedback/FeedbackCESContext/FeedbackCESProvider';
|
2022-04-01 10:28:15 +02:00
|
|
|
import UIProvider from 'component/providers/UIProvider/UIProvider';
|
2022-04-22 14:03:58 +02:00
|
|
|
import { AnnouncerProvider } from 'component/common/Announcer/AnnouncerProvider/AnnouncerProvider';
|
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()}`}>
|
2022-05-02 15:52:41 +02:00
|
|
|
<ThemeProvider>
|
2022-04-22 14:03:58 +02:00
|
|
|
<AnnouncerProvider>
|
|
|
|
<FeedbackCESProvider>
|
|
|
|
<ScrollTop />
|
|
|
|
<Route path="/" component={App} />
|
|
|
|
</FeedbackCESProvider>
|
|
|
|
</AnnouncerProvider>
|
2022-05-02 15:52:41 +02:00
|
|
|
</ThemeProvider>
|
2022-02-11 11:19:55 +01:00
|
|
|
</Router>
|
|
|
|
</AccessProvider>
|
|
|
|
</UIProvider>
|
|
|
|
</DndProvider>,
|
2017-08-28 19:15:47 +02:00
|
|
|
document.getElementById('app')
|
|
|
|
);
|