@saooti/octopus-sdk 36.0.11 → 36.0.12

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/index.ts CHANGED
@@ -13,6 +13,7 @@ export const getHome = () => import("./src/components/pages/Home.vue");
13
13
  export const getCategory = () => import("./src/components/pages/Category.vue");
14
14
  export const getRubrique = () => import("./src/components/pages/Rubrique.vue");
15
15
  export const getError403Page = () => import("./src/components/pages/Error403Page.vue");
16
+ export const getRadio = () => import("./src/components/pages/Radio.vue");
16
17
 
17
18
  //Misc
18
19
  export const getAccordion = () => import("./src/components/misc/Accordion.vue");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "36.0.11",
3
+ "version": "36.0.12",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -10,7 +10,11 @@
10
10
  v-for="(obj, index) in listObject"
11
11
  :key="obj"
12
12
  >
13
- <slot name="octopusSlide" :option="obj" :index="index"/>
13
+ <slot
14
+ name="octopusSlide"
15
+ :option="obj"
16
+ :index="index"
17
+ />
14
18
  </swiper-slide>
15
19
  </swiper>
16
20
  </template>
@@ -2,7 +2,7 @@
2
2
  <PodcastItem
3
3
  v-if="live && 0!==live.podcastId"
4
4
  :podcast="live"
5
- :fetchConference="fetchConference"
5
+ :fetch-conference="fetchConference"
6
6
  />
7
7
  </template>
8
8
 
@@ -4,7 +4,9 @@
4
4
  class="d-flex flex-column align-items-start mt-3"
5
5
  >
6
6
  <div class="d-flex justify-content-between amlign-items-center">
7
- <h2 class="mb-0 big-h2 mb-3">{{ $t('Live') }}</h2>
7
+ <h2 class="mb-0 big-h2 mb-3">
8
+ {{ $t('Live') }}
9
+ </h2>
8
10
  <router-link
9
11
  v-if="liveRight && !isPodcastmaker"
10
12
  to="/main/priv/edit/live"
@@ -19,7 +21,7 @@
19
21
  v-model:textInit="selectedStatus"
20
22
  id-select="status-live-chooser-select"
21
23
  :label="$t('Selection by status')"
22
- :displayLabel="false"
24
+ :display-label="false"
23
25
  :options="statusArraySelect"
24
26
  class="mb-3"
25
27
  />
@@ -30,7 +32,7 @@
30
32
  <template v-if="lives.length">
31
33
  <SwiperList
32
34
  v-if="!loading"
33
- :listObject="lives"
35
+ :list-object="lives"
34
36
  >
35
37
  <template #octopusSlide="{option, index}">
36
38
  <LiveItem
@@ -1,6 +1,11 @@
1
1
  <template>
2
2
  <div class="d-flex align-items-center">
3
- <div v-if="currentlyPlayingString.length || podcastRadio" class="me-2 fw-bold">{{$t('Currently') +' : '}}</div>
3
+ <div
4
+ v-if="currentlyPlayingString.length || podcastRadio"
5
+ class="me-2 fw-bold"
6
+ >
7
+ {{ $t('Currently') +' : ' }}
8
+ </div>
4
9
  <router-link
5
10
  v-if="podcastRadio"
6
11
  class="d-flex align-items-center"
@@ -8,18 +13,21 @@
8
13
  name: 'podcast',
9
14
  params: { podcastId: podcastRadio.podcastId },
10
15
  query: { productor: filterOrgaId },
11
- }">
12
- <img
13
- v-lazy="proxyImageUrl(podcastRadio.imageUrl, '80')"
14
- width="80"
15
- height="80"
16
- class="small-img-box"
17
- :title="$t('Episode name image', {name:podcastRadio.title})"
18
- :alt="$t('Episode name image', {name:podcastRadio.title})"
19
- >
20
- <div>{{podcastRadio.title}}</div>
21
- </router-link>
22
- <div v-else-if="currentlyPlayingString.length">{{currentlyPlayingString}}</div>
16
+ }"
17
+ >
18
+ <img
19
+ v-lazy="proxyImageUrl(podcastRadio.imageUrl, '80')"
20
+ width="80"
21
+ height="80"
22
+ class="small-img-box"
23
+ :title="$t('Episode name image', {name:podcastRadio.title})"
24
+ :alt="$t('Episode name image', {name:podcastRadio.title})"
25
+ >
26
+ <div>{{ podcastRadio.title }}</div>
27
+ </router-link>
28
+ <div v-else-if="currentlyPlayingString.length">
29
+ {{ currentlyPlayingString }}
30
+ </div>
23
31
  </div>
24
32
  </template>
25
33
 
@@ -12,7 +12,7 @@
12
12
  class="image-play-button"
