@icvdeveloper/common-module 2.5.1 → 2.6.1
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 +4 -0
- package/dist/module.json +1 -1
- package/dist/runtime/components/agenda/components/PresentationLink.vue +9 -3
- package/dist/runtime/components/core/AttendeeList.vue +3 -4
- package/dist/runtime/components/core/SvgIcon.vue +12 -0
- package/dist/runtime/components/profile/tabs/GeneralInformation.vue +1 -1
- package/dist/runtime/components/registration/AlreadyRegisteredModal.vue +2 -2
- package/dist/runtime/components/registration/RegistrationGroupSelect.vue +2 -2
- package/package.json +1 -1
- package/dist/runtime/store/user.d.ts +0 -7
- package/dist/runtime/store/user.mjs +0 -22
package/CHANGELOG.md
CHANGED
package/dist/module.json
CHANGED
|
@@ -10,7 +10,9 @@ import type {
|
|
|
10
10
|
Track,
|
|
11
11
|
TrackGroup,
|
|
12
12
|
} from "../../../models/conference";
|
|
13
|
+
import { useAuthStore } from "../../../store/auth";
|
|
13
14
|
import { usePortalStore } from "../../../store";
|
|
15
|
+
import { useTemplateConfigsStore } from "../../../store/templateConfigs";
|
|
14
16
|
import InfoLink from "./InfoLink.vue";
|
|
15
17
|
import PlayIcon from "./PlayIcon.vue";
|
|
16
18
|
import Favorite from "./Favorite.vue";
|
|
@@ -22,18 +24,19 @@ type Props = {
|
|
|
22
24
|
showInfoLink?: boolean;
|
|
23
25
|
simpleLayout?: boolean;
|
|
24
26
|
isAgenda?: boolean;
|
|
25
|
-
allowFavorites?: boolean;
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
const props = withDefaults(defineProps<Props>(), {
|
|
29
30
|
showInfoLink: true,
|
|
30
31
|
simpleLayout: false,
|
|
31
32
|
isAgenda: false,
|
|
32
|
-
allowFavorites: false,
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
const { conference, track, presentation } = toRefs(props);
|
|
36
36
|
const { data:portal } = storeToRefs(usePortalStore());
|
|
37
|
+
const { isLoggedIn } = storeToRefs(useAuthStore());
|
|
38
|
+
const { globalConfigValue } = storeToRefs(useTemplateConfigsStore());
|
|
39
|
+
|
|
37
40
|
|
|
38
41
|
const isActiveAgenda: boolean = inject('isActiveAgenda', false);
|
|
39
42
|
const isVirtual = portal.value?.is_virtual_template || false;
|
|
@@ -55,6 +58,9 @@ const {
|
|
|
55
58
|
const presentationNameClass = computed(() => {
|
|
56
59
|
return isSmallGroupedTrack(track.value) ? "text-base" : "text-lg";
|
|
57
60
|
});
|
|
61
|
+
const allowFavorites = computed(() => {
|
|
62
|
+
return globalConfigValue.value("allow_favorites");
|
|
63
|
+
});
|
|
58
64
|
</script>
|
|
59
65
|
|
|
60
66
|
<template>
|
|
@@ -140,7 +146,7 @@ const presentationNameClass = computed(() => {
|
|
|
140
146
|
|
|
141
147
|
<!-- favorites -->
|
|
142
148
|
<Favorite
|
|
143
|
-
v-if="allowFavorites &&
|
|
149
|
+
v-if="allowFavorites && isLoggedIn"
|
|
144
150
|
class="ml-1"
|
|
145
151
|
:presentation="presentation"
|
|
146
152
|
@click="handleFavoriteClick"
|
|
@@ -7,7 +7,6 @@ import { PAGE_LENGTH } from "../../models/pagination";
|
|
|
7
7
|
import { useAttendeeListStore } from "../../store/attendeeList";
|
|
8
8
|
import { useAuthStore } from "../../store/auth";
|
|
9
9
|
import { useConversationStore } from "../../store/conversations";
|
|
10
|
-
import { useUserStore } from "../../store/user";
|
|
11
10
|
import { usePusher } from "../../composables/usePusher";
|
|
12
11
|
import { useClassBinding } from "../../composables/useClassBinding";
|
|
13
12
|
import type {
|
|
@@ -33,7 +32,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
33
32
|
const { getAttendeeList, clearAttendeeList } = useAttendeeListStore();
|
|
34
33
|
const { toggleChat, createConversation } = useConversationStore();
|
|
35
34
|
|
|
36
|
-
const { currentUser } = storeToRefs(
|
|
35
|
+
const { user:currentUser } = storeToRefs(useAuthStore());
|
|
37
36
|
const { isLoggedIn } = storeToRefs(useAuthStore());
|
|
38
37
|
const { chatOpen } = storeToRefs(useConversationStore());
|
|
39
38
|
|
|
@@ -331,7 +330,7 @@ watch(isLoggedIn, () => {
|
|
|
331
330
|
"
|
|
332
331
|
>
|
|
333
332
|
<button
|
|
334
|
-
v-if="isLoggedIn && user.id !== currentUser.
|
|
333
|
+
v-if="isLoggedIn && user.id !== currentUser.uid"
|
|
335
334
|
:class="
|
|
336
335
|
classBinding(
|
|
337
336
|
classObject,
|
|
@@ -346,7 +345,7 @@ watch(isLoggedIn, () => {
|
|
|
346
345
|
<button
|
|
347
346
|
v-if="
|
|
348
347
|
isLoggedIn &&
|
|
349
|
-
user.id !== currentUser.
|
|
348
|
+
user.id !== currentUser.uid &&
|
|
350
349
|
user.online &&
|
|
351
350
|
user.video_chat
|
|
352
351
|
"
|
|
@@ -134,6 +134,18 @@ const icons: Icons = {
|
|
|
134
134
|
() => import("../../assets/svg/icon-play.svg")
|
|
135
135
|
),
|
|
136
136
|
},
|
|
137
|
+
favorite: {
|
|
138
|
+
color: "#333",
|
|
139
|
+
component: defineAsyncComponent(
|
|
140
|
+
() => import("../../assets/svg/icon-star.svg")
|
|
141
|
+
),
|
|
142
|
+
},
|
|
143
|
+
favoriteFilled: {
|
|
144
|
+
color: "#333",
|
|
145
|
+
component: defineAsyncComponent(
|
|
146
|
+
() => import("../../assets/svg/icon-star-filled.svg")
|
|
147
|
+
),
|
|
148
|
+
},
|
|
137
149
|
twitter: {
|
|
138
150
|
color: "#1CB7EB",
|
|
139
151
|
component: defineAsyncComponent(
|
|
@@ -225,7 +225,7 @@ const handleForm = () => {
|
|
|
225
225
|
<div :class="classBinding(classObject, 'fieldElement', 'mb-4')">
|
|
226
226
|
<CommonSwitchInput
|
|
227
227
|
:class-object="classObject.components?.switchInput"
|
|
228
|
-
:is-enabled="formData.video_chat"
|
|
228
|
+
:is-enabled="!!formData.video_chat"
|
|
229
229
|
@toggle="toggleChat"
|
|
230
230
|
>
|
|
231
231
|
Enable Video Chat
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { toRefs } from 'vue';
|
|
3
3
|
import { storeToRefs } from 'pinia';
|
|
4
4
|
import { DateTime } from 'luxon';
|
|
5
|
-
import {
|
|
5
|
+
import { useAuthStore } from "../../store/auth";
|
|
6
6
|
import { useConferencesStore } from '../../store';
|
|
7
7
|
import { useEvents } from '../../composables/useEvents';
|
|
8
8
|
import type { Conference } from '../../models/conference';
|
|
@@ -20,7 +20,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
20
20
|
|
|
21
21
|
const { conference, group, show } = toRefs(props);
|
|
22
22
|
|
|
23
|
-
const { currentUser } = storeToRefs(
|
|
23
|
+
const { user:currentUser } = storeToRefs(useAuthStore());
|
|
24
24
|
|
|
25
25
|
const { getConferenceStatusLabel } = useConferenceHelpers(conference);
|
|
26
26
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { toRefs } from 'vue';
|
|
3
3
|
import { storeToRefs } from 'pinia';
|
|
4
4
|
import { get } from 'lodash-es';
|
|
5
|
-
import {
|
|
5
|
+
import { useAuthStore } from '../../store/auth';
|
|
6
6
|
import { useTemplateConfigsStore } from '../../store/templateConfigs';
|
|
7
7
|
import type { Group } from '../../models/group';
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ const props = defineProps<Props>();
|
|
|
15
15
|
const { content } = toRefs(props);
|
|
16
16
|
|
|
17
17
|
const { globalConfigValue } = useTemplateConfigsStore();
|
|
18
|
-
const { currentUser } = storeToRefs(
|
|
18
|
+
const { user:currentUser } = storeToRefs(useAuthStore());
|
|
19
19
|
|
|
20
20
|
const emit = defineEmits<{
|
|
21
21
|
(event: "setRegForm", value: string): void;
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineStore } from "pinia";
|
|
2
|
-
import { useApi } from "../composables/useApi.mjs";
|
|
3
|
-
export const useUserStore = defineStore("user", {
|
|
4
|
-
state: () => ({
|
|
5
|
-
currentUser: {}
|
|
6
|
-
}),
|
|
7
|
-
getters: {},
|
|
8
|
-
// TODO try and combine this with store/auth user handling
|
|
9
|
-
actions: {
|
|
10
|
-
getUser() {
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
const request = useApi();
|
|
13
|
-
request(`user`, {}).then((response) => {
|
|
14
|
-
this.currentUser = response.data;
|
|
15
|
-
resolve(this.currentUser);
|
|
16
|
-
}).catch((error) => {
|
|
17
|
-
reject(error);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
});
|