@icvdeveloper/common-module 0.0.12 → 0.0.14

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
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.0.12"
7
+ "version": "0.0.14"
8
8
  }
@@ -1,6 +1,5 @@
1
1
  <script lang="ts" setup>
2
2
  import { toRefs, computed } from "vue";
3
- import { storeToRefs } from "pinia";
4
3
  import { Conference } from "../../models/conference";
5
4
  import { useTemplateConfigsStore } from "../../store/templateConfigs";
6
5
  import { useConferencesStore } from "../../store/conferences";
@@ -13,8 +12,9 @@ interface Props {
13
12
 
14
13
  // Component Props
15
14
  const props = withDefaults(defineProps<Props>(), {
16
- useEventText: true,
17
- conference: undefined,
15
+ useEventText: () =>
16
+ useTemplateConfigsStore().pagesConfigValue("main.use_event_text"),
17
+ conference: () => useConferencesStore().currentConference,
18
18
  });
19
19
 
20
20
  // stores
@@ -24,12 +24,6 @@ const { globalConfigValue, pagesConfigValue } = useTemplateConfigsStore();
24
24
  // reactive data
25
25
  const { useEventText, conference } = toRefs(props);
26
26
 
27
- // default to current conference
28
- if (!conference.value) {
29
- conference.value = conferenceStore.currentConference;
30
- useEventText.value = pagesConfigValue("main.use_event_text");
31
- }
32
-
33
27
  // helper functions
34
28
  const {
35
29
  getConferenceDisplayDate,
@@ -1,7 +1,14 @@
1
+ import { toRefs, ref } from "vue";
1
2
  import { format } from "date-fns";
2
3
  import { get, find } from "lodash-es";
3
4
  import { storeToRefs } from "pinia";
5
+ import { useRoute } from "vue-router";
4
6
  import { ConferenceState } from "../models/conference.mjs";
7
+ import {
8
+ useTemplateConfigsStore,
9
+ useConferencesStore,
10
+ useAuthStore
11
+ } from "../store";
5
12
  import { useDateFormat } from "./useDateFormat.mjs";
6
13
  const getConferenceConfigMainValue = (_conference, _name) => {
7
14
  const configPages = get(_conference, "template_config.config.pages", []);
@@ -0,0 +1,7 @@
1
+ export * from "./affiliates";
2
+ export * from "./auth";
3
+ export * from "./conferences";
4
+ export * from "./navigationConfig";
5
+ export * from "./portal";
6
+ export * from "./support";
7
+ export * from "./templateConfigs";
@@ -0,0 +1,7 @@
1
+ export * from "./affiliates.mjs";
2
+ export * from "./auth.mjs";
3
+ export * from "./conferences.mjs";
4
+ export * from "./navigationConfig.mjs";
5
+ export * from "./portal.mjs";
6
+ export * from "./support.mjs";
7
+ export * from "./templateConfigs.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {