@saooti/octopus-sdk 36.0.3 → 36.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "36.0.3",
3
+ "version": "36.0.5",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -65,7 +65,6 @@
65
65
  .page-element{
66
66
  margin-top: 12rem;
67
67
  position: relative;
68
- z-index: 3;
69
68
  }
70
69
 
71
70
  .vue-swatches__trigger{
@@ -54,7 +54,7 @@
54
54
  <div
55
55
  v-for="p in podcasts"
56
56
  :key="p.podcastId"
57
- class="border-top emission-item-border-color p-2 secondary-bg d-flex flex-column"
57
+ class="border-top emission-item-border-color p-2 d-flex flex-column"
58
58
  >
59
59
  <router-link
60
60
  v-if="isProgressBar"
@@ -93,7 +93,7 @@
93
93
  <!-- eslint-enable -->
94
94
  </div>
95
95
  </router-link>
96
- <PodcastPlayBar :podcast="p" />
96
+ <PodcastPlayBar :podcast-id="p.podcastId" :duration="p.duration" />
97
97
  </div>
98
98
  <button
99
99
  v-if="
@@ -233,8 +233,8 @@ export default defineComponent({
233
233
  this.podcasts = data.result;
234
234
  this.$nextTick(() => {
235
235
  for (let index = 0, len = this.podcasts.length; index < len; index++) {
236
- const podcastDesc = (this.$refs['descriptionPodcast'+this.podcasts[index].podcastId] as Array<HTMLElement>)[0];
237
- const podcastDescContainer = (this.$refs['descriptionPodcastContainer'+this.podcasts[index].podcastId] as Array<HTMLElement>)[0];
236
+ const podcastDesc = (this.$refs['descriptionPodcast'+this.podcasts[index].podcastId] as Array<HTMLElement>)?.[0] ?? null;
237
+ const podcastDescContainer = (this.$refs['descriptionPodcastContainer'+this.podcasts[index].podcastId] as Array<HTMLElement>)?.[0] ?? null;
238
238
  if (
239
239
  null !== podcastDesc && null !== podcastDescContainer &&
240
240
  podcastDesc.clientHeight > podcastDescContainer.clientHeight
@@ -258,6 +258,7 @@ export default defineComponent({
258
258
  width: 100%;
259
259
  max-width: $octopus-item-size;
260
260
  height: min-content;
261
+ border: 2px solid #eee;
261
262
  border-radius: $octopus-borderradius;
262
263
  overflow: hidden;
263
264
  .emission-item-border-color {
@@ -165,7 +165,7 @@ export default defineComponent({
165
165
  justify-content: flex-end;
166
166
  width: 100%;
167
167
  position: sticky;
168
- background: white;
168
+ background: $octopus-background;
169
169
  padding: 0.5rem 0;
170
170
  z-index: 10;
171
171
  .btn{
@@ -101,7 +101,8 @@
101
101
  :is-guest="true"
102
102
  />
103
103
  <PodcastPlayBar
104
- :podcast="podcast"
104
+ :podcast-id="podcast.podcastId"
105
+ :duration="podcast.duration"
105
106
  />
106
107
  <div v-if="editRight && !isPodcastmaker">
107
108
  <div
@@ -20,11 +20,10 @@
20
20
  </template>
21
21
  </div>
22
22
  </div>
23
- <div class="d-flex flex-column me-2">
23
+ <div class="d-flex flex-column me-2" v-if="podcast || emission ||playlist">
24
24
  <div class="h4 mb-2">{{$t('Newsletter')}}</div>
25
25
  <div class="d-flex align-items-center justify-content-center">
26
26
  <button
27
- v-if="podcast || emission ||playlist"
28
27
  :class="getClass()"
29
28
  class="saooti-newsletter"
30
29
  :title="$t('Share newsletter')"
@@ -200,32 +200,14 @@ export default defineComponent({
200
200
  iFrameHeight(): string {
201
201
  switch (this.iFrameModel) {
202
202
  case 'large':
203
- if (this.podcast) return '180px';
204
- if ('number' === this.episodeNumbers && !this.playlist) {
205
- switch (this.iFrameNumber.toString()) {
206
- case '1': return '270px';
207
- case '2': return '320px';
208
- case '3': return '360px';
209
- case '4': return '420px';
210
- case '5': return '420px';
211
- default: return '420px';
212
- }
213
- }
214
- return '435px';
203
+ if (this.podcast) return '200px';
204
+ return '350px';
215
205
  case 'emissionLarge':
216
206
  case 'largeSuggestion':
217
- if ('number' !== this.episodeNumbers) return '510px';
218
- switch (this.iFrameNumber.toString()) {
219
- case '1':return '315px';
220
- case '2':return '365px';
221
- case '3':return '420px';
222
- case '4':return '470px';
223
- case '5':return '470px';
224
- default:return '470px';
225
- }
226
- case 'emission':return '530px';
207
+ return '350px';
208
+ case 'emission':return '520px';
227
209
  default:
228
- if (this.podcast) return '520px';
210
+ if (this.podcast) return '500px';
229
211
  return '530px';
230
212
  }
231
213
  },
@@ -341,7 +323,10 @@ export default defineComponent({
341
323
  }
342
324
  }
343
325
  .max-iframe {
344
- max-width: 300px;
326
+ width: 500px;
327
+ @media (max-width: 960px){
328
+ width: calc(100% - 2rem);
329
+ }
345
330
  }
346
331
  }
347
332
  </style>
@@ -45,9 +45,9 @@
45
45
  {{ link.title }}
46
46
  </router-link>
47
47
  </template>
48
- <button id="more-dropdown" class="d-flex align-items-center btn-transparent p-3">
48
+ <button id="more-dropdown" class="d-flex align-items-center hide-phone btn-transparent p-3">
49
49
  <div class="link-hover">{{$t('More')}}</div>
50
- <div class="hide-phone ms-1 saooti-down"></div>
50
+ <div class="ms-1 saooti-down"></div>
51
51
  </button>
52
52
  <Popover
53
53
  target="more-dropdown"
@@ -12,7 +12,7 @@ const state:ParamStore = {
12
12
  isPlaylist: false,
13
13
  isProduction: false,
14
14
  isContribution: true,
15
- ApiUri: 'https://api.staging.saooti.org/',
15
+ ApiUri: 'https://api.dev2.saooti.org/',
16
16
  podcastmaker: false,
17
17
  buttonPlus: true,
18
18
  allCategories: [],
@@ -26,8 +26,8 @@ const state:ParamStore = {
26
26
  SharePlayer: true,
27
27
  ShareButtons: true,
28
28
  ShareDistribution: true,
29
- MiniplayerUri: 'https://playerbeta.staging.saooti.org/',
30
- hlsUri: 'https://hls.staging.saooti.org/',
29
+ MiniplayerUri: 'https://playerbeta.dev2.saooti.org/',
30
+ hlsUri: 'https://hls.dev2.saooti.org/',
31
31
  mainRubrique: 0,
32
32
  resourceUrl: undefined,
33
33
  podcastItemShowEmission: false,
@@ -79,13 +79,13 @@ const state:ParamStore = {
79
79
  userName: '',
80
80
  },
81
81
  octopusApi: {
82
- url: 'https://api.staging.saooti.org/',
83
- commentsUrl: 'https://comments.staging.saooti.org/',
84
- imageUrl:'https://imageproxy.staging.saooti.org/',
85
- studioUrl: 'https://studio.staging.saooti.org/',
86
- playerUrl: 'https://playerbeta.staging.saooti.org/',
87
- speechToTextUrl:'https://speech2text.staging.saooti.org/',
88
- recoUrl: 'https://reco.staging.saooti.org/',
82
+ url: 'https://api.dev2.saooti.org/',
83
+ commentsUrl: 'https://comments.dev2.saooti.org/',
84
+ imageUrl:'https://imageproxy.dev2.saooti.org/',
85
+ studioUrl: 'https://studio.dev2.saooti.org/',
86
+ playerUrl: 'https://playerbeta.dev2.saooti.org/',
87
+ speechToTextUrl:'https://speech2text.dev2.saooti.org/',
88
+ recoUrl: 'https://reco.dev2.saooti.org/',
89
89
  organisationId: undefined,
90
90
  rubriqueIdFilter: undefined,
91
91
  },