@acm-uiuc/js-shared 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orgs.d.ts +8 -139
- package/dist/orgs.js +27 -27
- package/package.json +1 -1
package/dist/orgs.d.ts
CHANGED
|
@@ -4,148 +4,17 @@ export declare enum OrgType {
|
|
|
4
4
|
COMMITTEE = "committee",
|
|
5
5
|
MISC = "misc"
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
readonly S01: {
|
|
14
|
-
readonly name: "SIGPwny";
|
|
15
|
-
readonly type: OrgType.SIG;
|
|
16
|
-
readonly shortcode: "sigpwny";
|
|
17
|
-
};
|
|
18
|
-
readonly S02: {
|
|
19
|
-
readonly name: "SIGCHI";
|
|
20
|
-
readonly type: OrgType.SIG;
|
|
21
|
-
readonly shortcode: "sigchi";
|
|
22
|
-
};
|
|
23
|
-
readonly S03: {
|
|
24
|
-
readonly name: "GameBuilders";
|
|
25
|
-
readonly type: OrgType.SIG;
|
|
26
|
-
readonly shortcode: "gamebuilders";
|
|
27
|
-
};
|
|
28
|
-
readonly S04: {
|
|
29
|
-
readonly name: "SIGAIDA";
|
|
30
|
-
readonly type: OrgType.SIG;
|
|
31
|
-
readonly shortcode: "sigaida";
|
|
32
|
-
};
|
|
33
|
-
readonly S05: {
|
|
34
|
-
readonly name: "SIGGRAPH";
|
|
35
|
-
readonly type: OrgType.SIG;
|
|
36
|
-
readonly shortcode: "siggraph";
|
|
37
|
-
};
|
|
38
|
-
readonly S06: {
|
|
39
|
-
readonly name: "ICPC";
|
|
40
|
-
readonly type: OrgType.SIG;
|
|
41
|
-
readonly shortcode: "icpc";
|
|
42
|
-
};
|
|
43
|
-
readonly S07: {
|
|
44
|
-
readonly name: "SIGMobile";
|
|
45
|
-
readonly type: OrgType.SIG;
|
|
46
|
-
readonly shortcode: "sigmobile";
|
|
47
|
-
};
|
|
48
|
-
readonly S08: {
|
|
49
|
-
readonly name: "SIGMusic";
|
|
50
|
-
readonly type: OrgType.SIG;
|
|
51
|
-
readonly shortcode: "sigmusic";
|
|
52
|
-
};
|
|
53
|
-
readonly S09: {
|
|
54
|
-
readonly name: "GLUG";
|
|
55
|
-
readonly type: OrgType.SIG;
|
|
56
|
-
readonly shortcode: "glug";
|
|
57
|
-
};
|
|
58
|
-
readonly S10: {
|
|
59
|
-
readonly name: "SIGNLL";
|
|
60
|
-
readonly type: OrgType.SIG;
|
|
61
|
-
readonly shortcode: "signll";
|
|
62
|
-
};
|
|
63
|
-
readonly S11: {
|
|
64
|
-
readonly name: "SIGma";
|
|
65
|
-
readonly type: OrgType.SIG;
|
|
66
|
-
readonly shortcode: "sigma";
|
|
67
|
-
};
|
|
68
|
-
readonly S12: {
|
|
69
|
-
readonly name: "SIGQuantum";
|
|
70
|
-
readonly type: OrgType.SIG;
|
|
71
|
-
readonly shortcode: "sigquantum";
|
|
72
|
-
};
|
|
73
|
-
readonly S13: {
|
|
74
|
-
readonly name: "SIGecom";
|
|
75
|
-
readonly type: OrgType.SIG;
|
|
76
|
-
readonly shortcode: "sigecom";
|
|
77
|
-
};
|
|
78
|
-
readonly S14: {
|
|
79
|
-
readonly name: "SIGPLAN";
|
|
80
|
-
readonly type: OrgType.SIG;
|
|
81
|
-
readonly shortcode: "sigplan";
|
|
82
|
-
};
|
|
83
|
-
readonly S15: {
|
|
84
|
-
readonly name: "SIGPolicy";
|
|
85
|
-
readonly type: OrgType.SIG;
|
|
86
|
-
readonly shortcode: "sigpolicy";
|
|
87
|
-
};
|
|
88
|
-
readonly S16: {
|
|
89
|
-
readonly name: "SIGARCH";
|
|
90
|
-
readonly type: OrgType.SIG;
|
|
91
|
-
readonly shortcode: "sigarch";
|
|
92
|
-
};
|
|
93
|
-
readonly S17: {
|
|
94
|
-
readonly name: "SIGRobotics";
|
|
95
|
-
readonly type: OrgType.SIG;
|
|
96
|
-
readonly shortcode: "sigrobotics";
|
|
97
|
-
};
|
|
98
|
-
readonly S18: {
|
|
99
|
-
readonly name: "SIGtricity";
|
|
100
|
-
readonly type: OrgType.SIG;
|
|
101
|
-
readonly shortcode: "sigtricity";
|
|
102
|
-
};
|
|
103
|
-
readonly C01: {
|
|
104
|
-
readonly name: "Infrastructure Committee";
|
|
105
|
-
readonly type: OrgType.COMMITTEE;
|
|
106
|
-
readonly shortcode: "infra";
|
|
107
|
-
};
|
|
108
|
-
readonly C02: {
|
|
109
|
-
readonly name: "Social Committee";
|
|
110
|
-
readonly type: OrgType.COMMITTEE;
|
|
111
|
-
readonly shortcode: "social";
|
|
112
|
-
};
|
|
113
|
-
readonly C03: {
|
|
114
|
-
readonly name: "Mentorship Committee";
|
|
115
|
-
readonly type: OrgType.COMMITTEE;
|
|
116
|
-
readonly shortcode: "mentorship";
|
|
117
|
-
};
|
|
118
|
-
readonly C04: {
|
|
119
|
-
readonly name: "Academic Committee";
|
|
120
|
-
readonly type: OrgType.COMMITTEE;
|
|
121
|
-
readonly shortcode: "academic";
|
|
122
|
-
};
|
|
123
|
-
readonly C05: {
|
|
124
|
-
readonly name: "Corporate Committee";
|
|
125
|
-
readonly type: OrgType.COMMITTEE;
|
|
126
|
-
readonly shortcode: "corporate";
|
|
127
|
-
};
|
|
128
|
-
readonly C06: {
|
|
129
|
-
readonly name: "Marketing Committee";
|
|
130
|
-
readonly type: OrgType.COMMITTEE;
|
|
131
|
-
readonly shortcode: "marketing";
|
|
132
|
-
};
|
|
133
|
-
readonly C07: {
|
|
134
|
-
readonly name: "Reflections | Projections";
|
|
135
|
-
readonly type: OrgType.COMMITTEE;
|
|
136
|
-
readonly shortcode: "reflproj";
|
|
137
|
-
};
|
|
138
|
-
readonly C08: {
|
|
139
|
-
readonly name: "HackIllinois";
|
|
140
|
-
readonly type: OrgType.COMMITTEE;
|
|
141
|
-
readonly shortcode: "hackillinois";
|
|
142
|
-
};
|
|
7
|
+
export type Organization = {
|
|
8
|
+
name: string;
|
|
9
|
+
type: OrgType;
|
|
10
|
+
shortcode: string;
|
|
11
|
+
color: string;
|
|
143
12
|
};
|
|
144
|
-
export declare const
|
|
13
|
+
export declare const Organizations: Record<string, Organization>;
|
|
14
|
+
export declare const AllOrganizationNameList: string[];
|
|
145
15
|
export type OrganizationId = keyof typeof Organizations;
|
|
146
|
-
export type Organization = (typeof Organizations)[OrganizationId];
|
|
147
16
|
export type OrganizationName = Organization["name"];
|
|
148
|
-
export declare const OrganizationsByName: Record<
|
|
17
|
+
export declare const OrganizationsByName: Record<string, string>;
|
|
149
18
|
export declare function getOrgByName(name: OrganizationName): (Organization & {
|
|
150
19
|
id: OrganizationId;
|
|
151
20
|
}) | undefined;
|
package/dist/orgs.js
CHANGED
|
@@ -6,33 +6,33 @@ export var OrgType;
|
|
|
6
6
|
OrgType["MISC"] = "misc";
|
|
7
7
|
})(OrgType || (OrgType = {}));
|
|
8
8
|
export const Organizations = {
|
|
9
|
-
"A01": { name: "ACM", type: OrgType.MAIN, shortcode: "acm" },
|
|
10
|
-
"S01": { name: "SIGPwny", type: OrgType.SIG, shortcode: "sigpwny" },
|
|
11
|
-
"S02": { name: "SIGCHI", type: OrgType.SIG, shortcode: "sigchi" },
|
|
12
|
-
"S03": { name: "GameBuilders", type: OrgType.SIG, shortcode: "gamebuilders" },
|
|
13
|
-
"S04": { name: "SIGAIDA", type: OrgType.SIG, shortcode: "sigaida" },
|
|
14
|
-
"S05": { name: "SIGGRAPH", type: OrgType.SIG, shortcode: "siggraph" },
|
|
15
|
-
"S06": { name: "ICPC", type: OrgType.SIG, shortcode: "icpc" },
|
|
16
|
-
"S07": { name: "SIGMobile", type: OrgType.SIG, shortcode: "sigmobile" },
|
|
17
|
-
"S08": { name: "SIGMusic", type: OrgType.SIG, shortcode: "sigmusic" },
|
|
18
|
-
"S09": { name: "GLUG", type: OrgType.SIG, shortcode: "glug" },
|
|
19
|
-
"S10": { name: "SIGNLL", type: OrgType.SIG, shortcode: "signll" },
|
|
20
|
-
"S11": { name: "SIGma", type: OrgType.SIG, shortcode: "sigma" },
|
|
21
|
-
"S12": { name: "SIGQuantum", type: OrgType.SIG, shortcode: "sigquantum" },
|
|
22
|
-
"S13": { name: "SIGecom", type: OrgType.SIG, shortcode: "sigecom" },
|
|
23
|
-
"S14": { name: "SIGPLAN", type: OrgType.SIG, shortcode: "sigplan" },
|
|
24
|
-
"S15": { name: "SIGPolicy", type: OrgType.SIG, shortcode: "sigpolicy" },
|
|
25
|
-
"S16": { name: "SIGARCH", type: OrgType.SIG, shortcode: "sigarch" },
|
|
26
|
-
"S17": { name: "SIGRobotics", type: OrgType.SIG, shortcode: "sigrobotics" },
|
|
27
|
-
"S18": { name: "SIGtricity", type: OrgType.SIG, shortcode: "sigtricity" },
|
|
28
|
-
"C01": { name: "Infrastructure Committee", type: OrgType.COMMITTEE, shortcode: "infra" },
|
|
29
|
-
"C02": { name: "Social Committee", type: OrgType.COMMITTEE, shortcode: "social" },
|
|
30
|
-
"C03": { name: "Mentorship Committee", type: OrgType.COMMITTEE, shortcode: "mentorship" },
|
|
31
|
-
"C04": { name: "Academic Committee", type: OrgType.COMMITTEE, shortcode: "academic" },
|
|
32
|
-
"C05": { name: "Corporate Committee", type: OrgType.COMMITTEE, shortcode: "corporate" },
|
|
33
|
-
"C06": { name: "Marketing Committee", type: OrgType.COMMITTEE, shortcode: "marketing" },
|
|
34
|
-
"C07": { name: "Reflections | Projections", type: OrgType.COMMITTEE, shortcode: "reflproj" },
|
|
35
|
-
"C08": { name: "HackIllinois", type: OrgType.COMMITTEE, shortcode: "hackillinois" },
|
|
9
|
+
"A01": { name: "ACM", type: OrgType.MAIN, shortcode: "acm", color: "#4577f8" },
|
|
10
|
+
"S01": { name: "SIGPwny", type: OrgType.SIG, shortcode: "sigpwny", color: "#33cc55" },
|
|
11
|
+
"S02": { name: "SIGCHI", type: OrgType.SIG, shortcode: "sigchi", color: "#EEAE48" },
|
|
12
|
+
"S03": { name: "GameBuilders", type: OrgType.SIG, shortcode: "gamebuilders", color: "#29386D" },
|
|
13
|
+
"S04": { name: "SIGAIDA", type: OrgType.SIG, shortcode: "sigaida", color: "#BFDDFC" },
|
|
14
|
+
"S05": { name: "SIGGRAPH", type: OrgType.SIG, shortcode: "siggraph", color: "#7896A7" },
|
|
15
|
+
"S06": { name: "ICPC", type: OrgType.SIG, shortcode: "icpc", color: "#AF2A23" },
|
|
16
|
+
"S07": { name: "SIGMobile", type: OrgType.SIG, shortcode: "sigmobile", color: "#0C7BBD" },
|
|
17
|
+
"S08": { name: "SIGMusic", type: OrgType.SIG, shortcode: "sigmusic", color: "#F4DCA3" },
|
|
18
|
+
"S09": { name: "GLUG", type: OrgType.SIG, shortcode: "glug", color: "#E94A27" },
|
|
19
|
+
"S10": { name: "SIGNLL", type: OrgType.SIG, shortcode: "signll", color: "#F59A23" },
|
|
20
|
+
"S11": { name: "SIGma", type: OrgType.SIG, shortcode: "sigma", color: "#4B65F2" },
|
|
21
|
+
"S12": { name: "SIGQuantum", type: OrgType.SIG, shortcode: "sigquantum", color: "#233643" },
|
|
22
|
+
"S13": { name: "SIGecom", type: OrgType.SIG, shortcode: "sigecom", color: "#00759A" },
|
|
23
|
+
"S14": { name: "SIGPLAN", type: OrgType.SIG, shortcode: "sigplan", color: "#4577f8" },
|
|
24
|
+
"S15": { name: "SIGPolicy", type: OrgType.SIG, shortcode: "sigpolicy", color: "#292929" },
|
|
25
|
+
"S16": { name: "SIGARCH", type: OrgType.SIG, shortcode: "sigarch", color: "#155CD0" },
|
|
26
|
+
"S17": { name: "SIGRobotics", type: OrgType.SIG, shortcode: "sigrobotics", color: "#B0B0B0" },
|
|
27
|
+
"S18": { name: "SIGtricity", type: OrgType.SIG, shortcode: "sigtricity", color: "#4577f8" },
|
|
28
|
+
"C01": { name: "Infrastructure Committee", type: OrgType.COMMITTEE, shortcode: "infra", color: "#4577f8" },
|
|
29
|
+
"C02": { name: "Social Committee", type: OrgType.COMMITTEE, shortcode: "social", color: "#4577f8" },
|
|
30
|
+
"C03": { name: "Mentorship Committee", type: OrgType.COMMITTEE, shortcode: "mentorship", color: "#4577f8" },
|
|
31
|
+
"C04": { name: "Academic Committee", type: OrgType.COMMITTEE, shortcode: "academic", color: "#4577f8" },
|
|
32
|
+
"C05": { name: "Corporate Committee", type: OrgType.COMMITTEE, shortcode: "corporate", color: "#4577f8" },
|
|
33
|
+
"C06": { name: "Marketing Committee", type: OrgType.COMMITTEE, shortcode: "marketing", color: "#4577f8" },
|
|
34
|
+
"C07": { name: "Reflections | Projections", type: OrgType.COMMITTEE, shortcode: "reflproj", color: "#4577f8" },
|
|
35
|
+
"C08": { name: "HackIllinois", type: OrgType.COMMITTEE, shortcode: "hackillinois", color: "#4577f8" },
|
|
36
36
|
};
|
|
37
37
|
export const AllOrganizationNameList = Object.values(Organizations).map(x => x.name);
|
|
38
38
|
// Create a reverse lookup map from name to ID
|