@saooti/octopus-sdk 32.0.2 → 32.0.3
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/README.md +4 -1
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/assets/multiselect.scss +11 -0
- package/src/components/display/comments/AddCommentModal.vue +1 -3
- package/src/components/display/comments/CommentInput.vue +14 -30
- package/src/components/display/comments/CommentItem.vue +5 -12
- package/src/components/display/comments/CommentList.vue +7 -14
- package/src/components/display/comments/CommentPlayer.vue +1 -4
- package/src/components/display/edit/EditCommentBox.vue +1 -1
- package/src/components/display/emission/EmissionChooser.vue +4 -18
- package/src/components/display/emission/EmissionInlineList.vue +1 -6
- package/src/components/display/emission/EmissionItem.vue +3 -10
- package/src/components/display/emission/EmissionList.vue +6 -13
- package/src/components/display/emission/EmissionPlayerItem.vue +3 -11
- package/src/components/display/filter/AdvancedSearch.vue +5 -13
- package/src/components/display/filter/RubriqueFilter.vue +1 -3
- package/src/components/display/list/ListPaginate.vue +1 -6
- package/src/components/display/live/LiveItem.vue +6 -17
- package/src/components/display/live/LiveList.vue +12 -16
- package/src/components/display/organisation/OrganisationChooser.vue +2 -6
- package/src/components/display/organisation/OrganisationChooserLight.vue +1 -5
- package/src/components/display/participant/ParticipantItem.vue +4 -9
- package/src/components/display/participant/ParticipantList.vue +1 -3
- package/src/components/display/playlist/PlaylistItem.vue +6 -16
- package/src/components/display/playlist/PlaylistList.vue +2 -5
- package/src/components/display/playlist/PodcastList.vue +3 -7
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +2 -9
- package/src/components/display/podcasts/AnimatorsItem.vue +1 -1
- package/src/components/display/podcasts/ParticipantDescription.vue +1 -1
- package/src/components/display/podcasts/PodcastFilterList.vue +1 -1
- package/src/components/display/podcasts/PodcastImage.vue +12 -25
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +2 -8
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +2 -2
- package/src/components/display/podcasts/PodcastItem.vue +2 -5
- package/src/components/display/podcasts/PodcastItemInfo.vue +2 -7
- package/src/components/display/podcasts/PodcastList.vue +5 -13
- package/src/components/display/podcasts/PodcastModuleBox.vue +7 -22
- package/src/components/display/podcasts/PodcastPlayBar.vue +3 -4
- package/src/components/display/podcasts/PodcastSwiperList.vue +1 -3
- package/src/components/display/rubriques/RubriqueChooser.vue +4 -15
- package/src/components/display/rubriques/RubriqueList.vue +2 -2
- package/src/components/display/sharing/QrCode.vue +1 -1
- package/src/components/display/sharing/ShareDistribution.vue +26 -95
- package/src/components/display/sharing/SharePlayer.vue +6 -14
- package/src/components/display/sharing/SharePlayerTypes.vue +1 -1
- package/src/components/display/sharing/SubscribeButtons.vue +2 -4
- package/src/components/form/ClassicSearch.vue +2 -2
- package/src/components/form/ClassicSelect.vue +1 -1
- package/src/components/misc/Footer.vue +2 -2
- package/src/components/misc/LeftMenu.vue +3 -3
- package/src/components/misc/TopBar.vue +7 -11
- package/src/components/misc/modal/NewsletterModal.vue +3 -5
- package/src/components/misc/player/Player.vue +1 -1
- package/src/components/misc/player/PlayerCompact.vue +1 -1
- package/src/components/misc/player/PlayerTimeline.vue +0 -5
- package/src/components/pages/Emission.vue +14 -33
- package/src/components/pages/Emissions.vue +6 -15
- package/src/components/pages/Home.vue +1 -4
- package/src/components/pages/Lives.vue +3 -11
- package/src/components/pages/PageNotFound.vue +2 -2
- package/src/components/pages/Participant.vue +8 -23
- package/src/components/pages/Participants.vue +3 -6
- package/src/components/pages/Playlist.vue +6 -12
- package/src/components/pages/Playlists.vue +2 -3
- package/src/components/pages/Podcast.vue +15 -51
- package/src/components/pages/Podcasts.vue +7 -16
- package/src/components/pages/Search.vue +3 -6
|
@@ -161,15 +161,9 @@ export default defineComponent({
|
|
|
161
161
|
},
|
|
162
162
|
emissionMainCategory(): number {
|
|
163
163
|
if(!this.podcast){return 0;}
|
|
164
|
-
if (
|
|
165
|
-
this.podcast.emission.annotations &&
|
|
166
|
-
this.podcast.emission.annotations.mainIabId
|
|
167
|
-
) {
|
|
164
|
+
if (this.podcast.emission.annotations?.mainIabId) {
|
|
168
165
|
return parseInt((this.podcast.emission.annotations.mainIabId as string), 10);
|
|
169
|
-
} else if (
|
|
170
|
-
this.podcast.emission.iabIds &&
|
|
171
|
-
this.podcast.emission.iabIds.length
|
|
172
|
-
) {
|
|
166
|
+
} else if (this.podcast.emission.iabIds?.length) {
|
|
173
167
|
return this.podcast.emission.iabIds[0];
|
|
174
168
|
}
|
|
175
169
|
return 0;
|
|
@@ -178,8 +172,7 @@ export default defineComponent({
|
|
|
178
172
|
if ('undefined' === typeof this.podcast) return [];
|
|
179
173
|
return this.$store.state.categories
|
|
180
174
|
.filter((item: Category) => {
|
|
181
|
-
return ( this.podcast &&
|
|
182
|
-
this.podcast.emission.iabIds &&
|
|
175
|
+
return ( this.podcast?.emission.iabIds &&
|
|
183
176
|
-1 !== this.podcast.emission.iabIds.indexOf(item.id)
|
|
184
177
|
);
|
|
185
178
|
})
|
|
@@ -190,34 +183,19 @@ export default defineComponent({
|
|
|
190
183
|
});
|
|
191
184
|
},
|
|
192
185
|
editRight(): boolean {
|
|
193
|
-
|
|
194
|
-
(this.authenticated &&
|
|
195
|
-
this.myOrganisationId === this.podcast.organisation.id) ||
|
|
196
|
-
state.generalParameters.isAdmin
|
|
197
|
-
){
|
|
198
|
-
return true;
|
|
199
|
-
}
|
|
200
|
-
return false;
|
|
186
|
+
return (true ===this.authenticated &&this.myOrganisationId === this.podcast?.organisation.id) ||true===state.generalParameters.isAdmin;
|
|
201
187
|
},
|
|
202
188
|
countLink(): number {
|
|
189
|
+
const platformShare = ['amazon','googlePodcasts','applePodcast', 'deezer', 'spotify', 'tunein',
|
|
190
|
+
'radioline', 'podcastAddict', 'playerFm', 'stitcher', 'pocketCasts'];
|
|
203
191
|
let count = 0;
|
|
204
|
-
|
|
205
|
-
if (undefined !== this.podcast
|
|
206
|
-
if (undefined !== this.podcast.emission.annotations.googlePodcasts) count++;
|
|
207
|
-
if (undefined !== this.podcast.emission.annotations.applePodcast)count++;
|
|
208
|
-
if (undefined !== this.podcast.emission.annotations.deezer) count++;
|
|
209
|
-
if (undefined !== this.podcast.emission.annotations.spotify) count++;
|
|
210
|
-
if (undefined !== this.podcast.emission.annotations.tunein) count++;
|
|
211
|
-
if (undefined !== this.podcast.emission.annotations.radioline) count++;
|
|
212
|
-
if (undefined !== this.podcast.emission.annotations.podcastAddict) count++;
|
|
213
|
-
if (undefined !== this.podcast.emission.annotations.playerFm) count++;
|
|
214
|
-
if (undefined !== this.podcast.emission.annotations.stitcher) count++;
|
|
215
|
-
if (undefined !== this.podcast.emission.annotations.pocketCasts) count++;
|
|
192
|
+
for (let i = 0, len = platformShare.length; i < len; i++) {
|
|
193
|
+
if (undefined !== this.podcast?.emission?.annotations?.[platformShare[i]]) count++;
|
|
216
194
|
}
|
|
217
195
|
return count;
|
|
218
196
|
},
|
|
219
197
|
isLiveReadyToRecord(): boolean {
|
|
220
|
-
return (undefined!==this.podcast
|
|
198
|
+
return (undefined!==this.podcast?.conferenceId && 0 !== this.podcast?.conferenceId && 'READY_TO_RECORD' === this.podcast?.processingStatus);
|
|
221
199
|
},
|
|
222
200
|
isCounter(): boolean {
|
|
223
201
|
return (
|
|
@@ -242,12 +220,10 @@ export default defineComponent({
|
|
|
242
220
|
);
|
|
243
221
|
},
|
|
244
222
|
titlePage(): string {
|
|
245
|
-
|
|
246
|
-
return this.$t('Episode').toString();
|
|
223
|
+
return this.isLiveReadyToRecord ?this.$t('Live episode'): this.$t('Episode');
|
|
247
224
|
},
|
|
248
225
|
timeRemaining(): string {
|
|
249
|
-
|
|
250
|
-
return moment(this.podcast.pubDate).diff(moment(), 'seconds').toString();
|
|
226
|
+
return !this.podcast ? "":moment(this.podcast.pubDate).diff(moment(), 'seconds').toString();
|
|
251
227
|
},
|
|
252
228
|
},
|
|
253
229
|
watch: {
|
|
@@ -297,26 +273,14 @@ export default defineComponent({
|
|
|
297
273
|
},
|
|
298
274
|
handleAnnotations(){
|
|
299
275
|
if(!this.podcast){return;}
|
|
300
|
-
if (
|
|
301
|
-
this.podcast.emission.annotations
|
|
302
|
-
this.podcast.emission.annotations.exclusive
|
|
303
|
-
) {
|
|
304
|
-
this.exclusive =
|
|
305
|
-
'true' === this.podcast.emission.annotations.exclusive
|
|
306
|
-
? true
|
|
307
|
-
: false;
|
|
276
|
+
if (this.podcast.emission.annotations?.exclusive) {
|
|
277
|
+
this.exclusive ='true' === this.podcast.emission.annotations.exclusive;
|
|
308
278
|
this.exclusive =
|
|
309
279
|
this.exclusive &&
|
|
310
280
|
this.myOrganisationId !== this.podcast.organisation.id;
|
|
311
281
|
}
|
|
312
|
-
if (
|
|
313
|
-
this.podcast.emission.annotations
|
|
314
|
-
this.podcast.emission.annotations.notExclusive
|
|
315
|
-
) {
|
|
316
|
-
this.notExclusive =
|
|
317
|
-
'true' === this.podcast.emission.annotations.notExclusive
|
|
318
|
-
? true
|
|
319
|
-
: false;
|
|
282
|
+
if (this.podcast.emission.annotations?.notExclusive) {
|
|
283
|
+
this.notExclusive ='true' === this.podcast.emission.annotations.notExclusive;
|
|
320
284
|
}
|
|
321
285
|
},
|
|
322
286
|
async getPodcastDetails(): Promise<void> {
|
|
@@ -110,23 +110,14 @@ export default defineComponent({
|
|
|
110
110
|
|
|
111
111
|
computed: {
|
|
112
112
|
titleDisplay(): string{
|
|
113
|
-
|
|
114
|
-
return this.$t('All podcasts');
|
|
115
|
-
}
|
|
116
|
-
return state.podcastsPage.titlePage;
|
|
113
|
+
return state.podcastsPage.titlePage ?? this.$t('All podcasts');
|
|
117
114
|
},
|
|
118
115
|
organisationRight(): boolean {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
state.generalParameters.isAdmin
|
|
122
|
-
)
|
|
123
|
-
return true;
|
|
124
|
-
return false;
|
|
116
|
+
return (true===this.authenticated && this.myOrganisationId === this.organisationId) ||
|
|
117
|
+
true===state.generalParameters.isAdmin;
|
|
125
118
|
},
|
|
126
119
|
organisation(): string|undefined {
|
|
127
|
-
|
|
128
|
-
if (this.filterOrga) return this.filterOrga;
|
|
129
|
-
return undefined;
|
|
120
|
+
return this.organisationId ?? this.filterOrga;
|
|
130
121
|
},
|
|
131
122
|
pageParameters(){
|
|
132
123
|
return {
|
|
@@ -142,10 +133,10 @@ export default defineComponent({
|
|
|
142
133
|
|
|
143
134
|
methods: {
|
|
144
135
|
initPodcastsPage(){
|
|
145
|
-
this.searchPattern = this.searchInit
|
|
146
|
-
this.organisationId = this.productor
|
|
136
|
+
this.searchPattern = this.searchInit ?? '';
|
|
137
|
+
this.organisationId = this.productor ?? this.filterOrga;
|
|
147
138
|
this.includeHidden = this.organisation && this.organisationRight ? true : false;
|
|
148
|
-
this.iabId =
|
|
139
|
+
this.iabId =this.$store.state.filter.iab?.id;
|
|
149
140
|
if(this.$store.state.filter.rubriqueFilter.length){
|
|
150
141
|
this.updateRubriquageFilter(this.$store.state.filter.rubriqueFilter);
|
|
151
142
|
}
|
|
@@ -43,14 +43,11 @@ export default defineComponent({
|
|
|
43
43
|
if(!this.hideBar){
|
|
44
44
|
return this.$t('Podcast search');
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
return this.$t('Search - no results', { query: this.rawQuery });
|
|
46
|
+
const locale = !this.noResult ? 'Search results' : 'Search - no results';
|
|
47
|
+
return this.$t(locale, { query: this.rawQuery });
|
|
50
48
|
},
|
|
51
49
|
query(): string {
|
|
52
|
-
|
|
53
|
-
return '';
|
|
50
|
+
return this.rawQuery && this.rawQuery.length >= 3 ? this.rawQuery : '';
|
|
54
51
|
},
|
|
55
52
|
hideBar(): boolean {
|
|
56
53
|
return (state.searchPage.hideBar as boolean);
|