@saooti/octopus-sdk 36.0.20 → 36.0.21
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/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import { playerComment } from './playerComment';
|
|
|
6
6
|
import { playerTranscript } from './playerTranscript';
|
|
7
7
|
import { defineComponent } from 'vue';
|
|
8
8
|
import { useAuthStore } from '@/stores/AuthStore';
|
|
9
|
+
import { useGeneralStore } from '@/stores/GeneralStore';
|
|
9
10
|
import { usePlayerStore } from '@/stores/PlayerStore';
|
|
10
11
|
import { mapState, mapActions } from 'pinia';
|
|
11
12
|
export const playerLogic = defineComponent({
|
|
@@ -30,6 +31,7 @@ export const playerLogic = defineComponent({
|
|
|
30
31
|
},
|
|
31
32
|
computed: {
|
|
32
33
|
...mapState(useAuthStore, ['authOrgaId', 'authParam']),
|
|
34
|
+
...mapState(useGeneralStore, ['consentTcf']),
|
|
33
35
|
...mapState(usePlayerStore, [
|
|
34
36
|
'playerPodcast',
|
|
35
37
|
'playerMedia',
|
|
@@ -146,6 +148,10 @@ export const playerLogic = defineComponent({
|
|
|
146
148
|
'distributorId=' + this.authOrgaId
|
|
147
149
|
);
|
|
148
150
|
}
|
|
151
|
+
if(this.consentTcf){
|
|
152
|
+
parameters.push('consent='+this.consentTcf);
|
|
153
|
+
}
|
|
154
|
+
|
|
149
155
|
if("SECURED" === this.playerPodcast.organisation.privacy && this.authParam.accessToken){
|
|
150
156
|
parameters.push('access_token='+this.authParam.accessToken);
|
|
151
157
|
}
|
package/src/main.ts
CHANGED
|
@@ -51,11 +51,10 @@ paramStore.initialize({
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const pinia = createPinia();
|
|
54
|
-
|
|
54
|
+
const app = createApp(App);
|
|
55
55
|
// Initialisation store
|
|
56
|
-
|
|
57
|
-
.use(i18n)
|
|
56
|
+
app.use(i18n)
|
|
58
57
|
.use(pinia)
|
|
59
58
|
.use(router)
|
|
60
|
-
.use(VueLazyLoad)
|
|
61
|
-
.mount('#app');
|
|
59
|
+
.use(VueLazyLoad);
|
|
60
|
+
app.mount('#app');
|
|
@@ -8,6 +8,7 @@ interface GeneralState{
|
|
|
8
8
|
storedCategories: Array<Category>;
|
|
9
9
|
storedCategoriesOrga: Array<Category>;
|
|
10
10
|
isBeforeLive: boolean;
|
|
11
|
+
consentTcf: string|null;
|
|
11
12
|
}
|
|
12
13
|
export const useGeneralStore = defineStore('GeneralStore', {
|
|
13
14
|
state: (): GeneralState => ({
|
|
@@ -17,6 +18,7 @@ export const useGeneralStore = defineStore('GeneralStore', {
|
|
|
17
18
|
storedCategories: [],
|
|
18
19
|
storedCategoriesOrga: [],
|
|
19
20
|
isBeforeLive: true,
|
|
21
|
+
consentTcf: null,
|
|
20
22
|
}),
|
|
21
23
|
actions:{
|
|
22
24
|
storedUpdateCategories(categories: Array<Category>) {
|
|
@@ -28,6 +30,9 @@ export const useGeneralStore = defineStore('GeneralStore', {
|
|
|
28
30
|
isBeforeLiveUpdate(isBeforeLive: boolean) {
|
|
29
31
|
this.isBeforeLive = isBeforeLive;
|
|
30
32
|
},
|
|
33
|
+
consentTcfUpdate(consentTcf: string|null) {
|
|
34
|
+
this.consentTcf = consentTcf;
|
|
35
|
+
},
|
|
31
36
|
platformUpdateEducation(isEducation: boolean) {
|
|
32
37
|
this.platformEducation = isEducation;
|
|
33
38
|
if(isEducation){
|