@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 +1 -0
- package/package.json +1 -1
- package/src/components/display/list/SwiperList.vue +5 -1
- package/src/components/display/live/LiveItem.vue +1 -1
- package/src/components/display/live/LiveList.vue +5 -3
- package/src/components/display/live/RadioCurrently.vue +21 -13
- package/src/components/display/live/RadioImage.vue +2 -2
- package/src/components/display/live/RadioItem.vue +15 -5
- package/src/components/display/live/RadioList.vue +4 -2
- package/src/components/display/playlist/PlaylistList.vue +1 -1
- package/src/components/display/podcasts/PodcastItem.vue +1 -1
- package/src/components/display/podcasts/PodcastSwiperList.vue +1 -1
- package/src/components/display/sharing/ShareButtons.vue +0 -1
- package/src/components/display/sharing/SharePlayer.vue +1 -1
- package/src/components/display/sharing/SharePlayerRadio.vue +10 -10
- package/src/components/mixins/radio/fetchRadioData.ts +0 -2
- package/src/components/pages/Lives.vue +2 -2
- package/src/components/pages/Playlist.vue +1 -1
- package/src/components/pages/Radio.vue +11 -6
- package/src/stores/class/general/playlist.ts +2 -2
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
|
@@ -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">
|
|
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
|
-
:
|
|
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
|
-
:
|
|
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
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</
|
|
22
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
+
</div>
|
|
33
33
|
</button>
|
|
34
34
|
</div>
|
|
35
35
|
</template>
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
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">
|
|
13
|
-
|
|
14
|
-
|
|
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">
|
|
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: '
|
|
30
|
+
name: 'Ecbd98d979bd4312Ad5eFc7c1c4a191c',
|
|
29
31
|
components: {
|
|
30
32
|
RadioItem,
|
|
31
33
|
},
|
|
@@ -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
|
-
:
|
|
15
|
+
:fetch-conference="fetchConference"
|
|
16
16
|
@hideDescription="hideDescription"
|
|
17
17
|
@showDescription="showDescription"
|
|
18
18
|
/>
|
|
@@ -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,
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
<h2 class="big-h2 mb-3 height-40">
|
|
4
4
|
{{ $t('Embed') }}
|
|
5
5
|
</h2>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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);
|
|
@@ -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?.
|
|
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
|
|
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">
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22
|
+
ambianceType:"NONE",
|
|
23
23
|
description: '',
|
|
24
24
|
playlistId: 0,
|
|
25
25
|
podcasts: undefined,
|