2021-05-13 01:07:17 +02:00
|
|
|
import React from "react"
|
2021-04-21 18:00:21 +02:00
|
|
|
import { BrowserRouter } from "react-router-dom"
|
2021-04-29 16:58:31 +02:00
|
|
|
import GlobalTheme from "./components/providers/GlobalTheme"
|
|
|
|
import GlobalServer from "./components/providers/GlobalServer"
|
|
|
|
import GlobalUser from "./components/providers/GlobalUser"
|
2021-04-26 22:08:52 +02:00
|
|
|
import PageSwitcher from "./PageSwitcher"
|
2021-05-18 02:04:06 +02:00
|
|
|
import GlobalLanguage from "./components/providers/GlobalLanguage"
|
2021-05-24 14:49:59 +02:00
|
|
|
import ErrorBoundary from "./components/boundaries/ErrorBoundary"
|
2021-05-27 04:30:07 +02:00
|
|
|
import Sidebar from "./components/interactive/Sidebar"
|
|
|
|
import WebsiteWithSidebar from "./components/base/layout/WebsiteWithSidebar"
|
|
|
|
import Window from "./components/base/layout/Window"
|
|
|
|
import RequireSize from "./components/base/RequireSize"
|
2021-04-21 00:09:13 +02:00
|
|
|
|
2021-04-21 00:07:39 +02:00
|
|
|
|
2021-04-23 02:18:06 +02:00
|
|
|
/**
|
|
|
|
* The main component of the webapp, the root of the render tree, what is displayed when the web page is visited.
|
|
|
|
*
|
|
|
|
* @returns {JSX.Element}
|
|
|
|
* @constructor
|
|
|
|
*/
|
2021-04-21 00:23:35 +02:00
|
|
|
export default function App() {
|
2021-04-21 00:09:13 +02:00
|
|
|
return (
|
2021-05-18 02:04:06 +02:00
|
|
|
<GlobalLanguage>
|
|
|
|
<GlobalServer>
|
|
|
|
<GlobalUser>
|
|
|
|
<GlobalTheme>
|
|
|
|
<BrowserRouter>
|
2021-05-27 04:30:07 +02:00
|
|
|
<Window>
|
|
|
|
<RequireSize width={1366} height={768}>
|
|
|
|
<WebsiteWithSidebar
|
|
|
|
sidebar={<Sidebar/>}
|
|
|
|
>
|
|
|
|
<ErrorBoundary>
|
|
|
|
<PageSwitcher/>
|
|
|
|
</ErrorBoundary>
|
|
|
|
</WebsiteWithSidebar>
|
|
|
|
</RequireSize>
|
|
|
|
</Window>
|
2021-05-18 02:04:06 +02:00
|
|
|
</BrowserRouter>
|
|
|
|
</GlobalTheme>
|
|
|
|
</GlobalUser>
|
|
|
|
</GlobalServer>
|
|
|
|
</GlobalLanguage>
|
2021-04-21 00:09:13 +02:00
|
|
|
)
|
2021-04-21 00:07:39 +02:00
|
|
|
}
|