-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig.js
81 lines (72 loc) · 2.15 KB
/
config.js
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
/**
* Used for:
* - Calculating PR/MR countdown on profile
*/
export const prWaitingTime = 7 * 24 * 60 * 60 * 1000;
/**
* Used for:
* - Homepage countdown + year
* - Displaying profile access in nav
* - Controlling access to auth hook
* - Controlling access to registration page
* - Controlling access to report page
* - Participation page information
*/
export const registrationStart =
process.env.REGISTRATION_START || '2024-09-23T12:00:00Z';
/**
* Used for:
* - Displaying the current hacktoberfest year
*/
export const currentHacktoberfest =
new Date(registrationStart).getFullYear() - 2013;
/**
* Used for:
* - Controlling access to registration page
* - Toggling copy for profile access in nav
* - Participation page information
*/
export const registrationEnd =
process.env.REGISTRATION_END || '2024-11-01T12:00:00Z';
/**
* Used for:
* - Toggling no PR/MR messaging on profile
* - Participation page information
*/
export const trackingStart =
process.env.TRACKING_START || '2024-09-30T10:00:00Z';
/**
* Used for:
* - Participation page information
*/
export const trackingEnd = process.env.TRACKING_END || '2024-11-01T12:00:00Z';
/**
* Used for:
* - Controlling access to report page
* - Controlling access to profile edit page
*/
export const trackingEndExtended =
process.env.TRACKING_END_EXTENDED || '2024-11-08T12:00:00Z';
/**
* Used for:
* - Displaying profile access in nav
* - Controlling access to auth hook
*/
export const profileEnd = process.env.PROFILE_END || '2024-12-15T12:00:00Z';
/**
* Used for:
* - Displaying progress to registration date
*/
export const launchDate = process.env.LAUNCH_DATE || '2024-09-01T12:00:00Z';
/**
* Used for:
* - Displaying nice names for PR/MR providers
* - Showing the correct reference character on profile page
* - Showing the correct name for PR/MR on the profile page
* - Provider selection on report page
* - Providers in profile link/unlinking
*/
export const providerMap = Object.freeze({
github: { name: 'GitHub', referenceCharacter: '#', prName: 'PR' },
gitlab: { name: 'GitLab', referenceCharacter: '!', prName: 'MR' },
});