@saooti/octopus-sdk 32.0.2 → 32.0.5

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.
Files changed (89) hide show
  1. package/README.md +6 -1
  2. package/package.json +2 -2
  3. package/public/css/fonts/icomoon.eot +0 -0
  4. package/public/css/fonts/icomoon.svg +130 -0
  5. package/public/css/fonts/icomoon.ttf +0 -0
  6. package/public/css/fonts/icomoon.woff +0 -0
  7. package/public/css/fonts/style.css +185 -1275
  8. package/src/App.vue +1 -1
  9. package/src/assets/bootstrap-diff.scss +1 -0
  10. package/src/assets/form.scss +3 -1
  11. package/src/assets/multiselect.scss +11 -0
  12. package/src/components/display/categories/CategoryChooser.vue +1 -1
  13. package/src/components/display/comments/AddCommentModal.vue +1 -3
  14. package/src/components/display/comments/CommentInput.vue +14 -30
  15. package/src/components/display/comments/CommentItem.vue +7 -14
  16. package/src/components/display/comments/CommentList.vue +7 -15
  17. package/src/components/display/comments/CommentPlayer.vue +1 -4
  18. package/src/components/display/comments/CommentSection.vue +1 -1
  19. package/src/components/display/edit/EditCommentBox.vue +3 -3
  20. package/src/components/display/emission/EmissionChooser.vue +5 -20
  21. package/src/components/display/emission/EmissionInlineList.vue +1 -6
  22. package/src/components/display/emission/EmissionItem.vue +3 -10
  23. package/src/components/display/emission/EmissionList.vue +6 -13
  24. package/src/components/display/emission/EmissionPlayerItem.vue +5 -13
  25. package/src/components/display/filter/AdvancedSearch.vue +6 -14
  26. package/src/components/display/filter/MonetizableFilter.vue +1 -1
  27. package/src/components/display/filter/RubriqueChoice.vue +1 -1
  28. package/src/components/display/filter/RubriqueFilter.vue +1 -3
  29. package/src/components/display/list/ListPaginate.vue +1 -6
  30. package/src/components/display/live/LiveItem.vue +6 -17
  31. package/src/components/display/live/LiveList.vue +12 -16
  32. package/src/components/display/organisation/OrganisationChooser.vue +3 -7
  33. package/src/components/display/organisation/OrganisationChooserLight.vue +1 -5
  34. package/src/components/display/participant/ParticipantItem.vue +4 -9
  35. package/src/components/display/participant/ParticipantList.vue +1 -3
  36. package/src/components/display/playlist/PlaylistItem.vue +6 -16
  37. package/src/components/display/playlist/PlaylistList.vue +2 -5
  38. package/src/components/display/playlist/PodcastList.vue +3 -7
  39. package/src/components/display/playlist/PodcastPlaylistInlineList.vue +2 -9
  40. package/src/components/display/podcasts/AnimatorsItem.vue +1 -1
  41. package/src/components/display/podcasts/ParticipantDescription.vue +1 -1
  42. package/src/components/display/podcasts/PodcastFilterList.vue +1 -1
  43. package/src/components/display/podcasts/PodcastImage.vue +14 -22
  44. package/src/components/display/podcasts/PodcastInlineListClassic.vue +2 -8
  45. package/src/components/display/podcasts/PodcastInlineListTemplate.vue +2 -2
  46. package/src/components/display/podcasts/PodcastItem.vue +2 -5
  47. package/src/components/display/podcasts/PodcastItemInfo.vue +4 -9
  48. package/src/components/display/podcasts/PodcastList.vue +5 -13
  49. package/src/components/display/podcasts/PodcastModuleBox.vue +7 -22
  50. package/src/components/display/podcasts/PodcastPlayBar.vue +3 -4
  51. package/src/components/display/podcasts/PodcastSwiperList.vue +1 -3
  52. package/src/components/display/rubriques/RubriqueChooser.vue +5 -16
  53. package/src/components/display/rubriques/RubriqueList.vue +2 -2
  54. package/src/components/display/sharing/QrCode.vue +1 -1
  55. package/src/components/display/sharing/ShareButtonsIntern.vue +5 -5
  56. package/src/components/display/sharing/ShareDistribution.vue +30 -95
  57. package/src/components/display/sharing/SharePlayer.vue +6 -14
  58. package/src/components/display/sharing/SharePlayerTypes.vue +1 -1
  59. package/src/components/display/sharing/SubscribeButtons.vue +2 -4
  60. package/src/components/form/ClassicSearch.vue +4 -4
  61. package/src/components/form/ClassicSelect.vue +1 -1
  62. package/src/components/misc/Footer.vue +2 -2
  63. package/src/components/misc/HomeDropdown.vue +1 -1
  64. package/src/components/misc/LeftMenu.vue +3 -3
  65. package/src/components/misc/TopBar.vue +11 -15
  66. package/src/components/misc/modal/MessageModal.vue +1 -1
  67. package/src/components/misc/modal/NewsletterModal.vue +5 -7
  68. package/src/components/misc/modal/ShareModalPlayer.vue +4 -4
  69. package/src/components/misc/player/Player.vue +1 -1
  70. package/src/components/misc/player/PlayerCompact.vue +4 -4
  71. package/src/components/misc/player/PlayerLarge.vue +4 -4
  72. package/src/components/misc/player/PlayerTimeline.vue +1 -6
  73. package/src/components/pages/Emission.vue +14 -33
  74. package/src/components/pages/Emissions.vue +6 -15
  75. package/src/components/pages/Home.vue +1 -4
  76. package/src/components/pages/Lives.vue +3 -11
  77. package/src/components/pages/PageNotFound.vue +2 -2
  78. package/src/components/pages/Participant.vue +8 -23
  79. package/src/components/pages/Participants.vue +3 -6
  80. package/src/components/pages/Playlist.vue +10 -13
  81. package/src/components/pages/Playlists.vue +2 -3
  82. package/src/components/pages/Podcast.vue +15 -51
  83. package/src/components/pages/Podcasts.vue +7 -16
  84. package/src/components/pages/Search.vue +3 -6
  85. package/public/css/fonts/saooti-ui.eot +0 -0
  86. package/public/css/fonts/saooti-ui.svg +0 -843
  87. package/public/css/fonts/saooti-ui.ttf +0 -0
  88. package/public/css/fonts/saooti-ui.woff +0 -0
  89. package/public/css/fonts/stitcher-logo.svg +0 -83
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 = '';
@@ -187,6 +187,7 @@
187
187
  .breadcrumb{
188
188
  padding: 1rem;
189
189
  align-items: center;
190
+ background: #FAFAFA;
190
191
  }
