@icvdeveloper/common-module 1.1.2 → 1.1.4
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/CHANGELOG.md +4 -0
- package/dist/module.json +1 -1
- package/dist/runtime/components/events/ListEvents.vue +30 -24
- package/dist/runtime/composables/useConferenceHelpers.mjs +2 -2
- package/dist/runtime/composables/useEvents.d.ts +2 -2
- package/dist/runtime/composables/useEvents.mjs +4 -4
- package/dist/runtime/composables/useUcc.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/module.json
CHANGED
|
@@ -110,7 +110,7 @@ const {
|
|
|
110
110
|
isLoggedIn,
|
|
111
111
|
loginModalVisible,
|
|
112
112
|
conferenceToLoginTo,
|
|
113
|
-
|
|
113
|
+
getEventPage,
|
|
114
114
|
setConferenceToLoginTo,
|
|
115
115
|
buttonClass,
|
|
116
116
|
getSponsors,
|
|
@@ -361,9 +361,9 @@ const showLoginButton = computed((): boolean => {
|
|
|
361
361
|
v-if="liveButton && conference.state === ConferenceState.LIVE"
|
|
362
362
|
>
|
|
363
363
|
<!-- go to video -->
|
|
364
|
-
<
|
|
364
|
+
<nuxt-link
|
|
365
365
|
v-if="liveButtonOpensStream"
|
|
366
|
-
:
|
|
366
|
+
:to="getVideoUrl(conference)"
|
|
367
367
|
:target="
|
|
368
368
|
/^http/.test(!isUpcoming && getVideoUrl(conference))
|
|
369
369
|
? '_blank'
|
|
@@ -377,34 +377,40 @@ const showLoginButton = computed((): boolean => {
|
|
|
377
377
|
>
|
|
378
378
|
{{ getVideoButtonText(conference) }}
|
|
379
379
|
</button>
|
|
380
|
-
</
|
|
380
|
+
</nuxt-link>
|
|
381
381
|
<!-- go to event page -->
|
|
382
|
-
<
|
|
382
|
+
<nuxt-link
|
|
383
383
|
v-else
|
|
384
|
-
:
|
|
385
|
-
classBinding(classObject, 'liveButtonItem', buttonClass)
|
|
386
|
-
"
|
|
387
|
-
@click="goEventPage(conference)"
|
|
384
|
+
:to="getEventPage(conference)"
|
|
388
385
|
>
|
|
389
|
-
|
|
390
|
-
|
|
386
|
+
<button
|
|
387
|
+
:class="
|
|
388
|
+
classBinding(classObject, 'liveButtonItem', buttonClass)
|
|
389
|
+
"
|
|
390
|
+
>
|
|
391
|
+
{{ getVideoButtonText(conference) }}
|
|
392
|
+
</button>
|
|
393
|
+
</nuxt-link>
|
|
391
394
|
</template>
|
|
392
395
|
|
|
393
396
|
<template v-else>
|
|
394
397
|
<!-- view info button -->
|
|
395
|
-
<
|
|
398
|
+
<nuxt-link
|
|
396
399
|
v-if="viewInfoButton"
|
|
397
|
-
:
|
|
398
|
-
classBinding(classObject, 'buttonItem', buttonClass)
|
|
399
|
-
"
|
|
400
|
-
@click="goEventPage(conference)"
|
|
400
|
+
:to="getEventPage(conference)"
|
|
401
401
|
>
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
<button
|
|
403
|
+
:class="
|
|
404
|
+
classBinding(classObject, 'buttonItem', buttonClass)
|
|
405
|
+
"
|
|
406
|
+
>
|
|
407
|
+
More Info
|
|
408
|
+
</button>
|
|
409
|
+
</nuxt-link>
|
|
404
410
|
<!-- view live/preview archive button -->
|
|
405
|
-
<
|
|
411
|
+
<nuxt-link
|
|
406
412
|
v-if="mediaButton && showViewButton(conference)"
|
|
407
|
-
:
|
|
413
|
+
:to="getVideoUrl(conference)"
|
|
408
414
|
:target="
|
|
409
415
|
/^http/.test(!isUpcoming && getVideoUrl(conference))
|
|
410
416
|
? '_blank'
|
|
@@ -418,7 +424,7 @@ const showLoginButton = computed((): boolean => {
|
|
|
418
424
|
>
|
|
419
425
|
{{ getVideoButtonText(conference) }}
|
|
420
426
|
</button>
|
|
421
|
-
</
|
|
427
|
+
</nuxt-link>
|
|
422
428
|
|
|
423
429
|
<!-- login button -->
|
|
424
430
|
<button
|
|
@@ -432,9 +438,9 @@ const showLoginButton = computed((): boolean => {
|
|
|
432
438
|
</button>
|
|
433
439
|
|
|
434
440
|
<!-- register button -->
|
|
435
|
-
<
|
|
441
|
+
<nuxt-link
|
|
436
442
|
v-if="registerButton && showConferenceRegButton(conference)"
|
|
437
|
-
:
|
|
443
|
+
:to="getConferenceRegUrl(conference, registerPathPrefix)"
|
|
438
444
|
:target="
|
|
439
445
|
/^http/.test(getConferenceRegUrl(conference))
|
|
440
446
|
? '_blank'
|
|
@@ -448,7 +454,7 @@ const showLoginButton = computed((): boolean => {
|
|
|
448
454
|
>
|
|
449
455
|
{{ getConferenceRegText(conference) }}
|
|
450
456
|
</button>
|
|
451
|
-
</
|
|
457
|
+
</nuxt-link>
|
|
452
458
|
</template>
|
|
453
459
|
</div>
|
|
454
460
|
<!-- countdown timer - right-aligned -->
|
|
@@ -58,14 +58,14 @@ export const useConferenceHelpers = (conference) => {
|
|
|
58
58
|
const _selectedConference = _getSelectedConference(_conference);
|
|
59
59
|
return _selectedConference.access && _selectedConference.state !== "archive" && _selectedConference.state !== "hidden";
|
|
60
60
|
};
|
|
61
|
-
const getConferenceWebcastUrl = (_conference) => {
|
|
61
|
+
const getConferenceWebcastUrl = (_conference, skipAgenda) => {
|
|
62
62
|
const _selectedConference = _getSelectedConference(_conference);
|
|
63
63
|
if (_selectedConference.state === "upcoming") {
|
|
64
64
|
return "/stream-test";
|
|
65
65
|
}
|
|
66
66
|
const channel = get(_selectedConference, "days[0].tracks[0].channel", 1);
|
|
67
67
|
const eventPathPrefix = config.public.eventPathPrefix;
|
|
68
|
-
return _selectedConference.agenda_enabled ? `/agenda/${_selectedConference.id}` : eventPathPrefix ? `${eventPathPrefix}${_selectedConference.id}/webcast/${channel}` : `/upcoming-events/${_selectedConference.id}/webcast/${channel}`;
|
|
68
|
+
return _selectedConference.agenda_enabled && skipAgenda !== true ? `/agenda/${_selectedConference.id}` : eventPathPrefix ? `${eventPathPrefix}${_selectedConference.id}/webcast/${channel}` : `/upcoming-events/${_selectedConference.id}/webcast/${channel}`;
|
|
69
69
|
};
|
|
70
70
|
const getConferenceWebcastButtonText = (_conference) => {
|
|
71
71
|
const _selectedConference = _getSelectedConference(_conference);
|
|
@@ -22,9 +22,9 @@ export type UseEventsMethods = {
|
|
|
22
22
|
*/
|
|
23
23
|
isHomePage: Ref<boolean>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* get path to event landing page
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
getEventPage: (conference: Conference) => string;
|
|
28
28
|
/**
|
|
29
29
|
* display modal login modal and set its conference prop
|
|
30
30
|
*/
|
|
@@ -18,12 +18,12 @@ export const useEvents = () => {
|
|
|
18
18
|
const isHomePage = computed(() => {
|
|
19
19
|
return route.name === "index";
|
|
20
20
|
});
|
|
21
|
-
const
|
|
21
|
+
const getEventPage = (conference) => {
|
|
22
22
|
const eventPathPrefix = config.public.eventPathPrefix;
|
|
23
23
|
if (eventPathPrefix) {
|
|
24
|
-
|
|
24
|
+
return eventPathPrefix + conference.id;
|
|
25
25
|
} else {
|
|
26
|
-
|
|
26
|
+
return `/upcoming-events/${conference.id}`;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
const setConferenceToLoginTo = (conference) => {
|
|
@@ -59,7 +59,7 @@ export const useEvents = () => {
|
|
|
59
59
|
conferenceToLoginTo,
|
|
60
60
|
buttonClass,
|
|
61
61
|
isHomePage,
|
|
62
|
-
|
|
62
|
+
getEventPage,
|
|
63
63
|
setConferenceToLoginTo,
|
|
64
64
|
orderAffiliates,
|
|
65
65
|
getSponsors,
|
|
@@ -23,7 +23,7 @@ export const useUcc = () => {
|
|
|
23
23
|
state: conference.state,
|
|
24
24
|
brandCode
|
|
25
25
|
};
|
|
26
|
-
window.uccMixin.webcastUrl = getConferenceWebcastUrl(conference);
|
|
26
|
+
window.uccMixin.webcastUrl = getConferenceWebcastUrl(conference, true);
|
|
27
27
|
window.uccMixin.loginV3 = loginV3;
|
|
28
28
|
window.uccMixin.postAuthRedirect = postAuthRedirect;
|
|
29
29
|
window.uccMixin.uccShowEventSignUp = uccShowEventSignUp;
|