@saooti/octopus-sdk 37.1.1 → 38.0.0
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 +1 -1
- package/src/components/display/sharing/SharePlayer.vue +3 -1
- package/src/components/display/sharing/SharePlayerTypes.vue +17 -0
- package/src/components/pages/HomePage.vue +22 -8
- package/src/locale/de.ts +1 -0
- package/src/locale/en.ts +1 -0
- package/src/locale/es.ts +1 -0
- package/src/locale/fr.ts +1 -0
- package/src/locale/it.ts +1 -0
- package/src/locale/sl.ts +1 -0
- package/src/stores/ParamSdkStore.ts +9 -9
package/package.json
CHANGED
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
/>
|
|
28
28
|
<div class="d-flex flex-column flex-grow-1">
|
|
29
29
|
<SharePlayerTypes
|
|
30
|
-
v-if="!isLiveReadyToRecord"
|
|
31
30
|
v-model:iFrameModel="iFrameModel"
|
|
32
31
|
:podcast="podcast"
|
|
33
32
|
:emission="emission"
|
|
34
33
|
:playlist="playlist"
|
|
35
34
|
:organisation-id="organisationId"
|
|
35
|
+
:is-live="isLiveReadyToRecord"
|
|
36
36
|
/>
|
|
37
37
|
<SharePlayerColors
|
|
38
38
|
v-model:color="color"
|
|
@@ -267,6 +267,8 @@ export default defineComponent({
|
|
|
267
267
|
return "350px";
|
|
268
268
|
case "emission":
|
|
269
269
|
return "520px";
|
|
270
|
+
case "videoLive":
|
|
271
|
+
return "450px";
|
|
270
272
|
default:
|
|
271
273
|
return "530px";
|
|
272
274
|
}
|
|
@@ -37,6 +37,7 @@ export default defineComponent({
|
|
|
37
37
|
playlist: { default: undefined, type: Object as () => Playlist },
|
|
38
38
|
iFrameModel: { default: "default", type: String },
|
|
39
39
|
organisationId: { default: undefined, type: String },
|
|
40
|
+
isLive: { default: false, type: Boolean },
|
|
40
41
|
},
|
|
41
42
|
emits: ["update:iFrameModel"],
|
|
42
43
|
|
|
@@ -51,7 +52,20 @@ export default defineComponent({
|
|
|
51
52
|
undefined !== this.podcast && undefined !== this.podcast.video?.videoId
|
|
52
53
|
);
|
|
53
54
|
},
|
|
55
|
+
optionsSelectLive(){
|
|
56
|
+
return [
|
|
57
|
+
{ name: this.$t("Large version"), value: "large", condition: true },
|
|
58
|
+
{
|
|
59
|
+
name: this.$t("High version"),
|
|
60
|
+
value: "videoLive",
|
|
61
|
+
condition: this.podcast && this.podcast.podcastId,
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
},
|
|
54
65
|
optionsSelect() {
|
|
66
|
+
if(this.isLive){
|
|
67
|
+
return this.optionsSelectLive;
|
|
68
|
+
}
|
|
55
69
|
return [
|
|
56
70
|
{
|
|
57
71
|
name: this.$t("Video Version"),
|
|
@@ -100,6 +114,9 @@ export default defineComponent({
|
|
|
100
114
|
if (this.isVideoPodcast) {
|
|
101
115
|
this.$emit("update:iFrameModel", "video");
|
|
102
116
|
}
|
|
117
|
+
if(this.isLive){
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
103
120
|
await this.initCustomPlayers();
|
|
104
121
|
},
|
|
105
122
|
methods: {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<ClassicLazy
|
|
5
5
|
v-for="c in categories"
|
|
6
6
|
:key="c.id"
|
|
7
|
-
:min-height="
|
|
7
|
+
:min-height="0"
|
|
8
8
|
:unrender="true"
|
|
9
9
|
>
|
|
10
10
|
<PodcastInlineList
|
|
@@ -12,13 +12,16 @@
|
|
|
12
12
|
:title="c.name"
|
|
13
13
|
:button-text="$t('All podcast button', { name: c.name })"
|
|
14
14
|
/>
|
|
15
|
+
<template #preview>
|
|
16
|
+
<div style="min-height: 650px"></div>
|
|
17
|
+
</template>
|
|
15
18
|
</ClassicLazy>
|
|
16
19
|
</template>
|
|
17
20
|
<template v-else>
|
|
18
21
|
<ClassicLazy
|
|
19
22
|
v-for="r in rubriqueToShow"
|
|
20
23
|
:key="r.rubriqueId"
|
|
21
|
-
:min-height="
|
|
24
|
+
:min-height="0"
|
|
22
25
|
:unrender="true"
|
|
23
26
|
>
|
|
24
27
|
<PodcastInlineList
|
|
@@ -26,6 +29,9 @@
|
|
|
26
29
|
:title="r.name"
|
|
27
30
|
:button-text="$t('All podcast button', { name: r.name })"
|
|
28
31
|
/>
|
|
32
|
+
<template #preview>
|
|
33
|
+
<div style="min-height: 650px"></div>
|
|
34
|
+
</template>
|
|
29
35
|
</ClassicLazy>
|
|
30
36
|
<template v-if="rubriqueDisplay && rubriqueDisplay.length > 0">
|
|
31
37
|
<PodcastInlineList
|
|
@@ -81,7 +87,7 @@ export default defineComponent({
|
|
|
81
87
|
};
|
|
82
88
|
},
|
|
83
89
|
computed: {
|
|
84
|
-
...mapState(useGeneralStore, ["storedCategories"]),
|
|
90
|
+
...mapState(useGeneralStore, ["storedCategories", "storedCategoriesOrga"]),
|
|
85
91
|
...mapState(useFilterStore, [
|
|
86
92
|
"filterRubriquage",
|
|
87
93
|
"filterOrgaId",
|
|
@@ -121,15 +127,23 @@ export default defineComponent({
|
|
|
121
127
|
return this.filterRubrique;
|
|
122
128
|
},
|
|
123
129
|
categories(): Array<Category> {
|
|
130
|
+
let arrayCategories: Array<Category> = [];
|
|
124
131
|
if (this.filterIab) {
|
|
125
132
|
return [this.filterIab];
|
|
126
133
|
}
|
|
127
|
-
|
|
128
|
-
|
|
134
|
+
if (this.filterOrgaId) {
|
|
135
|
+
arrayCategories = this.storedCategoriesOrga.filter((c: Category) => {
|
|
129
136
|
return c.podcastOrganisationCount;
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
137
|
+
});
|
|
138
|
+
} else {
|
|
139
|
+
arrayCategories = this.storedCategories.filter((c: Category) => {
|
|
140
|
+
if (state.generalParameters.podcastmaker) return c.podcastOrganisationCount;
|
|
141
|
+
return c.podcastCount;
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
this.$emit("categoriesLength", arrayCategories.length);
|
|
145
|
+
return arrayCategories;
|
|
146
|
+
}
|
|
133
147
|
},
|
|
134
148
|
watch: {
|
|
135
149
|
rubriqueFilter: {
|
package/src/locale/de.ts
CHANGED
package/src/locale/en.ts
CHANGED
package/src/locale/es.ts
CHANGED
package/src/locale/fr.ts
CHANGED
package/src/locale/it.ts
CHANGED
package/src/locale/sl.ts
CHANGED
|
@@ -3,15 +3,15 @@ import { Category } from "./class/general/category";
|
|
|
3
3
|
|
|
4
4
|
const state: ParamStore = {
|
|
5
5
|
generalParameters: {
|
|
6
|
-
organisationId:
|
|
7
|
-
authenticated:
|
|
8
|
-
isAdmin:
|
|
9
|
-
isRoleLive:
|
|
10
|
-
isCommments:
|
|
11
|
-
isOrganisation:
|
|
12
|
-
isPlaylist:
|
|
13
|
-
isProduction:
|
|
14
|
-
isContribution:
|
|
6
|
+
organisationId: "ecbd98d9-79bd-4312-ad5e-fc7c1c4a191c",
|
|
7
|
+
authenticated: true,
|
|
8
|
+
isAdmin: true,
|
|
9
|
+
isRoleLive: true,
|
|
10
|
+
isCommments: true,
|
|
11
|
+
isOrganisation: true,
|
|
12
|
+
isPlaylist: true,
|
|
13
|
+
isProduction: true,
|
|
14
|
+
isContribution: true,
|
|
15
15
|
ApiUri: "https://api.dev2.saooti.org/",
|
|
16
16
|
podcastmaker: false,
|
|
17
17
|
buttonPlus: true,
|