@saooti/octopus-sdk 30.0.89 → 30.0.92

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
@@ -585,4 +585,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
585
585
  * 30.0.86 Podcastmaker newest
586
586
  * 30.0.87 Podcastmaker newest (swiper list)
587
587
  * 30.0.88 Podcastmaker newest (swiper list)
588
- * 30.0.89 Podcastmaker newest (swiper list)
588
+ * 30.0.89 Podcastmaker newest (swiper list)
589
+ * 30.0.90 Podcastmaker newest (swiper list)
590
+ * 30.0.91 Encore newest
591
+ * 30.0.92 Encore newest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.89",
3
+ "version": "30.0.92",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -99,7 +99,7 @@ export default defineComponent({
99
99
  props: {
100
100
  podcast: { default: ()=>({}), type: Object as ()=>Podcast},
101
101
  hidePlay: { default: false, type: Boolean},
102
- displayDescription: { default: undefined, type: String},
102
+ displayDescription: { default: false, type: Boolean},
103
103
  arrowDirection: { default: 'up', type: String},
104
104
  isAnimatorLive: { default: false, type: Boolean},
105
105
  fetchConference: { default: undefined, type: Object as ()=>Conference},
@@ -2,7 +2,18 @@
2
2
  <div
3
3
  class="d-flex flex-column p-3"
4
4
  >
5
- <h2>{{ title }}</h2>
5
+ <div class="d-flex align-items-center mb-2">
6
+ <h2 class="mb-0">
7
+ {{ title }}
8
+ </h2>
9
+ <router-link
10
+ v-if="isButtonNextTitle"
11
+ class="btn admin-button m-1 fw-bold saooti-right"
12
+ :title="buttonText"
13
+ :to="refTo"
14
+ @click="handleSeeMoreButton"
15
+ />
16
+ </div>
6
17
  <div class="d-flex justify-content-between">
7
18
  <div class="d-flex">
8
19
  <button
@@ -44,6 +55,7 @@
44
55
  </div>
45
56
  <slot name="list-inline" />
46
57
  <router-link
58
+ v-if="!isButtonNextTitle"
47
59
  class="btn btn-link align-self-center width-fit-content m-4"
48
60
  :to="refTo"
49
61
  @click="handleSeeMoreButton"
@@ -80,6 +92,7 @@ export default defineComponent({
80
92
  iabId: { default: undefined, type: Number},
81
93
  rubriqueId: { default: () => [], type: Array as ()=> Array<number> },
82
94
  noRubriquageId: { default: () => [], type: Array as ()=> Array<number> },
95
+ isButtonNextTitle: {default: false, type:Boolean}
83
96
  },
84
97
  emits:['sortChrono','sortPopular', 'displayPrevious', 'displayNext'],
85
98
  data() {
@@ -10,13 +10,14 @@
10
10
  >
11
11
  <PodcastImage
12
12
  :podcast="podcast"
13
- :hide-play="!hover || !description"
14
- :display-description="description"
13
+ :hide-play="!podcastItemDescription || (podcastItemDescription && (!hover || !description))"
14
+ :display-description="0!==description.length && podcastItemDescription"
15
15
  :arrow-direction="arrowDirection"
16
16
  @hideDescription="hideDescription"
17
17
  @showDescription="showDescription"
18
18
  />
19
19
  <div
20
+ v-if="podcastItemDescription"
20
21
  :id="'description-podcast-container-' + podcast.podcastId"
21
22
  class="description-podcast-item html-wysiwyg-content"
22
23
  :class="[
@@ -145,6 +146,9 @@ export default defineComponent({
145
146
  podcastItemShowEmission(): boolean {
146
147
  return (state.podcastPage.podcastItemShowEmission as boolean);
147
148
  },
149
+ podcastItemDescription(): boolean {
150
+ return (state.podcastPage.podcastItemDescription as boolean);
151
+ },
148
152
  date(): string {
149
153
  return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
150
154
  },
@@ -221,6 +225,7 @@ export default defineComponent({
221
225
  },
222
226
 
223
227
  mounted() {
228
+ if(!this.podcastItemDescription){return}
224
229
  const podcastDesc = document.getElementById(
225
230
  'description-podcast-' + this.podcast.podcastId
226
231
  );
@@ -236,10 +241,12 @@ export default defineComponent({
236
241
  },
237
242
  methods: {
238
243
  showDescription(): void {
244
+ if(!this.podcastItemDescription){return}
239
245
  this.arrowDirection = 'down';
240
246
  this.hover = true;
241
247
  },
242
248
  hideDescription(): void {
249
+ if(!this.podcastItemDescription){return}
243
250
  this.arrowDirection = 'up';
244
251
  this.hover = false;
245
252
  },
@@ -10,6 +10,7 @@
10
10
  :iab-id="iabId"
11
11
  :rubrique-id="rubriqueId"
12
12
  :no-rubriquage-id="noRubriquageId"
13
+ :is-button-next-title="true"
13
14
  @sortChrono="sortChrono"
14
15
  @sortPopular="sortPopular"
15
16
  >
@@ -18,10 +19,10 @@
18
19
  :loading-text="loading?$t('Loading podcasts ...'):undefined"
19
20
  />
20
21
  <swiper
21
- v-show="loaded"
22
+ v-if="!loading"
22
23
  :slides-per-view="numberItem"
23
24
  :space-between="10"
24
- :loop="true"
25
+ :loop="allPodcasts.length>=numberItem"
25
26
  :navigation="true"
26
27
  :modules="modules"
27
28
  >
@@ -83,7 +84,6 @@ export default defineComponent({
83
84
  data() {
84
85
  return {
85
86
  loading: true as boolean,
86
- loaded: true as boolean,
87
87
  popularSort: false as boolean,
88
88
  allPodcasts: [] as Array<Podcast>,
89
89
  modules: [Navigation],
@@ -151,11 +151,10 @@ export default defineComponent({
151
151
  sort: this.popularSort ? 'POPULARITY' : 'DATE',
152
152
  query: this.query,
153
153
  });
154
- this.loading = false;
155
- this.loaded = true;
156
154
  this.allPodcasts = this.allPodcasts.concat(
157
155
  data.result.filter((pod: Podcast|null) => null !== pod)
158
156
  );
157
+ this.loading = false;
159
158
  },
160
159
  sortPopular(): void {
161
160
  if (this.popularSort) return;
@@ -171,7 +170,6 @@ export default defineComponent({
171
170
  },
172
171
  reset(): void {
173
172
  this.loading = true;
174
- this.loaded = true;
175
173
  this.allPodcasts.length = 0;
176
174
  },
177
175
  },
@@ -35,6 +35,7 @@ const state:paramStore = {
35
35
  podcastItemShowEmission: false,
36
36
  clickPlayGoPage:false,
37
37
  listTypeClassic: true,
38
+ podcastItemDescription:true
38
39
  },
39
40
  podcastsPage: {
40
41
  ProductorSearch: true,
@@ -129,7 +130,8 @@ export interface PodcastPage{
129
130
  resourceUrl?: string |undefined,
130
131
  podcastItemShowEmission?: boolean,
131
132
  clickPlayGoPage?:boolean,
132
- listTypeClassic?:boolean
133
+ listTypeClassic?:boolean,
134
+ podcastItemDescription?:boolean,
133
135
  }
134
136
  export interface PodcastsPage{
135
137
  ProductorSearch?: boolean,