1import * as ob from 'urbit-ob';
3export const generateUrl = (ticket: string, planet: number) => {
4 if (ticket && planet) {
5 return `${window.location.origin}/#${ticket.slice(1)}-${ob
9 return ob.patp(planet);
12 return 'No Ticket or Ship';
15export const generateUrlAbbreviation = (ticket: string, planet: number) => {
16 if (ticket && planet) {
17 return `${window.location.origin}/#${ticket.slice(1, 7)}...${ob
21 return ob.patp(planet);
24 return 'No Ticket or Ship';
27export const generateCsvLine = (ind: number, ticket: string, planet: number) =>
28 `${ind + 1},${ob.patp(planet)},${generateUrl(
31 )},${planet},${ticket}\n`;
33export const generateCsvName = (defaultName: string, patp: string) =>
34 `${patp}_${defaultName}`;
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