@saooti/octopus-sdk 32.0.1 → 32.0.4
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 +6 -1
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/assets/bootstrap-diff.scss +1 -0
- 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 +10 -18
- 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/ShareButtons.vue +4 -0
- package/src/components/display/sharing/ShareButtonsIntern.vue +5 -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 +140 -128
- 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 +7 -13
- 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
- package/public/img/article.png +0 -0
package/README.md
CHANGED
|
@@ -637,7 +637,12 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
637
637
|
* 31.0.44 Début CRUD API
|
|
638
638
|
* 31.0.45 Live
|
|
639
639
|
* 31.0.46 Pb css
|
|
640
|
-
|
|
640
|
+
* 31.0.47 Pétouilles Css multiselect
|
|
641
|
+
* 31.0.48 Icones change
|
|
641
642
|
|
|
642
643
|
* 32.0.0 Passage en 32
|
|
643
644
|
* 32.0.1 Navigation clavier
|
|
645
|
+
* 32.0.2 Newsletter pour emission & playlist
|
|
646
|
+
* 32.0.3 Améliorations multiples
|
|
647
|
+
* 32.0.4 Correction erreur
|
|
648
|
+
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -59,7 +59,6 @@ export default defineComponent({
|
|
|
59
59
|
},
|
|
60
60
|
async created(){
|
|
61
61
|
await this.initApp();
|
|
62
|
-
this.isInit =true;
|
|
63
62
|
},
|
|
64
63
|
methods:{
|
|
65
64
|
async initApp(){
|
|
@@ -67,6 +66,7 @@ export default defineComponent({
|
|
|
67
66
|
await this.handleOrganisationFilter();
|
|
68
67
|
this.handleIabIdFilter();
|
|
69
68
|
this.handleRubriquesFilter();
|
|
69
|
+
this.isInit =true;
|
|
70
70
|
},
|
|
71
71
|
async handleOrganisationFilter(){
|
|
72
72
|
let orgaId = '';
|
|
@@ -10,9 +10,20 @@
|
|
|
10
10
|
.multiselect__tags, .multiselect__input, .multiselect__single{
|
|
11
11
|
background: transparent !important;
|
|
12
12
|
}
|
|
13
|
+
.multiselect__tags-wrap{
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
13
17
|
.multiselect__tags{
|
|
14
18
|
border: 0;
|
|
15
19
|
padding-left: 0;
|
|
20
|
+
padding-top: 0;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
.multiselect__tag{
|
|
25
|
+
margin-bottom: 0;
|
|
26
|
+
border: 1px gray solid;
|
|
16
27
|
}
|
|
17
28
|
}
|
|
18
29
|
|
|
@@ -81,9 +81,7 @@ export default defineComponent({
|
|
|
81
81
|
},
|
|
82
82
|
computed: {
|
|
83
83
|
errorText():string {
|
|
84
|
-
|
|
85
|
-
if(this.sendError) return this.$t('Recaptcha error');
|
|
86
|
-
return '';
|
|
84
|
+
return this.isCaptchaTest ? this.$t('Recaptcha not active') : this.sendError? this.$t('Recaptcha error') : '';
|
|
87
85
|
},
|
|
88
86
|
validName(): boolean{
|
|
89
87
|
return this.countName <= this.maxName;
|
|
@@ -146,37 +146,21 @@ export default defineComponent({
|
|
|
146
146
|
},
|
|
147
147
|
isPresent(): boolean {
|
|
148
148
|
if (!this.podcast) return true;
|
|
149
|
-
let podcastComment = 'INHERIT';
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
let organisationComment = 'LIVE_ONLY';
|
|
154
|
-
if (this.podcast.organisation.comments) {
|
|
155
|
-
organisationComment = this.podcast.organisation.comments;
|
|
156
|
-
}
|
|
157
|
-
if (
|
|
158
|
-
('LIVE_ONLY' === podcastComment &&
|
|
149
|
+
let podcastComment = this.podcast.annotations?.COMMENTS ?? 'INHERIT';
|
|
150
|
+
let organisationComment = this.podcast.organisation.comments??'LIVE_ONLY';
|
|
151
|
+
return !(('LIVE_ONLY' === podcastComment &&
|
|
159
152
|
'READY_TO_RECORD' !== this.podcast.processingStatus) ||
|
|
160
153
|
('INHERIT' === podcastComment &&
|
|
161
154
|
'LIVE_ONLY' === organisationComment &&
|
|
162
|
-
'READY_TO_RECORD' !== this.podcast.processingStatus)
|
|
163
|
-
) {
|
|
164
|
-
return false;
|
|
165
|
-
}
|
|
166
|
-
return true;
|
|
155
|
+
'READY_TO_RECORD' !== this.podcast.processingStatus));
|
|
167
156
|
},
|
|
168
157
|
placeholder(): string {
|
|
169
|
-
return this.comment
|
|
158
|
+
return this.comment?.comId? this.$t('Answer a comment') : this.$t('Write a comment');
|
|
170
159
|
},
|
|
171
160
|
isCertified(): boolean {
|
|
172
|
-
|
|
173
|
-
(state.generalParameters.isCommments &&
|
|
161
|
+
return (true === state.generalParameters.isCommments &&
|
|
174
162
|
state.generalParameters.organisationId === this.podcastOrga) ||
|
|
175
|
-
state.generalParameters.isAdmin
|
|
176
|
-
){
|
|
177
|
-
return true;
|
|
178
|
-
}
|
|
179
|
-
return false;
|
|
163
|
+
true === state.generalParameters.isAdmin;
|
|
180
164
|
},
|
|
181
165
|
userId(): string|undefined {
|
|
182
166
|
return state.generalParameters.authenticated ? this.$store.state.profile.userId : undefined;
|
|
@@ -200,8 +184,8 @@ export default defineComponent({
|
|
|
200
184
|
return 'Live';
|
|
201
185
|
},
|
|
202
186
|
podcastOrga(): string|undefined{
|
|
203
|
-
const commentOrga = this.comment
|
|
204
|
-
return this.podcast
|
|
187
|
+
const commentOrga = this.comment?.organisationId ??'';
|
|
188
|
+
return this.podcast?.organisation.id ?? commentOrga;
|
|
205
189
|
}
|
|
206
190
|
},
|
|
207
191
|
watch: {
|
|
@@ -273,15 +257,15 @@ export default defineComponent({
|
|
|
273
257
|
this.setCookie('comment-octopus-name', name);
|
|
274
258
|
this.$emit('update:knownIdentity', name);
|
|
275
259
|
}
|
|
276
|
-
const sendName = name
|
|
277
|
-
const commentPodcastId = this.comment
|
|
260
|
+
const sendName = name??this.knownIdentity;
|
|
261
|
+
const commentPodcastId = this.comment?.podcastId ?? 0;
|
|
278
262
|
const comment: CommentPodcast = {
|
|
279
263
|
content: this.newComment,
|
|
280
|
-
name: sendName
|
|
281
|
-
podcastId: this.podcast
|
|
264
|
+
name: sendName ??'',
|
|
265
|
+
podcastId: this.podcast?.podcastId ?? commentPodcastId,
|
|
282
266
|
timeline: this.defineTimelineValue(),
|
|
283
267
|
organisationId: this.podcastOrga,
|
|
284
|
-
commentIdReferer:
|
|
268
|
+
commentIdReferer:this.comment?.comId,
|
|
285
269
|
certified: this.isCertified,
|
|
286
270
|
userId: this.userId,
|
|
287
271
|
phase: this.phase,
|
|
@@ -192,16 +192,10 @@ export default defineComponent({
|
|
|
192
192
|
return state.generalParameters.organisationId;
|
|
193
193
|
},
|
|
194
194
|
editRight(): boolean {
|
|
195
|
-
|
|
196
|
-
(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
this.myOrganisationId === this.organisation)) ||
|
|
200
|
-
state.generalParameters.isAdmin
|
|
201
|
-
){
|
|
202
|
-
return true;
|
|
203
|
-
}
|
|
204
|
-
return false;
|
|
195
|
+
return (true === state.generalParameters.isCommments &&
|
|
196
|
+
((this.myOrganisationId === this.podcast?.organisation.id) ||
|
|
197
|
+
this.myOrganisationId === this.organisation)) ||
|
|
198
|
+
true === state.generalParameters.isAdmin;
|
|
205
199
|
},
|
|
206
200
|
knownIdentity: {
|
|
207
201
|
get(): string|null {
|
|
@@ -213,8 +207,7 @@ export default defineComponent({
|
|
|
213
207
|
},
|
|
214
208
|
recordingInLive(): boolean {
|
|
215
209
|
return (
|
|
216
|
-
undefined!==this.podcast &&
|
|
217
|
-
undefined!==this.podcast.conferenceId &&
|
|
210
|
+
undefined!==this.podcast?.conferenceId &&
|
|
218
211
|
0 !== this.podcast.conferenceId &&
|
|
219
212
|
'READY' === this.podcast.processingStatus
|
|
220
213
|
);
|
|
@@ -85,22 +85,16 @@ export default defineComponent({
|
|
|
85
85
|
return state.generalParameters.organisationId;
|
|
86
86
|
},
|
|
87
87
|
podcastId(): number|undefined {
|
|
88
|
-
|
|
89
|
-
return undefined;
|
|
88
|
+
return this.podcast?.podcastId;
|
|
90
89
|
},
|
|
91
90
|
editRight(): boolean {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
((this.podcast &&
|
|
95
|
-
this.myOrganisationId === this.podcast.organisation.id) ||
|
|
91
|
+
return (true === state.generalParameters.isCommments &&
|
|
92
|
+
((this.myOrganisationId === this.podcast?.organisation.id) ||
|
|
96
93
|
this.myOrganisationId === this.organisation)) ||
|
|
97
|
-
state.generalParameters.isAdmin
|
|
98
|
-
)
|
|
99
|
-
return true;
|
|
100
|
-
return false;
|
|
94
|
+
true === state.generalParameters.isAdmin;
|
|
101
95
|
},
|
|
102
96
|
watchVariable():string{
|
|
103
|
-
return `${this.reload}|${this.status}
|
|
97
|
+
return `${this.reload}|${this.status}`;
|
|
104
98
|
}
|
|
105
99
|
},
|
|
106
100
|
watch: {
|
|
@@ -129,14 +123,13 @@ export default defineComponent({
|
|
|
129
123
|
if (this.comId) {
|
|
130
124
|
data = await octopusApi.postDataPublic<InterfacePageable<CommentPodcast>>(2, this.comId.toString(), {first: this.first,size: this.size});
|
|
131
125
|
}else{
|
|
132
|
-
|
|
126
|
+
data = await octopusApi.postDataPublic<InterfacePageable<CommentPodcast>>(2, this.isFlat ?'':'getRootCom',{
|
|
133
127
|
first: this.first,
|
|
134
128
|
size: this.size,
|
|
135
129
|
podcastId: this.podcastId,
|
|
136
130
|
status:this.editRight && this.status?[this.status]: this.editRight? ['Valid','Pending', 'Invalid']:['Valid'],
|
|
137
131
|
organisationId: undefined === this.podcastId? this.organisation: undefined,
|
|
138
|
-
};
|
|
139
|
-
data = await octopusApi.postDataPublic<InterfacePageable<CommentPodcast>>(2, this.isFlat ?'':'getRootCom',param);
|
|
132
|
+
});
|
|
140
133
|
}
|
|
141
134
|
if(reset){
|
|
142
135
|
this.comments.length = 0;
|
|
@@ -54,10 +54,7 @@ export default defineComponent({
|
|
|
54
54
|
methods: {
|
|
55
55
|
percentPosition(time: number): number {
|
|
56
56
|
let realDuration = this.totalTime;
|
|
57
|
-
if (
|
|
58
|
-
this.$store.state.player.podcast &&
|
|
59
|
-
this.$store.state.player.podcast.duration
|
|
60
|
-
) {
|
|
57
|
+
if (this.$store.state.player.podcast?.duration) {
|
|
61
58
|
realDuration = Math.round(
|
|
62
59
|
this.$store.state.player.podcast.duration / 1000
|
|
63
60
|
);
|
|
@@ -159,27 +159,13 @@ export default defineComponent({
|
|
|
159
159
|
},
|
|
160
160
|
async onSearchEmission(query?: string): Promise<void> {
|
|
161
161
|
this.isLoading = true;
|
|
162
|
-
|
|
162
|
+
const response = await octopusApi.fetchDataWithParams<{count: number;result:Array<Emission>;sort: string;}>(0, 'emission/search',{
|
|
163
163
|
query: query,
|
|
164
164
|
first: 0,
|
|
165
165
|
size: ELEMENTS_COUNT,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
} else if (undefined !== this.organisationDistributedBy) {
|
|
170
|
-
standardParam = {
|
|
171
|
-
...standardParam,
|
|
172
|
-
distributedBy: this.organisationDistributedBy,
|
|
173
|
-
organisationId: this.organisationId,
|
|
174
|
-
};
|
|
175
|
-
} else {
|
|
176
|
-
standardParam = {
|
|
177
|
-
...standardParam,
|
|
178
|
-
organisationId: this.organisationId,
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
const response = await octopusApi.fetchDataWithParams<{count: number;result:Array<Emission>;sort: string;}>(0, 'emission/search',standardParam, true);
|
|
166
|
+
distributedBy: this.distributedBy??this.organisationDistributedBy,
|
|
167
|
+
organisationId:this.distributedBy? undefined: this.organisationId
|
|
168
|
+
}, true);
|
|
183
169
|
if (this.defaultanswer) {
|
|
184
170
|
const emissionDefault = getDefaultEmission(this.defaultanswer);
|
|
185
171
|
if(emissionDefault){
|
|
@@ -247,12 +247,7 @@ export default defineComponent({
|
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
mainRubriquage(emission: Emission): string {
|
|
250
|
-
|
|
251
|
-
emission.rubriqueIds &&state.emissionsPage.mainRubrique &&
|
|
252
|
-
emission.rubriqueIds.includes(state.emissionsPage.mainRubrique)
|
|
253
|
-
)
|
|
254
|
-
return 'partenaireRubrique';
|
|
255
|
-
return '';
|
|
250
|
+
return state.emissionsPage.mainRubrique && emission.rubriqueIds?.includes(state.emissionsPage.mainRubrique) ? 'partenaireRubrique' : '';
|
|
256
251
|
},
|
|
257
252
|
},
|
|
258
253
|
})
|
|
@@ -84,18 +84,11 @@ export default defineComponent({
|
|
|
84
84
|
return (state.generalParameters.podcastmaker as boolean);
|
|
85
85
|
},
|
|
86
86
|
organisation(): string {
|
|
87
|
-
|
|
88
|
-
return this.emission.publisher.organisation.name;
|
|
89
|
-
}
|
|
90
|
-
return '';
|
|
87
|
+
return this.emission?.publisher?.organisation?.name ?? '';
|
|
91
88
|
},
|
|
92
89
|
editRight(): boolean {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
state.generalParameters.isAdmin
|
|
96
|
-
)
|
|
97
|
-
return true;
|
|
98
|
-
return false;
|
|
90
|
+
return (true === this.authenticated && this.myOrganisationId === this.emission.orga.id) ||
|
|
91
|
+
true === state.generalParameters.isAdmin
|
|
99
92
|
},
|
|
100
93
|
},
|
|
101
94
|
|
|
@@ -126,19 +126,17 @@ export default defineComponent({
|
|
|
126
126
|
sortText(): string {
|
|
127
127
|
switch (this.sort) {
|
|
128
128
|
case 'SCORE':
|
|
129
|
-
return " "+this.$t('sort by score')
|
|
129
|
+
return " "+this.$t('sort by score');
|
|
130
130
|
case 'LAST_PODCAST_DESC':
|
|
131
|
-
return " "+this.$t('sort by date')
|
|
131
|
+
return " "+this.$t('sort by date');
|
|
132
132
|
case 'NAME':
|
|
133
|
-
return " "+this.$t('sort by alphabetical')
|
|
133
|
+
return " "+this.$t('sort by alphabetical');
|
|
134
134
|
default:
|
|
135
|
-
return " "+this.$t('sort by date')
|
|
135
|
+
return " "+this.$t('sort by date');
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
organisation(): string|undefined {
|
|
139
|
-
|
|
140
|
-
if (this.$store.state.filter.organisationId) return this.$store.state.filter.organisationId;
|
|
141
|
-
return undefined;
|
|
139
|
+
return this.organisationId ?? this.$store.state.filter.organisationId;
|
|
142
140
|
},
|
|
143
141
|
},
|
|
144
142
|
watch: {
|
|
@@ -215,12 +213,7 @@ export default defineComponent({
|
|
|
215
213
|
this.rubriques = data.rubriques;
|
|
216
214
|
},
|
|
217
215
|
mainRubriquage(emission: Emission): string {
|
|
218
|
-
|
|
219
|
-
emission.rubriqueIds &&
|
|
220
|
-
emission.rubriqueIds[0] === state.emissionsPage.mainRubrique
|
|
221
|
-
)
|
|
222
|
-
return 'partenaireRubrique';
|
|
223
|
-
return '';
|
|
216
|
+
return emission.rubriqueIds?.[0] === state.emissionsPage.mainRubrique? 'partenaireRubrique': '';
|
|
224
217
|
},
|
|
225
218
|
rubriquesId(emission: Emission): string|undefined {
|
|
226
219
|
if (
|
|
@@ -182,12 +182,8 @@ export default defineComponent({
|
|
|
182
182
|
return state.generalParameters.organisationId;
|
|
183
183
|
},
|
|
184
184
|
editRight(): boolean {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
state.generalParameters.isAdmin
|
|
188
|
-
)
|
|
189
|
-
return true;
|
|
190
|
-
return false;
|
|
185
|
+
return (true===this.authenticated && this.organisationId === this.emission.orga.id) ||
|
|
186
|
+
true === state.generalParameters.isAdmin
|
|
191
187
|
},
|
|
192
188
|
},
|
|
193
189
|
|
|
@@ -229,11 +225,7 @@ export default defineComponent({
|
|
|
229
225
|
});
|
|
230
226
|
},
|
|
231
227
|
play(podcast: Podcast): void {
|
|
232
|
-
|
|
233
|
-
this.$store.commit('playerPause', false);
|
|
234
|
-
} else {
|
|
235
|
-
this.$store.commit('playerPlayPodcast', podcast);
|
|
236
|
-
}
|
|
228
|
+
this.$store.commit('playerPause', podcast === this.$store.state.player.podcast? false: podcast);
|
|
237
229
|
},
|
|
238
230
|
pause(): void {
|
|
239
231
|
this.$store.commit('playerPause', true);
|
|
@@ -192,21 +192,14 @@ export default defineComponent({
|
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
194
|
organisationRight(): boolean {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
state.generalParameters.isAdmin
|
|
198
|
-
)
|
|
199
|
-
return true;
|
|
200
|
-
return false;
|
|
195
|
+
return (true===this.authenticated && this.myOrganisationId === this.organisationId) ||
|
|
196
|
+
true === state.generalParameters.isAdmin;
|
|
201
197
|
},
|
|
202
198
|
organisation(): string|undefined {
|
|
203
|
-
|
|
204
|
-
if (this.filterOrga) return this.filterOrga;
|
|
205
|
-
return undefined;
|
|
199
|
+
return this.organisationId??this.filterOrga;
|
|
206
200
|
},
|
|
207
201
|
textNotVisible(): string {
|
|
208
|
-
|
|
209
|
-
return this.$t('See podcasts no visible');
|
|
202
|
+
return this.isEmission? this.$t('Consider podcasts no visible') : this.$t('See podcasts no visible');
|
|
210
203
|
},
|
|
211
204
|
isCheckboxNotValidate(): boolean {
|
|
212
205
|
return (
|
|
@@ -219,8 +212,7 @@ export default defineComponent({
|
|
|
219
212
|
);
|
|
220
213
|
},
|
|
221
214
|
textNotValidate(): string {
|
|
222
|
-
|
|
223
|
-
return this.$t('Display my podcasts to validate').toString();
|
|
215
|
+
return this.sdkParameters.isProduction? this.$t('Display all podcasts to validate') : this.$t('Display my podcasts to validate');
|
|
224
216
|
},
|
|
225
217
|
},
|
|
226
218
|
watch: {
|
|
@@ -72,9 +72,7 @@ export default defineComponent({
|
|
|
72
72
|
return this.$store.state.filter.organisationId;
|
|
73
73
|
},
|
|
74
74
|
organisation(): string|undefined {
|
|
75
|
-
|
|
76
|
-
if (this.filterOrga) return this.filterOrga;
|
|
77
|
-
return undefined;
|
|
75
|
+
return this.organisationId ?? this.filterOrga;
|
|
78
76
|
},
|
|
79
77
|
rubriqueFilter(): Array<RubriquageFilter>{
|
|
80
78
|
return this.$store.state.filter.rubriqueFilter;
|
|
@@ -83,12 +83,7 @@ export default defineComponent({
|
|
|
83
83
|
return 960 >= this.windowWidth;
|
|
84
84
|
},
|
|
85
85
|
rangeSize(){
|
|
86
|
-
|
|
87
|
-
return 3;
|
|
88
|
-
}else if(this.windowWidth > 1530){
|
|
89
|
-
return 2;
|
|
90
|
-
}
|
|
91
|
-
return 1;
|
|
86
|
+
return this.windowWidth > 1600 ? 3 : this.windowWidth > 1530 ? 2 : 1;
|
|
92
87
|
},
|
|
93
88
|
},
|
|
94
89
|
watch:{
|
|
@@ -164,31 +164,22 @@ export default defineComponent({
|
|
|
164
164
|
return (state.generalParameters.podcastmaker as boolean);
|
|
165
165
|
},
|
|
166
166
|
hours(): string {
|
|
167
|
-
|
|
168
|
-
return moment(this.live.pubDate).format('À HH[H]mm');
|
|
167
|
+
return !this.live?'': moment(this.live.pubDate).format('HH[H]mm');
|
|
169
168
|
},
|
|
170
169
|
date(): string {
|
|
171
|
-
|
|
172
|
-
return moment(this.live.pubDate).format('D/MM/YYYY');
|
|
170
|
+
return !this.live? '': moment(this.live.pubDate).format('D/MM/YYYY');
|
|
173
171
|
},
|
|
174
172
|
displayDate(): string {
|
|
175
|
-
|
|
176
|
-
return moment(this.live.pubDate).format('X');
|
|
173
|
+
return !this.live? '':moment(this.live.pubDate).format('X');
|
|
177
174
|
},
|
|
178
175
|
description(): string {
|
|
179
|
-
|
|
180
|
-
return '';
|
|
176
|
+
return this.live?.description??'';
|
|
181
177
|
},
|
|
182
178
|
myOrganisationId(): string|undefined {
|
|
183
179
|
return state.generalParameters.organisationId;
|
|
184
180
|
},
|
|
185
181
|
organisationRight(): boolean {
|
|
186
|
-
|
|
187
|
-
this.isRoleLive && this.live &&
|
|
188
|
-
this.myOrganisationId === this.live.organisation.id
|
|
189
|
-
)
|
|
190
|
-
return true;
|
|
191
|
-
return false;
|
|
182
|
+
return true===this.isRoleLive && this.myOrganisationId === this.live?.organisation.id;
|
|
192
183
|
},
|
|
193
184
|
isRoleLive(): boolean {
|
|
194
185
|
return (state.generalParameters.isRoleLive as boolean);
|
|
@@ -226,9 +217,7 @@ export default defineComponent({
|
|
|
226
217
|
this.live = podcastUpdated;
|
|
227
218
|
},
|
|
228
219
|
getName(person: Participant): string {
|
|
229
|
-
|
|
230
|
-
const last = person.lastName || '';
|
|
231
|
-
return (first + ' ' + last).trim();
|
|
220
|
+
return (`${person.firstName??''} ${person.lastName??''}`).trim();
|
|
232
221
|
},
|
|
233
222
|
async fetchPodcastData(): Promise<void> {
|
|
234
223
|
if (!this.fetchConference || !this.fetchConference.podcastId) return;
|
|
@@ -62,25 +62,25 @@ export default defineComponent({
|
|
|
62
62
|
return {
|
|
63
63
|
loading: true as boolean,
|
|
64
64
|
loaded: true as boolean,
|
|
65
|
-
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
computed: {
|
|
69
|
+
livesArray(): Array<{status:string, title:string, lives:Array<Conference>}>{
|
|
70
|
+
return [
|
|
66
71
|
{status: "RECORDING", title:this.$t('In live'), lives:[]},
|
|
67
72
|
{status: "PENDING", title:this.$t('This live is not started yet'), lives:[]},
|
|
68
73
|
{status: "PLANNED", title:this.$t('Live to be'), lives:[]},
|
|
69
74
|
{status: "DEBRIEFING", title:this.$t('Live terminated'), lives:[]},
|
|
70
75
|
{status: "PUBLISHING", title:this.$t('Publishing'), lives:[]},
|
|
71
76
|
{status: "ERROR", title:this.$t('In error'), lives:[]}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
computed: {
|
|
77
|
+
];
|
|
78
|
+
},
|
|
77
79
|
isNoLive(): boolean{
|
|
78
80
|
return this.loaded && !this.livesArray[0].lives.length && !this.livesArray[2].lives.length && !this.livesArray[3].lives.length;
|
|
79
81
|
},
|
|
80
82
|
filterOrgaUsed(): string|undefined {
|
|
81
|
-
|
|
82
|
-
if (this.organisationId) return this.organisationId;
|
|
83
|
-
return undefined;
|
|
83
|
+
return this.filterOrga??this.organisationId;
|
|
84
84
|
},
|
|
85
85
|
filterOrga(): string {
|
|
86
86
|
return this.$store.state.filter.organisationId;
|
|
@@ -88,20 +88,16 @@ export default defineComponent({
|
|
|
88
88
|
displayNextLiveMessage(): string {
|
|
89
89
|
if (0 !== this.livesArray[0].lives.length) return '';
|
|
90
90
|
if (this.livesArray[1].lives.length > 0)
|
|
91
|
-
return this.$t('A live can start any moment')
|
|
91
|
+
return this.$t('A live can start any moment');
|
|
92
92
|
if (this.livesArray[2].lives.length > 0)
|
|
93
|
-
return this.$t('Next live date', {
|
|
94
|
-
date: moment(this.livesArray[2].lives[0].date).format('LLLL'),
|
|
95
|
-
}).toString();
|
|
93
|
+
return this.$t('Next live date', {date: moment(this.livesArray[2].lives[0].date).format('LLLL'),});
|
|
96
94
|
return '';
|
|
97
95
|
},
|
|
98
96
|
myOrganisationId(): string|undefined {
|
|
99
97
|
return state.generalParameters.organisationId;
|
|
100
98
|
},
|
|
101
99
|
organisationRight(): boolean {
|
|
102
|
-
|
|
103
|
-
return true;
|
|
104
|
-
return false;
|
|
100
|
+
return this.isRoleLive && this.myOrganisationId === this.filterOrgaUsed;
|
|
105
101
|
},
|
|
106
102
|
isRoleLive(): boolean {
|
|
107
103
|
return (state.generalParameters.isRoleLive as boolean);
|
|
@@ -161,13 +161,9 @@ export default defineComponent({
|
|
|
161
161
|
myOrganisation(): Organisation|undefined {
|
|
162
162
|
if (!this.authenticated) return undefined;
|
|
163
163
|
return {
|
|
164
|
-
id: this.myOrganisationId
|
|
164
|
+
id: this.myOrganisationId??"",
|
|
165
165
|
imageUrl: this.myImage,
|
|
166
|
-
name:
|
|
167
|
-
this.$t('Edit my organisation') +
|
|
168
|
-
' (' +
|
|
169
|
-
state.organisation.name +
|
|
170
|
-
')',
|
|
166
|
+
name: `${this.$t('Edit my organisation')} (${state.organisation.name})`
|
|
171
167
|
};
|
|
172
168
|
},
|
|
173
169
|
},
|
|
@@ -65,11 +65,7 @@ export default defineComponent({
|
|
|
65
65
|
|
|
66
66
|
methods: {
|
|
67
67
|
onOrganisationSelected(): void{
|
|
68
|
-
|
|
69
|
-
this.$emit('selected', undefined);
|
|
70
|
-
} else {
|
|
71
|
-
this.$emit('selected', this.organisation);
|
|
72
|
-
}
|
|
68
|
+
this.$emit('selected', -1 === this.actual? undefined:this.organisation);
|
|
73
69
|
},
|
|
74
70
|
async fetchOrganisation(): Promise<void> {
|
|
75
71
|
if(!this.value){return;}
|
|
@@ -75,20 +75,15 @@ export default defineComponent({
|
|
|
75
75
|
return (state.generalParameters.podcastmaker as boolean);
|
|
76
76
|
},
|
|
77
77
|
name(): string {
|
|
78
|
-
return (`${this.participant.firstName
|
|
78
|
+
return (`${this.participant.firstName??''} ${this.participant.lastName??''}`).trim();
|
|
79
79
|
},
|
|
80
80
|
editRight(): boolean {
|
|
81
81
|
if(!this.participant || !this.participant.orga){
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
state.generalParameters.isAdmin
|
|
88
|
-
){
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
return false;
|
|
84
|
+
return (true == this.authenticated &&
|
|
85
|
+
this.myOrganisationId === this.participant.orga.id) ||
|
|
86
|
+
true === state.generalParameters.isAdmin
|
|
92
87
|
},
|
|
93
88
|
},
|
|
94
89
|
|
|
@@ -75,9 +75,7 @@ export default defineComponent({
|
|
|
75
75
|
return this.participants.slice(this.dfirst, Math.min(this.dfirst + this.dsize,this.totalCount));
|
|
76
76
|
},
|
|
77
77
|
organisation(): string|undefined {
|
|
78
|
-
|
|
79
|
-
if (this.$store.state.filter.organisationId) return this.$store.state.filter.organisationId;
|
|
80
|
-
return undefined;
|
|
78
|
+
return this.organisationId??this.$store.state.filter.organisationId;
|
|
81
79
|
},
|
|
82
80
|
},
|
|
83
81
|
watch: {
|