@icvdeveloper/common-module 0.0.78 → 0.0.80

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "0.0.78"
4
+ "version": "0.0.80"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { toRefs } from "vue";
2
+ import { ref, toRefs } from "vue";
3
3
  import { add } from "date-fns";
4
4
  import type { Conference } from "../../models/conference";
5
5
  import { useAgenda } from "../../composables/useAgenda";
@@ -1,10 +1,12 @@
1
1
  <script lang="ts" setup>
2
- import { toRefs } from "vue";
2
+ import { ref, toRefs } from "vue";
3
3
  import { storeToRefs } from "pinia";
4
4
  import { useRoute } from "vue-router";
5
5
  import { useClassBinding } from "../../composables/useClassBinding";
6
6
  import { Conference, Presentation } from "../../models/conference";
7
7
  import { SelectedContent } from "../../enums/general";
8
+ import { usePresentationsStore } from "../../store/presentations";
9
+ import { useAuthStore } from "../../store/auth";
8
10
  import {
9
11
  PlayerAndContentClassObj,
10
12
  PlayerAndContentCompObj,
@@ -55,7 +57,7 @@ const { isLoggedIn } = storeToRefs(useAuthStore());
55
57
  // computed
56
58
 
57
59
  const isStreamTest = computed((): boolean => {
58
- return String(route.value.name).includes("stream-test");
60
+ return route.value.params.channelid === "stream-test";
59
61
  });
60
62
 
61
63
  const hasAccess = computed((): boolean => {
@@ -6,6 +6,7 @@ import { Conference } from "../../../models/conference";
6
6
  import { ContentTabsClassObject } from "../../../@types/components";
7
7
  import { SelectedContent } from "../../../enums/general";
8
8
  import { useClassBinding } from "../../../composables/useClassBinding";
9
+ import { usePresentationsStore } from "../../../store/presentations";
9
10
 
10
11
  type Props = {
11
12
  items?: Array<{ label: string; type: SelectedContent; content: string }>;
@@ -10,7 +10,7 @@ import { useV3plusCommonModule } from "../../../composables/useV3plusCommonModul
10
10
  import { useStream } from "../../../composables/useStream";
11
11
  import { useClassBinding } from "../../../composables/useClassBinding";
12
12
 
13
- const commonModule = useV3plusCommonModule();
13
+ const config = useRuntimeConfig();
14
14
 
15
15
  type Props = {
16
16
  webcastConference: Conference;
@@ -37,9 +37,13 @@ const emit = defineEmits<{
37
37
  (event: string, value: Presentation): void;
38
38
  }>();
39
39
 
40
+ console.log(
41
+ config.public.awsDefaultRegion + ", " + config.public.resourcePrefix
42
+ );
43
+
40
44
  const { currentStreamData, currentPresentation } = useStream(
41
- "us-west-2",
42
- "staging",
45
+ config.public.awsDefaultRegion,
46
+ config.public.resourcePrefix,
43
47
  Number(webcastConference.value.id),
44
48
  emit
45
49
  );
@@ -2,6 +2,7 @@ import { ref, unref } from "vue";
2
2
  import { storeToRefs } from "pinia";
3
3
  import { useRoute } from "vue-router";
4
4
  import { isEqual } from "lodash-es";
5
+ import { usePresentationsStore } from "../store/presentations.mjs";
5
6
  export const useStream = (_region, _prefix, _confId, _callback) => {
6
7
  const region = unref(_region);
7
8
  const prefix = unref(_prefix);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {