All files / app-leaderboard/src/pages help-topics.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21      14x                               331x  
/** The Help page's sections, so other pages can point into them (`helpHref`) and the page can list them. */
 
/** Where each part of the help lives, for the contents and for links from other pages (`/help#lamps`). */
export const HELP_SECTIONS = [
  { id: 'rows', title: 'Reading a play' },
  { id: 'lamps', title: 'Clear lamps' },
  { id: 'scores', title: 'EX-Score, rate and DJ LEVEL' },
  { id: 'judgments', title: 'Judgments and BP' },
  { id: 'rules', title: 'Scoring rules' },
  { id: 'gauges', title: 'Gauges' },
  { id: 'long-notes', title: 'Long notes' },
  { id: 'filters', title: 'Ranking switches' },
  { id: 'verification', title: 'Verification' },
  { id: 'visibility', title: 'Who sees a play' },
] as const;
 
export type HelpId = (typeof HELP_SECTIONS)[number]['id'];
 
/** A link into the help, for the pages' own hints. */
export const helpHref = (id: HelpId): string => `/help#${id}`;