-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.ts
81 lines (79 loc) · 1.99 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import React from 'react';
import { Results } from 'crewtimer-common';
import { SimpleTeamPoints } from './components/SimpleTeamPoints';
import {
BarnesPointsTraditional,
BarnesFullWeighted,
BarnesSimpleWeighted,
MSRAChampionshipPoints,
} from './components/BarnesPoints';
import { ACANationalsPoints, ACAPoints } from './components/ACATeamPoints';
import { FIRAPointsTraditional } from './components/FIRAPoints';
import { HebdaPoints, WyHiPoints } from './components/WyandottePoints';
import { SprintsPointsTraditional } from './components/SprintsPoints';
export interface PointsViewerInfo {
name: string; /// User presentable string
key: string; /// key used for selection storage. Do not change after initial deployment.
ui: React.FC<{ results: Results }>; /// A react component to render results
}
/**
* A list of points viewers.
*/
export const PointsViewers: PointsViewerInfo[] = [
// Roughly alphabetic order
{
name: 'ACA Regatta',
key: 'ACA',
ui: ACAPoints,
},
{
name: 'ACA National Championships',
key: 'ACANat',
ui: ACANationalsPoints,
},
{
name: 'Mitten Series (Barnes System)',
key: 'BarnesFullWeighted',
ui: BarnesFullWeighted,
},
{
name: 'Midwest Scholastic Championship',
key: 'MSRAChampionshipPoints',
ui: MSRAChampionshipPoints,
},
{
name: 'Michigan States Scholastic Championship (Barnes System)',
key: 'BarnesSimpleWeighted',
ui: BarnesSimpleWeighted,
},
{
name: 'Barnes System',
key: 'BarnesTraditional',
ui: BarnesPointsTraditional,
},
{
name: 'Basic Points',
key: 'Basic',
ui: SimpleTeamPoints,
},
{
name: 'FIRA Points Traditional (Mitchell System)',
key: 'FIRATraditional',
ui: FIRAPointsTraditional,
},
{
name: 'Hebda Cup',
key: 'HebdaPoints',
ui: HebdaPoints,
},
{
name: 'Wy-Hi Regatta',
key: 'WyHiPoints',
ui: WyHiPoints,
},
{
name: 'Chicago Sprints',
key: 'SprintsPoints',
ui: SprintsPointsTraditional,
},
];