13
13
  @click="playRadio"
14
14
  >
15
- <div class="icon-container">
15
+ <div class="icon-container">
16
16
  <div
17
17
  v-if="!playingRadio"
18
18
  :title="$t('Play')"
@@ -29,7 +29,7 @@
29
29
  <div class="ms-2">
30
30
  {{ playText }}
31
31
  </div>
32
- </div>
32
+ </div>
33
33
  </button>
34
34
  </div>
35
35
  </template>
@@ -1,6 +1,9 @@
1
1
  <template>
2
- <div v-if="radio" class="d-flex border w-100 p-3">
3
- <RadioImage :radio="radio"/>
2
+ <div
3
+ v-if="radio"
4
+ class="d-flex border w-100 p-3"
5
+ >
6
+ <RadioImage :radio="radio" />
4
7
  <router-link
5
8
  :to="{
6
9
  name: 'radio',
@@ -9,9 +12,16 @@
9
12
  }"
10
13
  class="text-dark emission-item-text"
11
14
  >
12
- <div class="emission-name mb-2">{{ radio.name }}</div>
13
- <div v-if="radio.description" class="ten-line-clamp">{{ radio.description }}</div>
14
- <RadioCurrently :radio="radio"/>
15
+ <div class="emission-name mb-2">
16
+ {{ radio.name }}
17
+ </div>
18
+ <div
19
+ v-if="radio.description"
20
+ class="ten-line-clamp"
21
+ >
22
+ {{ radio.description }}
23
+ </div>
24
+ <RadioCurrently :radio="radio" />
15
25
  </router-link>
16
26
  </div>
17
27
  </template>
@@ -3,7 +3,9 @@
3
3
  v-if="(filterOrgaId || organisationId) && radio.length"
4
4
  class="d-flex flex-column align-items-start mt-3"
5
5
  >
6
- <h2 class="mb-0 big-h2 mb-3">{{ $t('Radio') }}</h2>
6
+ <h2 class="mb-0 big-h2 mb-3">
7
+ {{ $t('Radio') }}
8
+ </h2>
7
9
  <template v-if="radio.length">
8
10
  <RadioItem
9
11
  v-for="radioItem in radio"
@@ -25,7 +27,7 @@ import { Canal } from '@/stores/class/radio/canal';
25
27
  import { defineComponent } from 'vue'
26
28
  import { AxiosError } from 'axios';