191
192
  .bg-secondary{
192
193
  background: #eee !important;
@@ -8,9 +8,11 @@
8
8
  }
9
9
  select {
10
10
  background: white !important;
11
- padding: 0.5rem;
11
+ outline-color: transparent !important;
12
+ padding: 0.25rem 0.4rem;;
12
13
  border: 0.1rem solid #dee2e6;
13
14
  border-radius: 0.3rem;
15
+ height: 2rem;
14
16
  }
15
17
  .form-check-label {
16
18
  cursor: pointer;
@@ -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
 
@@ -56,7 +56,7 @@
56
56
  <template #caret="">
57
57
  <div class="position-relative">
58
58
  <span
59
- class="saooti-arrow_down octopus-arrow-down"
59
+ class="saooti-down octopus-arrow-down"
60
60
  />
61
61
  </div>
62
62
  </template>
@@ -81,9 +81,7 @@ export default defineComponent({
81
81
  },
82
82
  computed: {
83
83
  errorText():string {
84
- if(this.isCaptchaTest) return this.$t('Recaptcha not active');
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
- if (this.podcast.annotations && this.podcast.annotations.COMMENTS) {
151
- podcastComment = (this.podcast.annotations.COMMENTS as string);
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 && this.comment.comId? this.$t('Answer a comment') : this.$t('Write a comment');
158
+ return this.comment?.comId? this.$t('Answer a comment') : this.$t('Write a comment');
170
159
  },
171
160
  isCertified(): boolean {
172
- if (
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 ? this.comment.organisationId : '';
204
- return this.podcast ? this.podcast.organisation.id : commentOrga;
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 ? name: this.knownIdentity;
277
- const commentPodcastId = this.comment ? this.comment.podcastId : 0;
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 ? sendName : '',
281
- podcastId: this.podcast ? this.podcast.podcastId : commentPodcastId,
264
+ name: sendName ??'',
265
+ podcastId: this.podcast?.podcastId ?? commentPodcastId,
282
266
  timeline: this.defineTimelineValue(),
283
267
  organisationId: this.podcastOrga,
284
- commentIdReferer: this.comment ? this.comment.comId : undefined,
268
+ commentIdReferer:this.comment?.comId,
285
269
  certified: this.isCertified,
286
270
  userId: this.userId,
287
271
  phase: this.phase,
@@ -83,7 +83,7 @@
83
83
  </span>
84
84
  <span
85
85
  :class="collapseVisible? 'arrow-transform': ''"
86
- class="saooti-arrow_down"
86
+ class="saooti-down"
87
87
  />
88
88
  </button>
89
89
  <EditCommentBox
@@ -136,7 +136,7 @@ import { Podcast } from '@/store/class/general/podcast';
136
136
  import { Conference } from '@/store/class/conference/conference';
137
137
  import CommentBasicView from './CommentBasicView.vue';
138
138
  import Constants from '../../../../public/config';
139
- import { defineComponent, defineAsyncComponent, nextTick } from 'vue';
139
+ import { defineComponent, defineAsyncComponent } from 'vue';
140
140
  const CommentInput = defineAsyncComponent(() => import('./CommentInput.vue'));
141
141
  const CommentParentInfo = defineAsyncComponent(() => import('./CommentParentInfo.vue'));
142
142
  const EditCommentBox = defineAsyncComponent(() => import('@/components/display/edit/EditCommentBox.vue'));
@@ -192,16 +192,10 @@ export default defineComponent({
192
192
  return state.generalParameters.organisationId;
193
193
  },
194
194
  editRight(): boolean {
195
- if (
196
- (state.generalParameters.isCommments &&
197
- ((this.podcast &&
198
- this.myOrganisationId === this.podcast.organisation.id) ||
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
  );
@@ -43,7 +43,6 @@ import { Conference } from '@/store/class/conference/conference';
43
43
  import { CommentPodcast } from '@/store/class/general/comment';
44
44
  import { InterfacePageable } from '@/store/class/general/interfacePageable';
45
45
  import { defineComponent, defineAsyncComponent } from 'vue';
46
- import { FetchParam } from '@/store/class/general/fetchParam';
47
46
  /* eslint-disable */
48
47
  const CommentItem: any = defineAsyncComponent(() => import('./CommentItem.vue'));
49
48
  /* eslint-enable */
@@ -85,22 +84,16 @@ export default defineComponent({
85
84
  return state.generalParameters.organisationId;
86
85
  },
87
86
  podcastId(): number|undefined {
88
- if (this.podcast) return this.podcast.podcastId;
89
- return undefined;
87
+ return this.podcast?.podcastId;
90
88
  },
91
89
  editRight(): boolean {
92
- if (
93
- (state.generalParameters.isCommments &&
94
- ((this.podcast &&
95
- this.myOrganisationId === this.podcast.organisation.id) ||
90
+ return (true === state.generalParameters.isCommments &&
91
+ ((this.myOrganisationId === this.podcast?.organisation.id) ||
96
92
  this.myOrganisationId === this.organisation)) ||
97
- state.generalParameters.isAdmin
98
- )
99
- return true;
100
- return false;
93
+ true === state.generalParameters.isAdmin;
101
94
  },
102
95
  watchVariable():string{
103
- return `${this.reload}|${this.status}`
96
+ return `${this.reload}|${this.status}`;
104
97
  }
105
98
  },
106
99
  watch: {
@@ -129,14 +122,13 @@ export default defineComponent({
129
122
  if (this.comId) {
130
123
  data = await octopusApi.postDataPublic<InterfacePageable<CommentPodcast>>(2, this.comId.toString(), {first: this.first,size: this.size});
131
124
  }else{
132
- const param: FetchParam = {
125
+ data = await octopusApi.postDataPublic<InterfacePageable<CommentPodcast>>(2, this.isFlat ?'':'getRootCom',{
133
126
  first: this.first,
134
127
  size: this.size,
135
128
  podcastId: this.podcastId,
136
129
  status:this.editRight && this.status?[this.status]: this.editRight? ['Valid','Pending', 'Invalid']:['Valid'],
137
130
  organisationId: undefined === this.podcastId? this.organisation: undefined,
138
- };
139
- data = await octopusApi.postDataPublic<InterfacePageable<CommentPodcast>>(2, this.isFlat ?'':'getRootCom',param);
131
+ });
140
132
  }
141
133
  if(reset){
142
134
  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
  );
@@ -13,7 +13,7 @@
13
13
  <button
14
14
  v-if="!isLive"
15
15
  :title="$t('Refresh')"
16
- class="btn admin-button saooti-refresh-stud"
16
+ class="btn admin-button saooti-refresh"
17
17
  @click="reload = !reload"
18
18
  />
19
19
  </div>
@@ -6,7 +6,7 @@
6
6
  @click="editComment"
7
7
  >
8
8
  <span
9
- class="saooti-edit-bounty"
9
+ class="saooti-edit"
10
10
  :data-selenium="'Edit-Comment-' + seleniumFormat(comment.name)"
11
11
  />
12
12
  </button>
@@ -17,7 +17,7 @@
17
17
  @click="commentModal('Valid')"
18
18
  >
19
19
  <span
20
- class="saooti-valid-stud"
20
+ class="saooti-checkmark"
21
21
  :data-selenium="'Validate-Comment-' + seleniumFormat(comment.name)"
22
22
  />
23
23
  </button>
@@ -28,7 +28,7 @@
28
28
  @click="commentModal('Invalid')"
29
29
  >
30
30
  <span
31
- class="saooti-cross"
31
+ class="saooti-remove"
32
32
  :data-selenium="'Invalidate-Comment-' + seleniumFormat(comment.name)"
33
33
  />
34
34
  </button>
@@ -71,7 +71,7 @@
71
71
  <template #caret="">
72
72
  <div class="position-relative">
73
73
  <span
74
- class="saooti-arrow_down octopus-arrow-down"
74
+ class="saooti-down octopus-arrow-down"
75
75
  />
76
76
  </div>
77
77
  </template>
@@ -108,7 +108,6 @@ const getDefaultEmission = (defaultName: string): Emission|undefined => {
108
108
 
109
109
  import { Emission } from '@/store/class/general/emission';
110
110
  import { defineComponent } from 'vue'
111
- import { FetchParam } from '@/store/class/general/fetchParam';
112
111
  export default defineComponent({
113
112
  components: {
114
113
  VueMultiselect
@@ -159,27 +158,13 @@ export default defineComponent({
159
158
  },
160
159
  async onSearchEmission(query?: string): Promise<void> {
161
160
  this.isLoading = true;
162
- let standardParam: FetchParam = {
161
+ const response = await octopusApi.fetchDataWithParams<{count: number;result:Array<Emission>;sort: string;}>(0, 'emission/search',{
163
162
  query: query,
164
163
  first: 0,
165
164
  size: ELEMENTS_COUNT,
166
- };
167
- if (undefined !== this.distributedBy) {
168
- standardParam = { ...standardParam, distributedBy: this.distributedBy };
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);
165
+ distributedBy: this.distributedBy??this.organisationDistributedBy,
166
+ organisationId:this.distributedBy? undefined: this.organisationId
167
+ }, true);
183
168
  if (this.defaultanswer) {
184
169
  const emissionDefault = getDefaultEmission(this.defaultanswer);
185
170
  if(emissionDefault){
@@ -247,12 +247,7 @@ export default defineComponent({
247
247
  }
248
248
  },
249
249
  mainRubriquage(emission: Emission): string {
250
- if (
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
- if(this.emission && this.emission.publisher && this.emission.publisher.organisation){
88
- return this.emission.publisher.organisation.name;
89
- }
90
- return '';
87
+ return this.emission?.publisher?.organisation?.name ?? '';
91
88
  },
92
89
  editRight(): boolean {
93
- if (
94
- (this.authenticated && this.myOrganisationId === this.emission.orga.id) ||
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').toString();
129
+ return " "+this.$t('sort by score');
130
130
  case 'LAST_PODCAST_DESC':
131
- return " "+this.$t('sort by date').toString();
131
+ return " "+this.$t('sort by date');
132
132
  case 'NAME':
133
- return " "+this.$t('sort by alphabetical').toString();
133
+ return " "+this.$t('sort by alphabetical');
134
134
  default:
135
- return " "+this.$t('sort by date').toString();
135
+ return " "+this.$t('sort by date');
136
136
  }
137
137
  },
138
138
  organisation(): string|undefined {
139
- if (this.organisationId) return this.organisationId;
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
- if (
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 (
@@ -102,7 +102,7 @@
102
102
  @click="play(p)"
103
103
  >
104
104
  <div
105
- class="text-light saooti-play2-bounty"
105
+ class="text-light saooti-play"
106
106
  :title="$t('Play')"
107
107
  />
108
108
  </div>
@@ -112,7 +112,7 @@
112
112
  @click="pause(p)"
113
113
  >
114
114
  <div
115
- class="text-light saooti-pause-bounty"
115
+ class="text-light saooti-pause"
116
116
  :title="$t('Pause')"
117
117
  />
118
118
  </div>
@@ -182,12 +182,8 @@ export default defineComponent({
182
182
  return state.generalParameters.organisationId;
183
183
  },
184
184
  editRight(): boolean {
185
- if (
186
- (this.authenticated && this.organisationId === this.emission.orga.id) ||
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
- if (podcast === this.$store.state.player.podcast) {
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);
@@ -6,7 +6,7 @@
6
6
  >
7
7
  <div>{{ $t('Advanced filters') }}</div>
8
8
  <div
9
- class="h3 saooti-arrow_down m-0"
9
+ class="h3 saooti-down m-0"
10
10
  :class="{ 'arrow-transform': showFilters }"
11
11
  />
12
12
  </button>
@@ -192,21 +192,14 @@ export default defineComponent({
192
192
  }
193
193
  },
194
194
  organisationRight(): boolean {
195
- if (
196
- (this.authenticated && this.myOrganisationId === this.organisationId) ||
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
- if (this.organisationId) return this.organisationId;
204
- if (this.filterOrga) return this.filterOrga;
205
- return undefined;
199
+ return this.organisationId??this.filterOrga;
206
200
  },
207
201
  textNotVisible(): string {
208
- if (this.isEmission) return this.$t('Consider podcasts no visible');
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
- if (this.sdkParameters.isProduction) return this.$t('Display all podcasts to validate').toString();
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: {
@@ -12,7 +12,7 @@
12
12
  <option value="YES">{{ $t('Authorized advertising') }}</option>
13
13
  <option value="NO">{{ $t('Prohibited advertising') }}</option>
14
14
  </select>
15
- <div class="saooti-arrow_down octopus-arrow-down" />
15
+ <div class="saooti-down octopus-arrow-down" />
16
16
  </label>
17
17
  </div>
18
18
  </template>
@@ -13,7 +13,7 @@
13
13
  >{{ rubriquage.title }}</option>
14
14
  </select>
15
15
  <div
16
- class="saooti-arrow_down octopus-arrow-down"
16
+ class="saooti-down octopus-arrow-down"
17
17
  />
18
18
  </label>
19
19
  <template v-if="rubriquageId">
@@ -72,9 +72,7 @@ export default defineComponent({
72
72
  return this.$store.state.filter.organisationId;
73
73
  },
74
74
  organisation(): string|undefined {
75
- if (this.organisationId) return this.organisationId;
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
- if(this.windowWidth > 1600){
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
- if(!this.live){ return ''; }
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
- if(!this.live){ return ''; }
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
- if(!this.live){ return ''; }
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
- if (this.live && this.live.description) return this.live.description;
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
- if (
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
- const first = person.firstName || '';
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;