-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.tsx
64 lines (58 loc) · 1.51 KB
/
config.tsx
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
type ValidateIdFunction = ((id: string) => { error: boolean; helperText: React.ReactNode } | {}) | null | undefined
export const validateId: ValidateIdFunction = id => {
const regex = /^[wsuf](\d){2,}-./
if (regex.test(id)) {
return {}
} else {
return {
error: true,
helperText: (
<>
id must be in the format {"<quarter><year>"}
<code>-</code>
{"<description>"}.<br />
the quarter is specified with a one-character prefix [<code>w</code>]inter / [<code>s</code>]pring / s[
<code>u</code>]mmer / [<code>f</code>]all.
<br />
the year must be two or more digits.
<br />
(id must match the regex <code>{regex.toString()}</code>).
</>
),
}
}
}
export const EVENT_TYPES: string[] = [
"Cyber Academy",
"Cyber Lab",
"Psi Beta Rho",
"ECTF",
"Cyber Special Topics",
"LA CTF",
"CSRF",
"Miscellaneous",
"Collab",
"Social",
"GM",
"Cyber x AI Symposium",
"Speaker",
"Career",
"Industry",
"ACM Studio",
"ACM ICPC",
"ACM Design",
"ACM TeachLA",
"ACM W",
"ACM AI",
"ACM Hack",
"ACM Cloud",
]
export const EVENT_TYPE_ALLOW_ANY_INPUT: boolean = true
export const LINK_TYPES: Record<string, string> = {
slides: "google slides link",
youtube: "youtube recording link",
discord: "discord link",
}
export const METADATA_CHECKBOXES: Record<string, string> = {
"ignore-for-acm-newsletter": "do not push to the big acm newsletter (only check this for ACM GM events)",
}