27
29
  export default defineComponent({
28
- name: 'ecbd98d9-79bd-4312-ad5e-fc7c1c4a191c',
30
+ name: 'Ecbd98d979bd4312Ad5eFc7c1c4a191c',
29
31
  components: {
30
32
  RadioItem,
31
33
  },
@@ -113,7 +113,7 @@ export default defineComponent({
113
113
  size: this.dsize,
114
114
  query: this.query,
115
115
  organisationId: this.organisation,
116
- ambiance:"NONE",
116
+ ambianceType:"NONE",
117
117
  sort: this.sort,
118
118
  };
119
119
  try {
@@ -12,7 +12,7 @@
12
12
  :hide-play="!podcastItemDescription || (podcastItemDescription && (!hoverDesc || !description))"
13
13
  :display-description="0!==description.length && podcastItemDescription"
14
14
  :arrow-direction="arrowDirection"
15
- :fetchConference="fetchConference"
15
+ :fetch-conference="fetchConference"
16
16
  @hideDescription="hideDescription"
17
17
  @showDescription="showDescription"
18
18
  />
@@ -20,7 +20,7 @@
20
20
  />
21
21
  <SwiperList
22
22
  v-if="!loading"
23
- :listObject="allPodcasts"
23
+ :list-object="allPodcasts"
24
24
  >
25
25
  <template #octopusSlide="{option}">
26
26
  <PodcastItem
@@ -41,7 +41,6 @@ import Popover from '../../misc/Popover.vue';
41
41
  import ShareButtonsIntern from './ShareButtonsIntern.vue';
42
42
  import { defineComponent } from 'vue';
43
43
  import { Playlist } from '@/stores/class/general/playlist';
44
- import { Canal } from '@/stores/class/radio/canal';
45
44
  export default defineComponent({
46
45
  components: {
47
46
  ShareButtonsIntern,
@@ -32,9 +32,9 @@
32
32
  :organisation-id="organisationId"
33
33
  />
34
34
  <SharePlayerColors
35
- class="mt-3"
36
35
  v-model:color="color"
37
36
  v-model:theme="theme"
37
+ class="mt-3"
38
38
  />
39
39
  <ClassicCheckbox
40
40
  v-if="isPodcastNotVisible || playlist"
@@ -3,16 +3,16 @@
3
3
  <h2 class="big-h2 mb-3 height-40">
4
4
  {{ $t('Embed') }}
5
5
  </h2>
6
- <div class="d-flex">
7
- <iframe
8
- id="miniplayerIframeRadio"
9
- title="miniplayer"
10
- :src="iFrameSrc"
11
- width="100%"
12
- height="140px"
13
- class="max-iframe mx-3 flex-grow-1"
14
- />
15
- <div class="d-flex flex-column flex-grow-1 align-items-center">
6
+ <div class="d-flex">
7
+ <iframe
8
+ id="miniplayerIframeRadio"
9
+ title="miniplayer"
10
+ :src="iFrameSrc"
11
+ width="100%"
12
+ height="140px"
13
+ class="max-iframe mx-3 flex-grow-1"
14
+ />
15
+ <div class="d-flex flex-column flex-grow-1 align-items-center">
16
16
  <SharePlayerColors
17
17
  v-model:color="color"
18
18
  v-model:theme="theme"
@@ -20,8 +20,6 @@ export const fetchRadioData = defineComponent({
20
20
  for(let i = 0; i < arrayMetadata.length; i++){
21
21
  if(dayjs().valueOf()-29000 > dayjs(arrayMetadata[i].startDate).valueOf()){
22
22
  if(previousTitle !== arrayMetadata[i].title){
23
- //todo
24
- arrayMetadata[i].podcastId = 98619;
25
23
  if(arrayMetadata[i].podcastId){
26
24
  const data : Podcast = await octopusApi.fetchData<Podcast>(0, 'podcast/'+arrayMetadata[i].podcastId);
27
25
  callbackMetadata(arrayMetadata[i], data);
@@ -10,9 +10,9 @@
10
10
  />
11
11
  </template>
12
12
  <template v-if="filterOrgaId || organisationId">
13
- <!-- <LiveList
13
+ <LiveList
14
14
  :organisation-id="organisationId"
15
- /> -->
15
+ />
16
16
  <RadioList
17
17
  :organisation-id="organisationId"
18
18
  />
@@ -105,7 +105,7 @@ export default defineComponent({
105
105
  return this.playlistRadio ? this.$t('Mix of episodes'):this.$t('Playlist');
106
106
  },
107
107
  playlistRadio(): boolean{
108
- return "AMBIANCE"===this.playlist?.ambiance || "PROGRAMMED"===this.playlist?.ambiance
108
+ return "AMBIANCE"===this.playlist?.ambianceType || "AMBIANCE_PROGRAMMED"===this.playlist?.ambianceType
109
109
  },
110
110
  name(): string {
111
111
  return this.playlist?.title ??'';
@@ -10,25 +10,30 @@
10
10
  :style="backgroundDisplay"
11
11
  />
12
12
  </div>
13
- <div v-if="radio" class="d-flex flex-column page-element">
13
+ <div
14
+ v-if="radio"
15
+ class="d-flex flex-column page-element"
16
+ >
14
17
  <div class="module-box">
15
18
  <div class="mb-5 descriptionText">
16
- <RadioImage :radio="radio"/>
19
+ <RadioImage :radio="radio" />
17
20
  <h2>{{ radio.name }}</h2>
18
- <div v-if="radio.description">{{radio.description}}</div>
21
+ <div v-if="radio.description">
22
+ {{ radio.description }}
23
+ </div>
19
24
  </div>
20
- <RadioCurrently :radio="radio"/>
25
+ <RadioCurrently :radio="radio" />
21
26
  <EditBoxRadio
22
27
  v-if="editRight"
23
28
  :radio="radio"
24
29
  />
25
30
  </div>
26
- <SharePlayerRadio
31
+ <SharePlayerRadio
27
32
  v-if="authenticated"
28
33
  :canal="radio"
29
34
  :organisation-id="myOrganisationId"
30
35
  />
31
- <ShareButtons/>
36
+ <ShareButtons />
32
37
  </div>
33
38
  </template>
34
39
  <ClassicLoading
@@ -4,7 +4,7 @@ import { FetchParam } from './fetchParam';
4
4
 
5
5
 
6
6
  export interface Playlist {
7
- ambiance?: string; //#11919 "NONE", "AMBIANCE", "PROGRAMMED"
7
+ ambianceType?: string; //#11919 "NONE", "AMBIANCE", "PROGRAMMED"
8
8
  imageUrl?: string;
9
9
  description: string;
10
10
  organisation?: Organisation;
@@ -19,7 +19,7 @@ export interface Playlist {
19
19
 
20
20
  export function emptyPlaylistData(): Playlist{
21
21
  return {
22
- ambiance:"NONE",
22
+ ambianceType:"NONE",
23
23
  description: '',
24
24
  playlistId: 0,
25
25
  podcasts: undefined,