2021-05-12 23:07:17 +00:00
|
|
|
import React from "react"
|
2021-04-21 16:00:21 +00:00
|
|
|
import { BrowserRouter } from "react-router-dom"
|
2021-04-29 14:58:31 +00:00
|
|
|
import GlobalTheme from "./components/providers/GlobalTheme"
|
|
|
|
import GlobalServer from "./components/providers/GlobalServer"
|
|
|
|
import GlobalUser from "./components/providers/GlobalUser"
|
2021-04-26 20:08:52 +00:00
|
|
|
import PageSwitcher from "./PageSwitcher"
|
2021-05-18 00:04:06 +00:00
|
|
|
import GlobalLanguage from "./components/providers/GlobalLanguage"
|
2021-05-24 12:49:59 +00:00
|
|
|
import ErrorBoundary from "./components/boundaries/ErrorBoundary"
|
2021-05-27 02:30:07 +00: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-20 22:09:13 +00:00
|
|
|
|
2021-04-20 22:07:39 +00:00
|
|
|
|
2021-04-23 00:18:06 +00: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-20 22:23:35 +00:00
|
|
|
export default function App() {
|
2021-04-20 22:09:13 +00:00
|
|
|
return (
|
2021-05-18 00:04:06 +00:00
|
|
|
<GlobalLanguage>
|
|
|
|
<GlobalServer>
|
|
|
|
<GlobalUser>
|
|
|
|
<GlobalTheme>
|
|
|
|
<BrowserRouter>
|
2021-05-27 02:30:07 +00:00
|
|
|
<Window>
|
|
|
|
<RequireSize width={1366} height={768}>
|
|
|
|
<WebsiteWithSidebar
|
|
|
|
sidebar={<Sidebar/>}
|
|
|
|
>
|
|
|
|
<ErrorBoundary>
|
|
|
|
<PageSwitcher/>
|
|
|
|
</ErrorBoundary>
|
|
|
|
</WebsiteWithSidebar>
|
|
|
|
</RequireSize>
|
|
|
|
</Window>
|
2021-05-18 00:04:06 +00:00
|
|
|
</BrowserRouter>
|
|
|
|
</GlobalTheme>
|
|
|
|
</GlobalUser>
|
|
|
|
</GlobalServer>
|
|
|
|
</GlobalLanguage>
|
2021-04-20 22:09:13 +00:00
|
|
|
)
|
2021-04-20 22:07:39 +00:00
|
|
|
}
|