@icvdeveloper/common-module 0.0.117 → 0.0.119

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.117"
4
+ "version": "0.0.119"
5
5
  }
@@ -25,6 +25,10 @@ export type UseAgendaMethods = {
25
25
  * Selected presenter
26
26
  */
27
27
  selectedPresenter: Ref<Presenter | null>;
28
+ /**
29
+ * allow logged in users to view all agendas
30
+ */
31
+ allowAgendaFullAccess: boolean;
28
32
  /**
29
33
  * Set selected day
30
34
  */
@@ -11,11 +11,12 @@ export const useAgenda = (conference) => {
11
11
  const affiliateStore = useAffiliatesStore();
12
12
  const { isLoggedIn } = storeToRefs(useAuthStore());
13
13
  const selectedDay = ref(null);
14
+ const allowAgendaFullAccess = pagesConfigValue("agenda.agendas_full_access", false);
14
15
  const displayTrackGroups = pagesConfigValue("agenda.group_tracks", "None");
15
16
  const selectedPresenter = ref(null);
16
17
  const days = computed(() => {
17
18
  const data = conference.value.days;
18
- if (isLoggedIn.value) {
19
+ if (isLoggedIn.value && !allowAgendaFullAccess) {
19
20
  remove(data, ["access", false]);
20
21
  }
21
22
  return data;
@@ -38,7 +39,7 @@ export const useAgenda = (conference) => {
38
39
  const getCombinedTrackList = (day) => {
39
40
  const trackGroups = cloneDeep(day.track_groups ?? {});
40
41
  const tracks = cloneDeep(day.tracks ?? {});
41
- if (isLoggedIn.value) {
42
+ if (isLoggedIn.value && !allowAgendaFullAccess) {
42
43
  remove(tracks, ["access", false]);
43
44
  }
44
45
  if (displayTrackGroups === "None") {
@@ -54,7 +55,7 @@ export const useAgenda = (conference) => {
54
55
  trackGroups.forEach((trackGroup) => {
55
56
  duplicateTracks = intersectionBy(tracks, trackGroup.tracks, "id");
56
57
  pullAllBy(tracks, duplicateTracks, "id");
57
- if (isLoggedIn.value) {
58
+ if (isLoggedIn.value && !allowAgendaFullAccess) {
58
59
  remove(trackGroup.tracks, ["access", false]);
59
60
  }
60
61
  trackGroup.tracks.sort((trackA, trackB) => {
@@ -37,6 +37,7 @@ export type AgendaPlayerPageConfigs = {
37
37
  session_times: ToggleVariable;
38
38
  session_desc_link: SelectVariable;
39
39
  session_desc_link_text: TextVariable;
40
+ agendas_full_access: ToggleVariable;
40
41
  tab_dates: ToggleVariable;
41
42
  use_accordion: ToggleVariable;
42
43
  use_presenter_modal: ToggleVariable;
@@ -38,8 +38,7 @@ export default defineNuxtPlugin((nuxtApp) => {
38
38
  const text = div.textContent || div.innerText || "";
39
39
  return text;
40
40
  };
41
- let docTitle = "Rubicon";
42
- let docSubtitle = "";
41
+ let docTitle = "";
43
42
  let routeArray = to.name.toLowerCase().split("-");
44
43
  if (portal.value === null) {
45
44
  Promise.all([
@@ -53,15 +52,13 @@ export default defineNuxtPlugin((nuxtApp) => {
53
52
  // wait for get conferences to complete, then get current conference data.
54
53
  await conferencesStore.getCurrentConference().then(() => NProgress.inc())
55
54
  ]);
56
- } else {
57
- docTitle = portal.value.name;
58
55
  }
59
56
  if (to.name.includes("events-id") && to.params.id) {
60
57
  await conferencesStore.getSelectedConference(to.params.id).then(() => {
61
58
  if (conferencesStore.selectedConference) {
62
- docSubtitle = `${conferencesStore.selectedConference.name}`;
59
+ docTitle = `${conferencesStore.selectedConference.name}`;
63
60
  if (to.name.includes("webcast-channelid")) {
64
- docSubtitle += ` - Live Webcast`;
61
+ docTitle += ` | Live Webcast`;
65
62
  }
66
63
  }
67
64
  NProgress.inc();
@@ -72,32 +69,33 @@ export default defineNuxtPlugin((nuxtApp) => {
72
69
  if (to.params.presid) {
73
70
  await presentationsStore.getSelectedPresentation(to.params.presid).then(() => {
74
71
  if (conferencesStore.selectedConference) {
75
- docSubtitle = `${presentationsStore.selectedPresentation.name}`;
72
+ docTitle = `${presentationsStore.selectedPresentation.name}`;
76
73
  }
77
74
  });
78
75
  } else {
79
76
  presentationsStore.selectedPresentation = null;
80
77
  }
81
- if (!docSubtitle && to.name != "index") {
82
- let navObj = find(
83
- navigation.value,
84
- function(nav) {
85
- return nav.slug == to.name || nav.url == to.path;
86
- }
87
- );
88
- if (navObj) {
89
- docSubtitle += `${navObj.label}`;
90
- } else {
91
- let routeName = routeArray.map(
92
- function(word) {
93
- return word.charAt(0).toUpperCase() + word.slice(1);
78
+ if (!docTitle && portal.value) {
79
+ docTitle = portal.value.name;
80
+ if (to.name != "index") {
81
+ let navObj = find(
82
+ navigation.value,
83
+ function(nav) {
84
+ return nav.slug == to.name || nav.url == to.path;
94
85
  }
95
- ).join(" ");
96
- docSubtitle += `${routeName}`;
86
+ );
87
+ if (navObj) {
88
+ docTitle += ` | ${navObj.label}`;
89
+ } else {
90
+ let routeName = routeArray.map(
91
+ function(word) {
92
+ return word.charAt(0).toUpperCase() + word.slice(1);
93
+ }
94
+ ).join(" ");
95
+ docTitle += ` | ${routeName}`;
96
+ }
97
97
  }
98
98
  }
99
- if (docSubtitle)
100
- docTitle += ` | ${docSubtitle}`;
101
99
  document.title = docTitle;
102
100
  let canonicalUrl = "https://" + portal.value.domain + to.path;
103
101
  if (document.querySelector("link[rel='canonical']")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "0.0.117",
3
+ "version": "0.0.119",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {