-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathhackkit.config.ts
More file actions
194 lines (186 loc) · 4.51 KB
/
hackkit.config.ts
File metadata and controls
194 lines (186 loc) · 4.51 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
import {
schoolOptions,
majorOptions,
levelsOfStudy,
dietaryRestrictionOptions,
countries,
raceOptions,
genderOptions,
ethnicityOptions,
heardFromOptions,
shirtSizeOptions,
softwareExperienceOptions,
} from "./constants";
const defaultTheme = "dark";
const c = {
hackathonName: "HackKit",
itteration: "I",
siteUrl: "https://rowdyhacks.org", // Do not have a trailing slash
defaultMetaDataDescription: "Your Metadata Description Here",
rsvpDefaultLimit: 500,
botName: "HackKit",
botParticipantRole: "Participant",
hackathonTimezone: "America/Chicago",
localUniversityName: schoolOptions[0],
localUniversitySchoolIDName: "UTSA id (abc123)",
localUniversityShortIDMaxLength: 6,
registration: {
schools: schoolOptions,
majors: majorOptions,
levelsOfStudy,
dietaryRestrictionOptions,
countries,
raceOptions,
genderOptions,
ethnicityOptions,
heardFromOptions,
shirtSizeOptions,
softwareExperienceOptions,
minRequiredAge: 18,
hackerTagRegex: /^[a-zA-Z0-9]+$/,
universityShortIDRegex: new RegExp("\\b[a-zA-Z]{3}\\d{3}\\b"),
maxNumberOfSkills: 20,
maxBioSize: 500,
maxaccommodationNoteSize: 1500,
},
zod: {
defaultSelectPrettyError: {
errorMap: () => ({ message: "Please select a value" }),
},
defaultInputPrettyError: {
message: "Please enter a value",
},
},
db: {
uniqueKeyMapper: {
user_common_data_hacker_tag_unique:
"The Hacker Tag you selected is taken. Please use another one.",
user_common_data_email_unique: "Email is already in use",
users_clerk_id_unique:
"You have already registered. Please login to your account",
},
},
groups: {
"Guild A | Group A": {
discordRole: "Guild A Role",
},
"Guild A | Group B": {
discordRole: "Guild A Role",
},
"Guild B | Group A": {
discordRole: "Guild B Role",
},
"Guild B | Group B": {
discordRole: "Guild B Role",
},
"Guild C | Group A": {
discordRole: "Guild C Role",
},
"Guild C | Group B": {
discordRole: "Guild C Role",
},
"Guild D | Group A": {
discordRole: "Guild D Role",
},
"Guild D | Group B": {
discordRole: "Guild D Role",
},
"Guild E | Group A": {
discordRole: "Guild E Role",
},
"Guild E | Group B": {
discordRole: "Guild E Role",
},
},
issueEmail: "team@rowdyhacks.org",
links: {
discord: "https://go.rowdyhacks.org/discord",
instagram: "https://instagram.com/rowdyhacks",
facebook: "https://facebook.com/rowdyhacks",
twitter: "https://twitter.com/rowdyhacks",
github: "https://github.com/acmutsa",
guide: "https://go.rowdyhacks.org/discord",
},
icon: {
sm: "/img/logo/hackkit.svg",
md: "/img/logo/hackkit-md.png",
lg: "/img/logo/hackkit-lg.png",
svg: "/img/logo/hackkit.svg",
},
dashPaths: {
dash: {
Overview: "/dash",
Schedule: "/dash/schedule",
"Event Pass": "/dash/pass",
},
admin: {
Overview: "/admin",
Users: "/admin/users",
Events: "/admin/events",
Roles: "/admin/roles",
Toggles: "/admin/toggles",
Emails: "/admin/emails",
"Hackathon Check-in": "/admin/check-in",
},
},
eventTypes: {
Meal: "#FFC107",
Workshop: "#10b981",
Ceremony: "#9C27B0",
Social: "#2196F3",
Other: "#795548",
},
days: {
Saturday: new Date(2023, 6, 15),
},
Sunday: new Date(2023, 6, 16),
maxResumeSizeInBytes: 4194304,
maxProfilePhotoSizeInBytes: 3145728,
maxFileSizeInBytes: 4194304,
eventPassBgImage: "/img/dash/pass/bg.webp",
noResumeProvidedURL:
"https://static.acmutsa.org/No%20Resume%20Provided.pdf",
// Come in and change this date to whenever the hackathon starts
startDate: new Date(new Date(2024, 1, 24).setHours(9)),
prettyLocation: "Location of Hackathon",
featureFlags: {
core: {
requireUsersApproval: false,
},
extra: {
emailService: "ethereal" as "ethereal" | "smtp",
},
},
} as const;
const staticUploads = {
bucketHost: "/api/upload/resume/view",
bucketResumeBaseUploadUrl: `${c.hackathonName}/${c.itteration}/resumes`,
} as const;
const discordInviteStatus = ["pending", "accepted", "declined"] as const;
const discordVerificationStatus = [
"pending",
"expired",
"accepted",
"rejected",
] as const;
// These are routes (pages) which do not require a account / authentication. They are used in the authMiddleware in middleware.ts. Be careful which routes you add here!
const publicRoutes = [
"/",
/^\/schedule(\/.*)?$/,
/^\/@/,
/^\/user\//,
"/404",
"/bugreport",
/^\/sign-in(\/.*)?$/,
/^\/sign-up(\/.*)?$/,
];
const defaultRoleId = 2;
export default c;
export {
defaultTheme,
discordInviteStatus,
discordVerificationStatus,
publicRoutes,
staticUploads,
defaultRoleId,
};