@saooti/octopus-sdk 31.0.38 → 31.0.39

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
@@ -587,6 +587,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
587
587
  * 30.0.88 Podcastmaker newest (swiper list)
588
588
  * 30.0.89 Podcastmaker newest (swiper list)
589
589
  * 30.0.90 Podcastmaker newest (swiper list)
590
+ * 30.0.91 Encore newest
590
591
 
591
592
  * 31.0.0 Passage en 31
592
593
  * 31.0.1 Ajout pocket casts
@@ -627,4 +628,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
627
628
  * 31.0.36 Améliorations multiples (pagination, modales, pages d'erreurs...)
628
629
  * 31.0.37 Continuation améliorations
629
630
  * 31.0.38 Changement reponsive topbar
631
+ * 31.0.39 Erreur refactor
630
632
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "31.0.38",
3
+ "version": "31.0.39",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -20,7 +20,7 @@
20
20
  :key="e.emissionId"
21
21
  >
22
22
  <EmissionItem
23
- v-if="-1!==e.emissionId"
23
+ v-if="0!==e.emissionId"
24
24
  :emission="e"
25
25
  />
26
26
  </template>
@@ -35,7 +35,7 @@
35
35
  :key="e.emissionId"
36
36
  >
37
37
  <EmissionPlayerItem
38
- v-if="-1!==e.emissionId"
38
+ v-if="0!==e.emissionId"
39
39
  :emission="e"
40
40
  class="m-3 flex-shrink-0"
41
41
  :class="mainRubriquage(e)"
@@ -148,7 +148,7 @@ export default defineComponent({
148
148
  this.reloadList();
149
149
  },
150
150
  dfirst(): void{
151
- if(!this.emissions[this.dfirst] || -1===this.emissions[this.dfirst].emissionId){
151
+ if(!this.emissions[this.dfirst] || 0===this.emissions[this.dfirst].emissionId){
152
152
  this.fetchContent(false);
153
153
  }
154
154
  },
@@ -23,7 +23,7 @@
23
23
  :key="p.podcastId"
24
24
  >
25
25
  <PodcastItem
26
- v-if="-1!==p.podcastId"
26
+ v-if="0!==p.podcastId"
27
27
  :podcast="p"
28
28
  />
29
29
  </template>
@@ -80,7 +80,7 @@ export default defineComponent({
80
80
  this.reloadList();
81
81
  },
82
82
  dfirst(): void{
83
- if(!this.lives[this.dfirst] || -1===this.lives[this.dfirst].podcastId){
83
+ if(!this.lives[this.dfirst] || 0===this.lives[this.dfirst].podcastId){
84
84
  this.fetchContent(false);
85
85
  }
86
86
  },
@@ -18,7 +18,7 @@
18
18
  :key="p.participantId"
19
19
  >
20
20
  <ParticipantItem
21
- v-if="-1!==p.participantId"
21
+ v-if="0!==p.participantId"
22
22
  :participant="p"
23
23
  />
24
24
  </template>
@@ -91,7 +91,7 @@ export default defineComponent({
91
91
  this.reloadList();
92
92
  },
93
93
  dfirst(): void{
94
- if(!this.participants[this.dfirst] || -1===this.participants[this.dfirst].participantId){
94
+ if(!this.participants[this.dfirst] || 0===this.participants[this.dfirst].participantId){
95
95
  this.fetchContent(false);
96
96
  }
97
97
  },
@@ -18,7 +18,7 @@
18
18
  :key="p.playlistId"
19
19
  >
20
20
  <PlaylistItem
21
- v-if="-1!==p.playlistId"
21
+ v-if="0!==p.playlistId"
22
22
  :playlist="p"
23
23
  />
24
24
  </template>
@@ -94,7 +94,7 @@ export default defineComponent({
94
94
  this.reloadList();
95
95
  },
96
96
  dfirst(): void{
97
- if(!this.playlists[this.dfirst] || -1===this.playlists[this.dfirst].playlistId){
97
+ if(!this.playlists[this.dfirst] || 0===this.playlists[this.dfirst].playlistId){
98
98
  this.fetchContent(false);
99
99
  }
100
100
  },
@@ -30,7 +30,7 @@
30
30
  :key="p.podcastId"
31
31
  >
32
32
  <PodcastItem
33
- v-if="-1!==p.podcastId"
33
+ v-if="0!==p.podcastId"
34
34
  :podcast="p"
35
35
  />
36
36
  </template>
@@ -97,7 +97,7 @@ export default defineComponent({
97
97
  props: {
98
98
  podcast: { default: ()=>({}), type: Object as ()=>Podcast},
99
99
  hidePlay: { default: false, type: Boolean},
100
- displayDescription: { default: undefined, type: String},
100
+ displayDescription: { default: false, type: Boolean},
101
101
  arrowDirection: { default: 'up', type: String},
102
102
  isAnimatorLive: { default: false, type: Boolean},
103
103
  fetchConference: { default: undefined, type: Object as ()=>Conference},
@@ -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="description && 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
  ref="descriptionPodcastContainer"
21
22
  class="description-podcast-item html-wysiwyg-content"
22
23
  :class="[
@@ -80,6 +81,9 @@ export default defineComponent({
80
81
  podcastBorderBottom(): boolean {
81
82
  return (state.podcastsPage.podcastBorderBottom as boolean);
82
83
  },
84
+ podcastItemDescription(): boolean {
85
+ return (state.podcastPage.podcastItemDescription as boolean);
86
+ },
83
87
  displayDate(): string {
84
88
  return moment(this.podcast.pubDate).format('X');
85
89
  },
@@ -89,6 +93,7 @@ export default defineComponent({
89
93
  },
90
94
 
91
95
  mounted() {
96
+ if(!this.podcastItemDescription){return}
92
97
  const podcastDesc = (this.$refs.descriptionPodcast as HTMLElement);
93
98
  const podcastDescContainer = (this.$refs.descriptionPodcastContainer as HTMLElement);
94
99
  if (
@@ -100,10 +105,12 @@ export default defineComponent({
100
105
  },
101
106
  methods: {
102
107
  showDescription(): void {
108
+ if(!this.podcastItemDescription){return}
103
109
  this.arrowDirection = 'down';
104
110
  this.hover = true;
105
111
  },
106
112
  hideDescription(): void {
113
+ if(!this.podcastItemDescription){return}
107
114
  this.arrowDirection = 'up';
108
115
  this.hover = false;
109
116
  },
@@ -19,7 +19,7 @@
19
19
  :key="p.podcastId"
20
20
  >
21
21
  <PodcastItem
22
- v-if="-1!==p.podcastId"
22
+ v-if="0!==p.podcastId"
23
23
  :podcast="p"
24
24
  />
25
25
  </template>
@@ -125,7 +125,7 @@ export default defineComponent({
125
125
  this.reloadList();
126
126
  },
127
127
  dfirst(): void{
128
- if(!this.podcasts[this.dfirst] || -1===this.podcasts[this.dfirst].podcastId){
128
+ if(!this.podcasts[this.dfirst] || 0===this.podcasts[this.dfirst].podcastId){
129
129
  this.fetchContent(false);
130
130
  }
131
131
  },
@@ -34,6 +34,7 @@ const state:paramStore = {
34
34
  podcastItemShowEmission: false,
35
35
  clickPlayGoPage:false,
36
36
  listTypeClassic: true,
37
+ podcastItemDescription:true
37
38
  },
38
39
  podcastsPage: {
39
40
  ProductorSearch: true,
@@ -122,7 +123,8 @@ export interface PodcastPage{
122
123
  resourceUrl?: string |undefined,
123
124
  podcastItemShowEmission?: boolean,
124
125
  clickPlayGoPage?:boolean,
125
- listTypeClassic?:boolean
126
+ listTypeClassic?:boolean,
127
+ podcastItemDescription?:boolean,
126
128
  }
127
129
  export interface PodcastsPage{
128
130
  ProductorSearch?: boolean,
@@ -13,7 +13,7 @@ import { Rubrique } from "./class/rubrique/rubrique"
13
13
  export function emptyPlaylistData(): Playlist{
14
14
  return {
15
15
  description: '',
16
- playlistId: -1,
16
+ playlistId: 0,
17
17
  podcasts: [],
18
18
  score: 0,
19
19
  title: '',
@@ -23,12 +23,12 @@ export function emptyParticipantData(): Participant{
23
23
  return {
24
24
  firstName: '',
25
25
  lastName: '',
26
- participantId:-1
26
+ participantId:0
27
27
  }
28
28
  }
29
29
  export function emptyEmissionData(): Emission{
30
30
  return {
31
- emissionId: -1 ,
31
+ emissionId: 0,
32
32
  name: '' ,
33
33
  description: '' ,
34
34
  imageUrl: '' ,
@@ -45,7 +45,7 @@ export function emptyEmissionData(): Emission{
45
45
 
46
46
  export function emptyPodcastData(): Podcast{
47
47
  return {
48
- podcastId:-1,
48
+ podcastId:0,
49
49
  audioUrl: '' ,
50
50
  audioStorageUrl: '' ,
51
51
  imageUrl: '' ,