@icvdeveloper/common-module 0.0.116 → 0.0.118
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
|
@@ -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;
|
package/dist/runtime/plugin.mjs
CHANGED
|
@@ -78,10 +78,13 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
78
78
|
} else {
|
|
79
79
|
presentationsStore.selectedPresentation = null;
|
|
80
80
|
}
|
|
81
|
-
console.log("to", to);
|
|
82
|
-
console.log("navigation", navigation.value);
|
|
83
81
|
if (!docSubtitle && to.name != "index") {
|
|
84
|
-
let navObj = find(
|
|
82
|
+
let navObj = find(
|
|
83
|
+
navigation.value,
|
|
84
|
+
function(nav) {
|
|
85
|
+
return nav.slug == to.name || nav.url == to.path;
|
|
86
|
+
}
|
|
87
|
+
);
|
|
85
88
|
if (navObj) {
|
|
86
89
|
docSubtitle += `${navObj.label}`;
|
|
87
90
|
} else {
|