1import React from 'react';
2import { Grid } from 'indigo-react';
4import { useHistory } from 'store/history';
6import useCurrentPointName from 'lib/useCurrentPointName';
7import useRouter from 'lib/useRouter';
8import { LocalRouterProvider } from 'lib/LocalRouter';
10import View from 'components/View';
11import Crumbs from 'components/Crumbs';
13import AdminHome from './Admin/AdminHome';
14import AdminEditPermissions from './Admin/AdminEditPermissions';
15import AdminRedownload from './Admin/AdminRedownload';
16import AdminReticket from './Admin/AdminReticket';
20 EDIT_PERMISSIONS: 'EDIT_PERMISSIONS',
21 REDOWNLOAD: 'REDOWNLOAD',
26 [NAMES.HOME]: AdminHome,
27 [NAMES.EDIT_PERMISSIONS]: AdminEditPermissions,
28 [NAMES.REDOWNLOAD]: AdminRedownload,
29 [NAMES.RETICKET]: AdminReticket,
32export default function Admin() {
33 const history = useHistory();
34 const name = useCurrentPointName();
36 const { Route, ...router } = useRouter({
39 initialRoutes: [{ key: NAMES.HOME }],
43 <LocalRouterProvider value={router}>
45 <Grid className="mb4">
51 action: () => history.pop(),
62 </LocalRouterProvider>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list