@saooti/octopus-sdk 30.0.7 → 30.0.8
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 +2 -1
- package/index.ts +13 -2
- package/package.json +1 -1
- package/src/assets/bootstrap-diff.scss +2 -1
- package/src/assets/form.scss +7 -0
- package/src/assets/general.scss +14 -20
- package/src/assets/multiselect.scss +1 -1
- package/src/assets/share.scss +1 -12
- package/src/components/display/comments/CommentPlayer.vue +1 -1
- package/src/components/display/emission/EmissionInlineList.vue +1 -1
- package/src/components/display/emission/EmissionItem.vue +2 -2
- package/src/components/display/emission/EmissionList.vue +1 -1
- package/src/components/display/emission/EmissionPlayerItem.vue +1 -1
- package/src/components/display/filter/AdvancedSearch.vue +39 -101
- package/src/components/display/filter/CategoryFilter.vue +9 -13
- package/src/components/display/filter/ProductorSearch.vue +20 -39
- package/src/components/display/filter/RubriqueChoice.vue +1 -1
- package/src/components/display/filter/RubriqueFilter.vue +8 -12
- package/src/components/display/organisation/OrganisationChooserLight.vue +7 -1
- package/src/components/display/playlist/PlaylistItem.vue +1 -1
- package/src/components/display/playlist/PodcastList.vue +8 -19
- package/src/components/display/podcasts/PodcastFilterList.vue +9 -18
- package/src/components/display/podcasts/PodcastImage.vue +1 -1
- package/src/components/display/podcasts/PodcastInlineList.vue +1 -1
- package/src/components/display/podcasts/PodcastItem.vue +1 -1
- package/src/components/display/sharing/PlayerParameters.vue +24 -45
- package/src/components/display/sharing/SharePlayer.vue +8 -17
- package/src/components/display/sharing/SharePlayerColors.vue +2 -2
- package/src/components/display/sharing/SubscribeButtons.vue +1 -1
- package/src/components/form/ClassicCheckbox.vue +61 -0
- package/src/components/form/ClassicLoading.vue +28 -0
- package/src/components/form/ClassicRadio.vue +61 -0
- package/src/components/form/ClassicSearch.vue +82 -0
- package/src/components/misc/ErrorMessage.vue +1 -1
- package/src/components/misc/Footer.vue +26 -35
- package/src/components/misc/HomeDropdown.vue +44 -93
- package/src/components/misc/LeftMenu.vue +108 -141
- package/src/components/misc/Player.vue +14 -28
- package/src/components/misc/PlayerButtons.vue +14 -37
- package/src/components/misc/PlayerProgressBar.vue +15 -50
- package/src/components/misc/TopBar.vue +140 -222
- package/src/components/misc/modal/NewsletterModal.vue +13 -27
- package/src/components/pages/Category.vue +3 -8
- package/src/components/pages/Emission.vue +12 -24
- package/src/components/pages/Emissions.vue +8 -17
- package/src/components/pages/Home.vue +1 -3
- package/src/components/pages/Lives.vue +1 -3
- package/src/components/pages/Participant.vue +18 -26
- package/src/components/pages/Participants.vue +7 -15
- package/src/components/pages/Playlist.vue +16 -29
- package/src/components/pages/Playlists.vue +1 -11
- package/src/components/pages/Podcast.vue +16 -30
- package/src/components/pages/Podcasts.vue +9 -23
- package/src/components/pages/Search.vue +26 -64
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
12
|
v-if="isBarTop"
|
|
13
|
-
class="progress
|
|
13
|
+
class="progress c-hand"
|
|
14
14
|
@mouseup="seekTo"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
<div
|
|
27
27
|
v-if="display"
|
|
28
|
-
class="d-flex align-items-center
|
|
28
|
+
class="d-flex align-items-center flex-grow-1 px-5"
|
|
29
29
|
>
|
|
30
30
|
<audio
|
|
31
31
|
v-if="!live"
|
|
32
32
|
id="audio-player"
|
|
33
|
-
:src="audioUrl"
|
|
33
|
+
:src="!live? audioUrl: undefined"
|
|
34
34
|
autoplay
|
|
35
35
|
@timeupdate="onTimeUpdate"
|
|
36
36
|
@ended="onFinished"
|
|
@@ -38,16 +38,6 @@
|
|
|
38
38
|
@durationChange="onTimeUpdate"
|
|
39
39
|
@error="onError"
|
|
40
40
|
/>
|
|
41
|
-
<audio
|
|
42
|
-
v-else
|
|
43
|
-
id="audio-player"
|
|
44
|
-
src
|
|
45
|
-
@timeupdate="onTimeUpdate"
|
|
46
|
-
@ended="onFinished"
|
|
47
|
-
@playing="onPlay"
|
|
48
|
-
@durationChange="onTimeUpdate"
|
|
49
|
-
@error="onError"
|
|
50
|
-
/>
|
|
51
41
|
<PlayerButtons
|
|
52
42
|
:player-error="playerError"
|
|
53
43
|
/>
|
|
@@ -163,11 +153,11 @@ export default defineComponent({
|
|
|
163
153
|
live: {
|
|
164
154
|
deep: true,
|
|
165
155
|
async handler(){
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
156
|
+
this.hlsReady = false;
|
|
157
|
+
this.setDownloadId(null);
|
|
158
|
+
this.listenError = false;
|
|
159
|
+
await this.playLive();
|
|
160
|
+
this.initComments();
|
|
171
161
|
}
|
|
172
162
|
},
|
|
173
163
|
playerHeight(): void {
|
|
@@ -176,9 +166,9 @@ export default defineComponent({
|
|
|
176
166
|
podcast: {
|
|
177
167
|
deep: true,
|
|
178
168
|
handler(){
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
169
|
+
this.setDownloadId(null);
|
|
170
|
+
this.listenError = false;
|
|
171
|
+
this.initComments();
|
|
182
172
|
}
|
|
183
173
|
},
|
|
184
174
|
async listenTime(newVal): Promise<void> {
|
|
@@ -479,7 +469,6 @@ export default defineComponent({
|
|
|
479
469
|
flex-direction: column;
|
|
480
470
|
transition: height 1s;
|
|
481
471
|
background: #282828 !important;
|
|
482
|
-
max-width: 100%;
|
|
483
472
|
font-size: 1rem;
|
|
484
473
|
|
|
485
474
|
.player-progress-border {
|
|
@@ -487,13 +476,10 @@ export default defineComponent({
|
|
|
487
476
|
width: 3px;
|
|
488
477
|
background: black;
|
|
489
478
|
}
|
|
490
|
-
|
|
491
|
-
@media (max-width: 960px) {
|
|
492
|
-
.player-container {
|
|
479
|
+
|
|
480
|
+
@media (max-width: 960px) {
|
|
493
481
|
.d-flex {
|
|
494
|
-
|
|
495
|
-
flex-wrap: nowrap !important;
|
|
496
|
-
}
|
|
482
|
+
flex-wrap: nowrap !important;
|
|
497
483
|
}
|
|
498
484
|
}
|
|
499
485
|
}
|
|
@@ -6,26 +6,19 @@
|
|
|
6
6
|
<img
|
|
7
7
|
:src="podcastImage"
|
|
8
8
|
:alt="$t('Podcast image')"
|
|
9
|
-
class="player-image
|
|
9
|
+
class="player-image"
|
|
10
10
|
>
|
|
11
11
|
</router-link>
|
|
12
12
|
<div
|
|
13
13
|
v-if="!playerError"
|
|
14
|
-
class="play-button-box"
|
|
15
|
-
:class="{
|
|
16
|
-
'primary-bg': !isLoading,
|
|
17
|
-
'text-light': !isLoading,
|
|
18
|
-
}"
|
|
14
|
+
class="play-button-box text-light primary-bg"
|
|
19
15
|
@click="switchPausePlay"
|
|
20
16
|
>
|
|
21
17
|
<div
|
|
22
|
-
class="text-light"
|
|
23
18
|
:aria-label="$t('Play')"
|
|
24
19
|
:class="{
|
|
25
|
-
saooti: isPlaying || isPaused,
|
|
26
20
|
'saooti-play2-bounty': isPaused,
|
|
27
21
|
'saooti-pause-bounty': isPlaying,
|
|
28
|
-
loading: isLoading,
|
|
29
22
|
}"
|
|
30
23
|
/>
|
|
31
24
|
</div>
|
|
@@ -35,7 +28,7 @@
|
|
|
35
28
|
@click="stopPlayer"
|
|
36
29
|
>
|
|
37
30
|
<div
|
|
38
|
-
class="
|
|
31
|
+
class="saooti-stop-bounty"
|
|
39
32
|
:aria-label="$t('Stop')"
|
|
40
33
|
/>
|
|
41
34
|
</div>
|
|
@@ -54,11 +47,6 @@ export default defineComponent({
|
|
|
54
47
|
playerError: { default: false, type: Boolean},
|
|
55
48
|
},
|
|
56
49
|
|
|
57
|
-
data() {
|
|
58
|
-
return {
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
|
|
62
50
|
computed: {
|
|
63
51
|
isPlaying(): boolean {
|
|
64
52
|
return 'PLAYING' === this.$store.state.player.status;
|
|
@@ -66,9 +54,6 @@ export default defineComponent({
|
|
|
66
54
|
isPaused(): boolean {
|
|
67
55
|
return 'PAUSED' === this.$store.state.player.status;
|
|
68
56
|
},
|
|
69
|
-
isLoading(): boolean {
|
|
70
|
-
return 'LOADING' === this.$store.state.player.status;
|
|
71
|
-
},
|
|
72
57
|
isImage(): boolean {
|
|
73
58
|
return (state.player.image as boolean);
|
|
74
59
|
},
|
|
@@ -131,7 +116,6 @@ export default defineComponent({
|
|
|
131
116
|
stopPlayer(): void {
|
|
132
117
|
this.$store.commit('playerPlayPodcast');
|
|
133
118
|
},
|
|
134
|
-
|
|
135
119
|
onPlay(): void {
|
|
136
120
|
this.$store.commit('playerPause', false);
|
|
137
121
|
},
|
|
@@ -143,6 +127,17 @@ export default defineComponent({
|
|
|
143
127
|
</script>
|
|
144
128
|
|
|
145
129
|
<style lang="scss">
|
|
130
|
+
.player-image {
|
|
131
|
+
border-radius: 0.2rem;
|
|
132
|
+
height: 2.4rem;
|
|
133
|
+
width: 2.4rem;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
/** PHONES*/
|
|
136
|
+
@media (max-width: 450px) {
|
|
137
|
+
height: 1.8rem;
|
|
138
|
+
width: 1.8rem;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
146
141
|
.play-button-box {
|
|
147
142
|
height: 2.5rem;
|
|
148
143
|
width: 2.5rem;
|
|
@@ -156,22 +151,4 @@ export default defineComponent({
|
|
|
156
151
|
cursor: pointer;
|
|
157
152
|
}
|
|
158
153
|
|
|
159
|
-
.player-container {
|
|
160
|
-
.player-image {
|
|
161
|
-
border-radius: 0.2rem;
|
|
162
|
-
height: 2.4rem;
|
|
163
|
-
width: 2.4rem;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
/** PHONES*/
|
|
168
|
-
@media (max-width: 450px) {
|
|
169
|
-
.player-container {
|
|
170
|
-
.player-image {
|
|
171
|
-
height: 2rem;
|
|
172
|
-
width: 2rem;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
154
|
</style>
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="text-light player-grow-content">
|
|
3
|
-
<div class="d-flex">
|
|
3
|
+
<div class="d-flex mb-1">
|
|
4
4
|
<div
|
|
5
5
|
v-if="playerError"
|
|
6
|
-
class="text-warning
|
|
6
|
+
class="text-warning mx-2"
|
|
7
7
|
>
|
|
8
8
|
{{ $t('Podcast play error') + ' - ' }}
|
|
9
9
|
</div>
|
|
10
|
-
<div class="flex-grow
|
|
10
|
+
<div class="flex-grow-1 text-ellipsis">
|
|
11
11
|
{{ podcastTitle }}
|
|
12
12
|
</div>
|
|
13
13
|
<div
|
|
14
|
-
v-if="!playerError"
|
|
15
|
-
v-show="!isBarTop"
|
|
14
|
+
v-if="!playerError && !isBarTop"
|
|
16
15
|
class="hide-phone"
|
|
17
16
|
>
|
|
18
17
|
{{ playedTime }} / {{ totalTime }}
|
|
@@ -21,12 +20,11 @@
|
|
|
21
20
|
<div
|
|
22
21
|
v-if="!playerError"
|
|
23
22
|
v-show="!isBarTop"
|
|
24
|
-
class="progress c-hand
|
|
25
|
-
style="height: 3px;"
|
|
23
|
+
class="progress c-hand"
|
|
26
24
|
@mouseup="seekTo"
|
|
27
25
|
>
|
|
28
26
|
<div
|
|
29
|
-
class="progress-bar
|
|
27
|
+
class="progress-bar bg-light"
|
|
30
28
|
role="progressbar"
|
|
31
29
|
aria-valuenow="0"
|
|
32
30
|
aria-valuemin="0"
|
|
@@ -79,12 +77,7 @@ export default defineComponent({
|
|
|
79
77
|
notListenTime: { default: 0, type: Number},
|
|
80
78
|
},
|
|
81
79
|
emits: ['update:notListenTime'],
|
|
82
|
-
|
|
83
|
-
data() {
|
|
84
|
-
return {
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
|
|
80
|
+
|
|
88
81
|
computed: {
|
|
89
82
|
isEmissionName(): boolean {
|
|
90
83
|
return (state.player.emissionName as boolean);
|
|
@@ -153,10 +146,15 @@ export default defineComponent({
|
|
|
153
146
|
</script>
|
|
154
147
|
|
|
155
148
|
<style lang="scss">
|
|
156
|
-
.player-
|
|
149
|
+
.player-grow-content {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
flex-grow: 1;
|
|
153
|
+
flex-shrink: 1;
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
font-size: 0.8rem;
|
|
157
156
|
.progress {
|
|
158
|
-
|
|
159
|
-
height: 10px;
|
|
157
|
+
height: 4px;
|
|
160
158
|
position: relative;
|
|
161
159
|
}
|
|
162
160
|
.progress-bar-duration {
|
|
@@ -166,38 +164,5 @@ export default defineComponent({
|
|
|
166
164
|
height: 4px;
|
|
167
165
|
position: absolute;
|
|
168
166
|
}
|
|
169
|
-
|
|
170
|
-
.progress.custom-bg-darkgrey {
|
|
171
|
-
background: #555;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.progress-bar.custom-bg-grey {
|
|
175
|
-
background: #e9ecef;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.player-title,
|
|
179
|
-
.hide-phone {
|
|
180
|
-
font-size: 0.8rem;
|
|
181
|
-
margin: 0 0 5px 0;
|
|
182
|
-
}
|
|
183
|
-
.player-grow-content {
|
|
184
|
-
display: flex;
|
|
185
|
-
flex-grow: 1;
|
|
186
|
-
flex-direction: column;
|
|
187
|
-
flex-shrink: 1;
|
|
188
|
-
flex-basis: 20px;
|
|
189
|
-
overflow: hidden;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
/** PHONES*/
|
|
193
|
-
@media (max-width: 960px) {
|
|
194
|
-
.player-container {
|
|
195
|
-
.player-title {
|
|
196
|
-
font-size: 12px;
|
|
197
|
-
overflow: hidden;
|
|
198
|
-
white-space: nowrap;
|
|
199
|
-
text-overflow: ellipsis;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
167
|
}
|
|
203
168
|
</style>
|