mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
Reach parity with last web iteration. (#162)
* feat: add Api and Session contexts * feat(web): add machinery/new-session * feat(web): add servers page * chore(web): AppRouter spacing/ordering * feat(web): add picker, missing update-roles call for now * feat(web): add picker saves * chore: add roleTransactions tests * feat(web): add auth/login
This commit is contained in:
parent
f65779f925
commit
cd448b56c9
20 changed files with 567 additions and 7 deletions
|
@ -2,6 +2,14 @@ import { Router } from '@reach/router';
|
|||
import * as React from 'react';
|
||||
|
||||
const LandingPage = React.lazy(() => import('../pages/landing'));
|
||||
const ServersPage = React.lazy(() => import('../pages/servers'));
|
||||
const PickerPage = React.lazy(() => import('../pages/picker'));
|
||||
|
||||
const AuthLogin = React.lazy(() => import('../pages/auth/login'));
|
||||
const MachineryNewSession = React.lazy(() => import('../pages/machinery/new-session'));
|
||||
|
||||
const DevToolsSetApi = React.lazy(() => import('../pages/dev-tools/set-api'));
|
||||
const DevToolsSessionDebug = React.lazy(() => import('../pages/dev-tools/session-debug'));
|
||||
|
||||
const RouteWrapper = (props: {
|
||||
component: React.LazyExoticComponent<React.ComponentType<any>>;
|
||||
|
@ -17,6 +25,17 @@ export const AppRouter = () => {
|
|||
return (
|
||||
<Router>
|
||||
<RouteWrapper component={LandingPage} path="/" />
|
||||
<RouteWrapper component={ServersPage} path="/servers" />
|
||||
<RouteWrapper component={PickerPage} path="/s/:serverID" />
|
||||
|
||||
<RouteWrapper component={MachineryNewSession} path="/machinery/new-session" />
|
||||
<RouteWrapper component={AuthLogin} path="/auth/login" />
|
||||
|
||||
<RouteWrapper component={DevToolsSetApi} path="/x/dev-tools/set-api" />
|
||||
<RouteWrapper
|
||||
component={DevToolsSessionDebug}
|
||||
path="/x/dev-tools/session-debug"
|
||||
/>
|
||||
</Router>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
export * from './AppRouter';
|
Loading…
Add table
Add a link
Reference in a new issue