@icvdeveloper/common-module 1.1.2 → 1.1.3

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 CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 1.1.3 - 2023-11-08
11
+
10
12
  ## 1.1.2 - 2023-11-07
11
13
 
12
14
  ## 1.1.1 - 2023-10-26
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "1.1.2"
4
+ "version": "1.1.3"
5
5
  }
@@ -110,7 +110,7 @@ const {
110
110
  isLoggedIn,
111
111
  loginModalVisible,
112
112
  conferenceToLoginTo,
113
- goEventPage,
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
- <a
364
+ <nuxt-link
365
365
  v-if="liveButtonOpensStream"
366
- :href="getVideoUrl(conference)"
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
- </a>
380
+ </nuxt-link>
381
381
  <!-- go to event page -->
382
- <button
382
+ <nuxt-link
383
383
  v-else
384
- :class="
385
- classBinding(classObject, 'liveButtonItem', buttonClass)
386
- "
387
- @click="goEventPage(conference)"
384
+ :to="getEventPage(conference)"
388
385
  >
389
- {{ getVideoButtonText(conference) }}
390
- </button>
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
- <button
398
+ <nuxt-link
396
399
  v-if="viewInfoButton"
397
- :class="
398
- classBinding(classObject, 'buttonItem', buttonClass)
399
- "
400
- @click="goEventPage(conference)"
400
+ :to="getEventPage(conference)"
401
401
  >
402
- More Info
403
- </button>
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
- <a
411
+ <nuxt-link
406
412
  v-if="mediaButton && showViewButton(conference)"
407
- :href="getVideoUrl(conference)"
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
- </a>
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
- <a
441
+ <nuxt-link
436
442
  v-if="registerButton && showConferenceRegButton(conference)"
437
- :href="getConferenceRegUrl(conference, registerPathPrefix)"
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
- </a>
457
+ </nuxt-link>
452
458
  </template>
453
459
  </div>
454
460
  <!-- countdown timer - right-aligned -->
@@ -22,9 +22,9 @@ export type UseEventsMethods = {
22
22
  */
23
23
  isHomePage: Ref<boolean>;
24
24
  /**
25
- * redirects to event landing page
25
+ * get path to event landing page
26
26
  */
27
- goEventPage: (conference: Conference) => void;
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 goEventPage = (conference) => {
21
+ const getEventPage = (conference) => {
22
22
  const eventPathPrefix = config.public.eventPathPrefix;
23
23
  if (eventPathPrefix) {
24
- router.push(eventPathPrefix + conference.id);
24
+ return eventPathPrefix + conference.id;
25
25
  } else {
26
- router.push(`/upcoming-events/${conference.id}`);
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
- goEventPage,
62
+ getEventPage,
63
63
  setConferenceToLoginTo,
64
64
  orderAffiliates,
65
65
  getSponsors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {