X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=resources%2Fjs%2Fapp%2FRoutes.js;h=0e35ddb57180c383bb8ba6a1cb0c0a8c21f6ba4a;hb=38202f2d7ed82f5e86698144b096116220e96db3;hp=c49f0474d40aedfa5a2946aec4ddc8d17973631e;hpb=1e725fef6dc440aaeea8c30e1e0598dc5d24ad86;p=alttp.git
diff --git a/resources/js/app/Routes.js b/resources/js/app/Routes.js
index c49f047..0e35ddb 100644
--- a/resources/js/app/Routes.js
+++ b/resources/js/app/Routes.js
@@ -1,99 +1,166 @@
-import PropTypes from 'prop-types';
import React from 'react';
-import { Navigate, Route, Routes } from 'react-router-dom';
+import {
+ createBrowserRouter,
+ createRoutesFromElements,
+ Navigate,
+ Route,
+ RouterProvider,
+} from 'react-router-dom';
import FullLayout from './FullLayout';
-import AlttpSeed from '../pages/AlttpSeed';
-import DiscordBot from '../pages/DiscordBot';
-import DoorsTracker from '../pages/DoorsTracker';
-import Event from '../pages/Event';
-import Events from '../pages/Events';
import Front from '../pages/Front';
-import Map from '../pages/Map';
-import Schedule from '../pages/Schedule';
import Technique from '../pages/Technique';
import Techniques from '../pages/Techniques';
-import Tournament from '../pages/Tournament';
-import TwitchBot from '../pages/TwitchBot';
import User from '../pages/User';
-const AppRoutes = ({ doLogout }) =>
- }>
- }
- />
- }
- />
- }
- />
- }
- />
- }
- />
- } />
- }
- />
- }
- />
-
- } />
- } />
-
- }
- />
- }
- />
- }
+const router = createBrowserRouter(
+ createRoutesFromElements(
+
+ }>
+ import(
+ /* webpackChunkName: "admin" */
+ '../pages/DiscordBot'
+ )}
+ />
+ }
+ />
+ }
+ />
+ import(
+ /* webpackChunkName: "events" */
+ '../pages/Events'
+ )}
+ />
+ import(
+ /* webpackChunkName: "events" */
+ '../pages/Event'
+ )}
+ />
+ import(
+ /* webpackChunkName: "seeds" */
+ '../pages/AlttpSeed'
+ )}
+ />
+ }
+ />
+ }
+ />
+
+ } />
+ import(
+ /* webpackChunkName: "map" */
+ '../pages/Map'
+ )}
+ />
+
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ import(
+ /* webpackChunkName: "events" */
+ '../pages/Schedule'
+ )}
+ />
+ }
+ />
+ }
+ />
+ import(
+ /* webpackChunkName: "tournament" */
+ '../pages/Tournament'
+ )}
+ />
+ import(
+ /* webpackChunkName: "admin" */
+ '../pages/TwitchBot'
+ )}
+ />
+ import(
+ /* webpackChunkName: "twitch" */
+ '../pages/TwitchLegal'
+ )}
+ />
+ } />
+ } />
+ } />
+
+ import(
+ /* webpackChunkName: "tracker" */
+ '../pages/DoorsTracker'
+ )}
+ />
+
+ import(
+ /* webpackChunkName: "guessing" */
+ '../pages/GuessingGameControls'
+ )}
+ />
+ import(
+ /* webpackChunkName: "guessing" */
+ '../pages/GuessingGameMonitor'
+ )}
+ />
+
+ import(
+ /* webpackChunkName: "tracker" */
+ '../pages/Tracker'
+ )}
/>
- }
- />
- } />
- }
- />
- }
- />
- } />
- }
- />
- } />
- } />
- } />
-
- }
- />
-;
+
+ )
+);
-AppRoutes.propTypes = {
- doLogout: PropTypes.func,
-};
+const AppRoutes = () => ;
export default AppRoutes;