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';
17import AdminSetProxy from './Admin/AdminSetProxy';
21 EDIT_PERMISSIONS: 'EDIT_PERMISSIONS',
22 REDOWNLOAD: 'REDOWNLOAD',
24 SET_PROXY: 'SET_PROXY',
28 [NAMES.HOME]: AdminHome,
29 [NAMES.EDIT_PERMISSIONS]: AdminEditPermissions,
30 [NAMES.REDOWNLOAD]: AdminRedownload,
31 [NAMES.RETICKET]: AdminReticket,
32 [NAMES.SET_PROXY]: AdminSetProxy,
35export default function Admin() {
36 const history = useHistory();
37 const name = useCurrentPointName();
39 const { Route, ...router } = useRouter({
42 initialRoutes: [{ key: NAMES.HOME }],
46 <LocalRouterProvider value={router}>
48 <Grid className="mb4">
54 action: () => history.pop(),
65 </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