@openeventkit/event-site 2.0.130 → 2.0.131
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/gatsby-node.js
CHANGED
|
@@ -92,12 +92,16 @@ const SSR_getEvents = async (baseUrl, summitId, accessToken) => {
|
|
|
92
92
|
|
|
93
93
|
const endpoint = `${baseUrl}/api/v1/summits/${summitId}/events/published`;
|
|
94
94
|
|
|
95
|
+
const speakers_fields = ['id', 'first_name', 'last_name', 'title', 'bio','member_id','pic', 'big_pic', 'company'];
|
|
96
|
+
const current_attendance_fields = ['member_first_name', 'member_last_name', 'member_pic'];
|
|
97
|
+
|
|
95
98
|
const params = {
|
|
96
99
|
access_token: accessToken,
|
|
97
100
|
per_page: 50,
|
|
98
101
|
page: 1,
|
|
99
|
-
expand:
|
|
100
|
-
relations:
|
|
102
|
+
expand: 'slides,links,videos,media_uploads,type,track,track.subtracks,track.allowed_access_levels,location,location.venue,location.floor,speakers,moderator,sponsors,groups,rsvp_template,tags,current_attendance',
|
|
103
|
+
relations: 'speakers.badge_features,speakers.affiliations,speakers.languages,speakers.other_presentation_links,speakers.areas_of_expertise,speakers.travel_preferences,speakers.organizational_roles,speakers.all_presentations,speakers.all_moderated_presentations',
|
|
104
|
+
fields: `speakers.${speakers_fields.join(",speakers.")},current_attendance.${current_attendance_fields.join(',current_attendance.')}`,
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
return await axios.get(endpoint, { params }).then(async ({data}) => {
|
|
@@ -161,11 +165,27 @@ const SSR_getSponsorCollections = async (allSponsors, baseUrl, summitId, accessT
|
|
|
161
165
|
|
|
162
166
|
const SSR_getSpeakers = async (baseUrl, summitId, accessToken, filter = null) => {
|
|
163
167
|
|
|
168
|
+
const speakers_relations = [
|
|
169
|
+
'badge_features',
|
|
170
|
+
'affiliations',
|
|
171
|
+
'languages',
|
|
172
|
+
'other_presentation_links',
|
|
173
|
+
'areas_of_expertise',
|
|
174
|
+
'travel_preferences',
|
|
175
|
+
'organizational_roles',
|
|
176
|
+
'all_presentations',
|
|
177
|
+
'all_moderated_presentations',
|
|
178
|
+
];
|
|
179
|
+
|
|
180
|
+
const speakers_fields =
|
|
181
|
+
['id', 'first_name', 'last_name', 'title', 'bio','member_id','pic', 'big_pic', 'company'];
|
|
182
|
+
|
|
164
183
|
const params = {
|
|
165
184
|
access_token: accessToken,
|
|
166
185
|
per_page: 30,
|
|
167
186
|
page: 1,
|
|
168
|
-
relations: '
|
|
187
|
+
relations: speakers_relations.join(','),
|
|
188
|
+
fields: speakers_fields.join(',')
|
|
169
189
|
};
|
|
170
190
|
|
|
171
191
|
const endpoint = `${baseUrl}/api/v1/summits/${summitId}/speakers/on-schedule`;
|
|
@@ -273,11 +293,11 @@ exports.onPreBootstrap = async () => {
|
|
|
273
293
|
// write colors json used to set runtime colors in gatsby-browser
|
|
274
294
|
fs.writeFileSync(COLORS_FILE_PATH, JSON.stringify(colors), "utf8");
|
|
275
295
|
|
|
276
|
-
// generate and write colors SCSS file used by built styles
|
|
296
|
+
// generate and write colors SCSS file used by built styles
|
|
277
297
|
generateAndWriteScssFile(generateColorsScssFile, colors, COLORS_SCSS_FILE_PATH);
|
|
278
298
|
|
|
279
|
-
if (siteSettings.siteFont) {
|
|
280
|
-
// generate and write font SCSS file used by built styles
|
|
299
|
+
if (siteSettings.siteFont) {
|
|
300
|
+
// generate and write font SCSS file used by built styles
|
|
281
301
|
generateAndWriteScssFile(generateFontScssFile, siteSettings.siteFont, FONTS_SCSS_FILE_PATH);
|
|
282
302
|
}
|
|
283
303
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openeventkit/event-site",
|
|
3
3
|
"description": "Event Site",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.131",
|
|
5
5
|
"author": "Tipit LLC",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"slick-carousel": "^1.8.1",
|
|
127
127
|
"smoothscroll-polyfill": "^0.4.4",
|
|
128
128
|
"socket.io-client": "^4.5.2",
|
|
129
|
-
"speakers-widget": "4.0.
|
|
129
|
+
"speakers-widget": "4.0.2",
|
|
130
130
|
"stream-browserify": "^3.0.0",
|
|
131
131
|
"stream-chat": "^2.7.2",
|
|
132
132
|
"stream-chat-react": "3.1.7",
|
|
@@ -6,6 +6,7 @@ import URI from "urijs";
|
|
|
6
6
|
* @param accessToken
|
|
7
7
|
* @returns {Promise<Response>}
|
|
8
8
|
*/
|
|
9
|
+
|
|
9
10
|
export const fetchEventById = async (summitId, eventId, accessToken = null) => {
|
|
10
11
|
|
|
11
12
|
let apiUrl = URI(`${process.env.GATSBY_SUMMIT_API_BASE_URL}/api/public/v1/summits/${summitId}/events/${eventId}/published`);
|
|
@@ -14,10 +15,13 @@ export const fetchEventById = async (summitId, eventId, accessToken = null) => {
|
|
|
14
15
|
apiUrl.addQuery('access_token', accessToken);
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
const speakers_fields = ['id', 'first_name', 'last_name', 'title', 'bio','member_id','pic', 'big_pic', 'company'];
|
|
19
|
+
const current_attendance_fields = ['member_first_name', 'member_last_name', 'member_pic'];
|
|
20
|
+
|
|
17
21
|
apiUrl.addQuery('expand', 'slides, links, videos, media_uploads, type, track, track.allowed_access_levels, location, location.venue, location.floor, speakers, moderator, sponsors, current_attendance, groups, rsvp_template, tags');
|
|
18
22
|
apiUrl.addQuery('evict_cache', 1);
|
|
19
23
|
apiUrl.addQuery('relations', "speakers.badge_features,speakers.affiliations,speakers.languages,speakers.other_presentation_links,speakers.areas_of_expertise,speakers.travel_preferences,speakers.organizational_roles,speakers.all_presentations,speakers.all_moderated_presentations");
|
|
20
|
-
|
|
24
|
+
apiUrl.addQuery('fields', `speakers.${speakers_fields.join(",speakers.")},current_attendance.${current_attendance_fields.join(',current_attendance.')}`);
|
|
21
25
|
return fetch(apiUrl.toString(), {
|
|
22
26
|
method: 'GET'
|
|
23
27
|
}).then(async (response) => {
|
|
@@ -53,7 +57,6 @@ export const fetchEventTypeById = async (summitId, eventTypeId, accessToken = nu
|
|
|
53
57
|
});
|
|
54
58
|
}
|
|
55
59
|
|
|
56
|
-
|
|
57
60
|
/**
|
|
58
61
|
*
|
|
59
62
|
* @param summitId
|
|
@@ -101,8 +104,24 @@ export const fetchSpeakerById = async(summitId, speakerId, accessToken = null) =
|
|
|
101
104
|
apiUrl.addQuery('access_token', accessToken);
|
|
102
105
|
}
|
|
103
106
|
|
|
104
|
-
|
|
107
|
+
const speakers_relations = [
|
|
108
|
+
'badge_features',
|
|
109
|
+
'affiliations',
|
|
110
|
+
'languages',
|
|
111
|
+
'other_presentation_links',
|
|
112
|
+
'areas_of_expertise',
|
|
113
|
+
'travel_preferences',
|
|
114
|
+
'organizational_roles',
|
|
115
|
+
'all_presentations',
|
|
116
|
+
'all_moderated_presentations',
|
|
117
|
+
];
|
|
118
|
+
|
|
119
|
+
const speakers_fields =
|
|
120
|
+
['id', 'first_name', 'last_name', 'title', 'bio','member_id','pic', 'big_pic', 'company'];
|
|
121
|
+
|
|
105
122
|
apiUrl.addQuery('evict_cache', 1);
|
|
123
|
+
apiUrl.addQuery('relations', speakers_relations.join(','));
|
|
124
|
+
apiUrl.addQuery('fields', speakers_fields.join(','));
|
|
106
125
|
|
|
107
126
|
return fetch(apiUrl.toString(), {
|
|
108
127
|
method: 'GET'
|