@saooti/octopus-sdk 32.0.32 → 32.0.34

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
@@ -683,3 +683,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
683
683
  * 32.0.30 SpeechToText
684
684
  * 32.0.31 Merge live IOS
685
685
  * 32.0.32 Error player parameters
686
+ * 32.0.33 Pétouilles graphiques ou d'UX diverses
687
+ * 32.0.34 Modale RSS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "32.0.32",
3
+ "version": "32.0.34",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -69,4 +69,9 @@ export default defineComponent({
69
69
  },
70
70
  }
71
71
  })
72
- </script>
72
+ </script>
73
+ <style lang="scss">
74
+ .octopus-app .loading-size{
75
+ height: 21.4rem;
76
+ }
77
+ </style>
@@ -19,10 +19,11 @@
19
19
  >
20
20
  <template #list-inline>
21
21
  <ClassicLoading
22
+ class="loading-size"
22
23
  :loading-text="loading?$t('Loading podcasts ...'):undefined"
23
24
  />
24
25
  <transition-group
25
- v-show="loaded"
26
+ v-show="!loading"
26
27
  :name="transitionName"
27
28
  class="element-list-inline"
28
29
  tag="ul"
@@ -84,7 +85,6 @@ export default defineComponent({
84
85
  data() {
85
86
  return {
86
87
  loading: true as boolean,
87
- loaded: true as boolean,
88
88
  index: 0 as number,
89
89
  first: 0 as number,
90
90
  size: 5 as number,
@@ -167,7 +167,6 @@ export default defineComponent({
167
167
  query: this.query,
168
168
  }, true);
169
169
  this.loading = false;
170
- this.loaded = true;
171
170
  this.totalCount = data.count;
172
171
  if (this.allPodcasts.length + data.result.length < this.totalCount) {
173
172
  const nexEl = data.result.pop() as Podcast;
@@ -226,7 +225,6 @@ export default defineComponent({
226
225
  },
227
226
  reset(): void {
228
227
  this.loading = true;
229
- this.loaded = true;
230
228
  this.index = 0;
231
229
  this.first = 0;
232
230
  this.totalCount = 0;
@@ -238,4 +236,4 @@ export default defineComponent({
238
236
  },
239
237
  },
240
238
  })
241
- </script>
239
+ </script>
@@ -121,6 +121,7 @@ export default defineComponent({
121
121
  list-style: none;
122
122
  position: relative;
123
123
  width: 13rem;
124
+ height: 21.4rem;
124
125
  overflow: hidden;
125
126
  display: flex;
126
127
  flex-direction: column;
@@ -16,6 +16,7 @@
16
16
  >
17
17
  <template #list-inline>
18
18
  <ClassicLoading
19
+ class="loading-size"
19
20
  :loading-text="loading?$t('Loading podcasts ...'):undefined"
20
21
  />
21
22
  <swiper
@@ -174,17 +174,17 @@ export default defineComponent({
174
174
  if (this.emission){
175
175
  return api +'emission/' + this.emission.emissionId + '.rss';
176
176
  }
177
- if (this.organisationId){
178
- return api +'productor/' + this.organisationId + '.rss';
179
- }
180
177
  if (this.participantId){
181
178
  return api +'participant/' + this.participantId + '.rss';
182
179
  }
180
+ if (this.organisationId){
181
+ return api +'productor/' + this.organisationId + '.rss';
182
+ }
183
183
  return '';
184
184
  },
185
185
  },
186
186
  async created(){
187
- if(this.organisationId){
187
+ if(this.organisationId || this.participantId){
188
188
  this.displayRss = await octopusApi.fetchDataPublic<boolean>(0,`rss/participants/allowed/${this.organisationId}`);
189
189
  }else{
190
190
  this.displayRss = true;
@@ -12,6 +12,7 @@
12
12
  {{ $t('No advertising') }}
13
13
  </div>
14
14
  <iframe
15
+ id="miniplayerIframe"
15
16
  title="miniplayer"
16
17
  :src="iFrameSrc"
17
18
  scrolling="no"
@@ -223,7 +224,7 @@ export default defineComponent({
223
224
  switch (this.iFrameModel) {
224
225
  case 'large':
225
226
  if (this.podcast) return '180px';
226
- if ('number' === this.episodeNumbers) {
227
+ if ('number' === this.episodeNumbers && !this.playlist) {
227
228
  switch (this.iFrameNumber.toString()) {
228
229
  case '1': return '270px';
229
230
  case '2': return '320px';
@@ -16,13 +16,13 @@
16
16
  ]"
17
17
  class="btn share-btn mb-2 mx-2"
18
18
  :href="sub.url"
19
- :title="sub.name"
19
+ :title="sub.title"
20
20
  >
21
21
  <span :class="sub.icon">
22
22
  <div
23
23
  v-for="indexPath in getPathNumber(sub.name)"
24
24
  :key="indexPath"
25
- :class="'path'+(indexPath+1)"
25
+ :class="'path'+(indexPath)"
26
26
  />
27
27
  </span>
28
28
  </a>
@@ -41,17 +41,17 @@ export default defineComponent({
41
41
  computed:{
42
42
  subscriptionsDisplay(){
43
43
  const sub = [
44
- {name : 'amazon', icon : 'saooti-amazon', url : this.getUrl('amazon')},
45
- {name:'applePodcast', icon:'saooti-apple', url : this.getUrl('applePodcast')},
46
- {name:'deezer', icon:'saooti-deezer', url : this.getUrl('deezer')},
47
- {name:'googlePodcasts', icon:"saooti-google-podcasts", url : this.getUrl('googlePodcasts')},
48
- {name:'playerFm', icon: 'saooti-playerfm', url : this.getUrl('playerFm')},
49
- {name:'pocketCasts', icon:'saooti-pocket-casts', url : this.getUrl('pocketCasts')},
50
- {name:'podcastAddict', icon: 'saooti-podcast-addict', url : this.getUrl('podcastAddict')},
51
- {name:'radioline', icon:'saooti-radioline', url : this.getUrl('radioline')},
52
- {name:'spotify', icon:'saooti-spotify', url : this.getUrl('spotify')},
53
- {name:'stitcher', icon:'saooti-stitcher-logo', url : this.getUrl('stitcher')},
54
- {name:'tunein', icon:'saooti-tunin', url : this.getUrl('tunein')}
44
+ {name : 'amazon', icon : 'saooti-amazon',title:'Amazon Music | Podcasters', url : this.getUrl('amazon')},
45
+ {name:'applePodcast', icon:'saooti-apple', title:'Apple Podcast | iTunes', url : this.getUrl('applePodcast')},
46
+ {name:'deezer', icon:'saooti-deezer', title:'Deezer', url : this.getUrl('deezer')},
47
+ {name:'googlePodcasts', icon:"saooti-google-podcasts",title:'Google Podcasts', url : this.getUrl('googlePodcasts')},
48
+ {name:'playerFm', icon: 'saooti-playerfm',title:'PlayerFM', url : this.getUrl('playerFm')},
49
+ {name:'pocketCasts', icon:'saooti-pocket-casts', title:'Pocket Casts', url : this.getUrl('pocketCasts')},
50
+ {name:'podcastAddict', icon: 'saooti-podcast-addict', title:'Podcast Addict', url : this.getUrl('podcastAddict')},
51
+ {name:'radioline', icon:'saooti-radioline',title:'Radioline', url : this.getUrl('radioline')},
52
+ {name:'spotify', icon:'saooti-spotify',title:'Spotify', url : this.getUrl('spotify')},
53
+ {name:'stitcher', icon:'saooti-stitcher-logo', title:'Stitcher', url : this.getUrl('stitcher')},
54
+ {name:'tunein', icon:'saooti-tunin',title:'TuneIn', url : this.getUrl('tunein')}
55
55
  ];
56
56
  return sub.filter(item=> item.url);
57
57
  }
@@ -2,6 +2,7 @@
2
2
  <div
3
3
  v-show="displayMenu"
4
4
  class="left-menu-container"
5
+ @mouseleave="onMenuClick"
5
6
  >
6
7
  <template
7
8
  v-for="link in routerLinkArray"
@@ -28,7 +28,7 @@
28
28
  >
29
29
  </p>
30
30
  <RssSection
31
- v-if="emission"
31
+ v-if="emission && authenticated"
32
32
  :emission="emission"
33
33
  />
34
34
  </div>
@@ -54,6 +54,11 @@ export default defineComponent({
54
54
  emission: { default: undefined, type: Object as ()=> Emission},
55
55
  },
56
56
  emits: ['close', 'copy'],
57
+ computed: {
58
+ authenticated(): boolean {
59
+ return this.$store.state.authentication.isAuthenticated;
60
+ },
61
+ },
57
62
  mounted(){
58
63
  (this.$refs.focusElement as HTMLElement)?.focus();
59
64
  },