@saooti/octopus-sdk 30.0.83 → 30.0.86

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 CHANGED
@@ -579,4 +579,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
579
579
  * 30.0.80 DownloadId player
580
580
  * 30.0.81 DownloadId player
581
581
  * 30.0.82 Cherry pick Color Qr code
582
- * 30.0.83 Locales parlement
582
+ * 30.0.83 Locales parlement
583
+ * 30.0.84 Une émission non visible n'apparaît pas dans la page émission
584
+ * 30.0.85 PB en cliquant sur le bouton "tous les épisodes de l'organisation" dans la page d'un épisode
585
+ * 30.0.86 Podcastmaker newest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.83",
3
+ "version": "30.0.86",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -172,10 +172,10 @@ export default defineComponent({
172
172
  isTo: false as boolean,
173
173
  fromDate: moment().subtract(10, 'days').toISOString() as string,
174
174
  toDate: moment().toISOString() as string,
175
- isNotVisible: false as boolean,
175
+ isNotVisible: this.includeHidden as boolean,
176
176
  isNotValidate: false as boolean,
177
177
  showFilters: false as boolean,
178
- sort: '' as string,
178
+ sort: this.sortCriteria as string,
179
179
  };
180
180
  },
181
181
 
@@ -268,16 +268,6 @@ export default defineComponent({
268
268
  this.sort = this.sortCriteria;
269
269
  },
270
270
  },
