on master help sign in
Adding initial Boot and Hosting view skeletons
a785d7aBrendan Hay
src/lib/routeNames.js+1
@@ -22,4 +22,5 @@ export const ROUTE_NAMES = {
22 INVITE_COHORT: Symbol('INVITE_COHORT'),
22 INVITE_COHORT: Symbol('INVITE_COHORT'),
23 STAR_RELEASE: Symbol('STAR_RELEASE'),
23 STAR_RELEASE: Symbol('STAR_RELEASE'),
24 URBIT_OS: Symbol('URBIT_OS'),
24 URBIT_OS: Symbol('URBIT_OS'),
25+ HOSTING: Symbol('HOSTING'),
25};
26};
src/lib/router.js+5
@@ -17,6 +17,9 @@ import AcceptTransfer from 'views/AcceptTransfer';
17import CancelTransfer from 'views/CancelTransfer';
17import CancelTransfer from 'views/CancelTransfer';
18import UrbitOS from 'views/UrbitOS';
18import UrbitOS from 'views/UrbitOS';
19
19
20+import Boot from 'views/Boot';
21+import Hosting from 'views/Hosting';
22+
20import { ROUTE_NAMES } from './routeNames';
23import { ROUTE_NAMES } from './routeNames';
21
24
22export const ROUTES = {
25export const ROUTES = {
@@ -38,4 +41,6 @@ export const ROUTES = {
38 [ROUTE_NAMES.STAR_RELEASE]: StarRelease,
41 [ROUTE_NAMES.STAR_RELEASE]: StarRelease,
39 [ROUTE_NAMES.SIGIL_GENERATOR]: SigilGenerator,
42 [ROUTE_NAMES.SIGIL_GENERATOR]: SigilGenerator,
40 [ROUTE_NAMES.URBIT_OS]: UrbitOS,
43 [ROUTE_NAMES.URBIT_OS]: UrbitOS,
44+ [ROUTE_NAMES.BOOT]: Boot,
45+ [ROUTE_NAMES.HOSTING]: Hosting,
41};
46};
src/views/Boot.jsnew file+7
@@ -0,0 +1,7 @@
1+import React from 'react';
2+
3+import View from 'components/View';
4+
5+export default function Boot() {
6+ return <View />;
7+}
src/views/Hosting.jsnew file+7
@@ -0,0 +1,7 @@
1+import React from 'react';
2+
3+import View from 'components/View';
4+
5+export default function Hosting() {
6+ return <View />;
7+}
src/views/Point.js+25
@@ -15,6 +15,9 @@ import Blinky from 'components/Blinky';
15import BarGraph from 'components/BarGraph';
15import BarGraph from 'components/BarGraph';
16import Chip from 'components/Chip';
16import Chip from 'components/Chip';
17import InviteSigilList from 'components/InviteSigilList';
17import InviteSigilList from 'components/InviteSigilList';
18+import CopyButton from 'components/CopyButton';
19+import { matchBlinky } from 'components/Blinky';
20+import DownloadSigilButton from 'components/DownloadSigilButton';
18
21
19import * as need from 'lib/need';
22import * as need from 'lib/need';
20import useInvites from 'lib/useInvites';
23import useInvites from 'lib/useInvites';
@@ -87,6 +90,8 @@ export default function Point() {
87
90
88 const [showInviteForm, setShowInviteForm] = useState(false);
91 const [showInviteForm, setShowInviteForm] = useState(false);
89
92
93+ const goBoot = useCallback(() => push(names.BOOT), [push, names]);
94+
90 const inviteButton = (() => {
95 const inviteButton = (() => {
91 if (azimuth.getPointSize(point) === azimuth.PointSize.Star) {
96 if (azimuth.getPointSize(point) === azimuth.PointSize.Star) {
92 return (
97 return (
@@ -248,6 +253,26 @@ export default function Point() {
248 </>
253 </>
249 )}
254 )}
250 {senateButton}
255 {senateButton}
256+ <Grid.Item
257+ full
258+ as={ForwardButton}
259+ detail="Boot your computer"
260+ onClick={goBoot}>
261+ Boot Urbit OS
262+ </Grid.Item>
263+ <Grid.Divider />
264+ <Grid.Item
265+ full
266+ as={ForwardButton}
267+ accessory={code && <CopyButton text={code} />}
268+ detail={code || notice}
269+ disabled={!code}
270+ detailClassName="mono">
271+ Login Code
272+ </Grid.Item>
273+ <Grid.Divider />
274+ <Grid.Item full as={DownloadSigilButton} point={point} />
275+ <Grid.Divider />
251 </Grid>
276 </Grid>
252 </View>
277 </View>
253 );
278 );