This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix private methods * fix payment api * added /v2 to match the current staging implementation * move BASE_ROUTE to /competitions/v2 * remove data from payload as the current version of jwt-devise does not wrap it anymore * fix talking with permissions on the monolith * ran eslint fix * correct jwt payload * remove comma * don't leak if the user is banned
- Loading branch information
1 parent
d67d293
commit 65e96aa
Showing
19 changed files
with
136 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import React from 'react' | ||
import { Outlet } from 'react-router-dom' | ||
import { Container } from 'semantic-ui-react' | ||
import Events from './pages/events' | ||
import HomePage from './pages/home' | ||
import Register from './pages/register' | ||
import RegistrationAdministration from './pages/registration_administration' | ||
import RegistrationEdit from './pages/registration_edit' | ||
import Registrations from './pages/registrations' | ||
import Schedule from './pages/schedule' | ||
import App from './ui/App' | ||
import Competition from './ui/Competition' | ||
import CustomTab from './ui/CustomTab' | ||
import FlashMessage from './ui/messages/flashMessage' | ||
import PermissionsProvider from './ui/providers/PermissionsProvider' | ||
import UserProvider from './ui/providers/UserProvider' | ||
import PageTabs from './ui/Tabs' | ||
|
||
export const BASE_ROUTE = '/competitions/v2' | ||
|
||
const routes = [ | ||
{ | ||
path: BASE_ROUTE, | ||
element: ( | ||
<App> | ||
<FlashMessage /> | ||
<UserProvider> | ||
<Outlet /> | ||
</UserProvider> | ||
</App> | ||
), | ||
children: [ | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id`, | ||
element: ( | ||
<Container> | ||
<Competition> | ||
<PermissionsProvider> | ||
<PageTabs /> | ||
<Outlet /> | ||
</PermissionsProvider> | ||
</Competition> | ||
</Container> | ||
), | ||
children: [ | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id`, | ||
element: <HomePage />, | ||
}, | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id/events`, | ||
element: <Events />, | ||
}, | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id/schedule`, | ||
element: <Schedule />, | ||
}, | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id/register`, | ||
element: <Register />, | ||
}, | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id/tabs/:tab_id`, | ||
element: <CustomTab />, | ||
}, | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id/registrations`, | ||
element: <Registrations />, | ||
}, | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id/:user_id/edit`, | ||
element: <RegistrationEdit />, | ||
}, | ||
{ | ||
path: `${BASE_ROUTE}/:competition_id/registrations/edit`, | ||
element: <RegistrationAdministration />, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
] | ||
|
||
export default routes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.