271
-
272
- created() {
273
- if (!this.isEmission) {
274
- this.isNotVisible = this.includeHidden;
275
- }
276
- },
277
-
278
- mounted() {
279
- this.sort = this.sortCriteria;
280
- },
281
271
  methods: {
282
272
  updateFromDate(): void {
283
273
  if (
@@ -213,7 +213,7 @@ export default defineComponent({
213
213
  },
214
214
  methods: {
215
215
  handleSeeMoreButton(event: { preventDefault: () => void; }){
216
- if(!this.rubriqueId || this.noRubriquageId.length){
216
+ if(!this.rubriqueId || 0===this.rubriqueId.length || this.noRubriquageId.length){
217
217
  return;
218
218
  }
219
219
  event.preventDefault();
@@ -258,7 +258,9 @@ export default defineComponent({
258
258
  this.totalCount = data.count;
259
259
  if (this.allPodcasts.length + data.result.length < this.totalCount) {
260
260
  const nexEl = data.result.pop() as Podcast;
261
- this.preloadImage(nexEl.imageUrl?nexEl.imageUrl:'');
261
+ if(nexEl){
262
+ this.preloadImage(nexEl.imageUrl?nexEl.imageUrl:'');
263
+ }
262
264
  }
263
265
  this.allPodcasts = this.allPodcasts.concat(
264
266
  data.result.filter((pod: Podcast|null) => null !== pod)
@@ -47,7 +47,21 @@
47
47
  {{ duration }}
48
48
  </div>
49
49
  </div>
50
- <AnimatorsItem :animators="podcast.animators" />
50
+ <router-link
51
+ v-if="podcastItemShowEmission"
52
+ class="podcast-item-emission"
53
+ :to="{
54
+ name: 'emission',
55
+ params: { emissionId: podcast.emission.emissionId },
56
+ query: { productor: $store.state.filter.organisationId },
57
+ }"
58
+ >
59
+ {{ podcast.emission.name }}
60
+ </router-link>
61
+ <AnimatorsItem
62
+ v-else
63
+ :animators="podcast.animators"
64
+ />
51
65
  <router-link
52
66
  :to="{
53
67
  name: 'podcast',
@@ -65,6 +79,7 @@
65
79
  class="mx-2"
66
80
  />
67
81
  <div class="d-flex justify-content-between">
82
+ <div class="useless-div-for-podcastmaker" />
68
83
  <router-link
69
84
  v-if="!isPodcastmaker"
70
85
  :to="{
@@ -127,6 +142,9 @@ export default defineComponent({
127
142
  podcastBorderBottom(): boolean {
128
143
  return (state.podcastsPage.podcastBorderBottom as boolean);
129
144
  },
145
+ podcastItemShowEmission(): boolean {
146
+ return (state.podcastPage.podcastItemShowEmission as boolean);
147
+ },
130
148
  date(): string {
131
149
  return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
132
150
  },
@@ -23,6 +23,7 @@
23
23
  :is-search-bar="isProductorSearch"
24
24
  :sort-criteria="sortEmission"
25
25
  :organisation-id="organisationId"
26
+ :include-hidden="includeHidden"
26
27
  @updateCategory="updateCategory"
27
28
  @updateRubriquageFilter="updateRubriquageFilter"
28
29
  @updateMonetization="updateMonetization"
@@ -43,7 +44,6 @@
43
44
  :sort="sortEmission"
44
45
  :include-hidden="includeHidden"
45
46
  :iab-id="iabId"
46
-
47
47
  :rubrique-id="rubriqueId"
48
48
  :rubriquage-id="rubriquageId"
49
49
  :no-rubriquage-id="noRubriquageId"
@@ -106,6 +106,28 @@ export default defineComponent({
106
106
  titlePage(): string|undefined {
107
107
  return state.emissionsPage.titlePage;
108
108
  },
109
+ authenticated(): boolean {
110
+ return (state.generalParameters.authenticated as boolean);
111
+ },
112
+ myOrganisationId(): string|undefined {
113
+ return state.generalParameters.organisationId;
114
+ },
115
+ organisationRight(): boolean {
116
+ if (
117
+ (this.authenticated && this.myOrganisationId === this.organisationId) ||
118
+ state.generalParameters.isAdmin
119
+ )
120
+ return true;
121
+ return false;
122
+ },
123
+ filterOrga(): string|undefined {
124
+ return this.$store.state.filter.organisationId;
125
+ },
126
+ organisation(): string|undefined {
127
+ if (this.organisationId) return this.organisationId;
128
+ if (this.filterOrga) return this.filterOrga;
129
+ return undefined;
130
+ },
109
131
  },
110
132
 
111
133
  created() {
@@ -117,6 +139,9 @@ export default defineComponent({
117
139
  } else if (this.$store.state.filter.organisationId) {
118
140
  this.organisationId = this.$store.state.filter.organisationId;
119
141
  }
142
+ if (this.organisation && this.organisationRight) {
143
+ this.includeHidden = true;
144
+ }
120
145
  if(this.rubriqueFilter.length){
121
146
  this.updateRubriquageFilter(this.rubriqueFilter);
122
147
  }
@@ -35,6 +35,7 @@
35
35
  :reset-rubriquage="resetRubriquage"
36
36
  :is-search-bar="isProductorSearch"
37
37
  :sort-criteria="sortCriteria"
38
+ :include-hidden="includeHidden"
38
39
  :organisation-id="organisationId"
39
40
  @updateCategory="updateCategory"
40
41
  @updateRubriquageFilter="updateRubriquageFilter"
@@ -31,7 +31,8 @@ const state:paramStore = {
31
31
  downloadButton: false,
32
32
  hlsUri: 'https://hls.preprod.saooti.org/',
33
33
  mainRubrique: 0,
34
- resourceUrl: undefined
34
+ resourceUrl: undefined,
35
+ podcastItemShowEmission: false
35
36
  },
36
37
  podcastsPage: {
37
38
  ProductorSearch: true,
@@ -124,6 +125,7 @@ export interface PodcastPage{
124
125
  hlsUri?: string,
125
126
  mainRubrique?: number,
126
127
  resourceUrl?: string |undefined,
128
+ podcastItemShowEmission?: boolean,
127
129
  }
128
130
  export interface PodcastsPage{
129
131
  ProductorSearch?: boolean,