@saooti/octopus-sdk 30.0.53 → 31.0.1
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 +5 -1
- package/package.json +2 -2
- package/src/assets/share.scss +4 -0
- package/src/components/display/categories/CategoryChooser.vue +2 -14
- package/src/components/display/emission/EmissionChooser.vue +0 -9
- package/src/components/display/organisation/OrganisationChooser.vue +0 -9
- package/src/components/display/rubriques/RubriqueChooser.vue +2 -6
- package/src/components/display/sharing/ShareDistribution.vue +21 -0
- package/src/components/display/sharing/SubscribeButtons.vue +38 -0
- package/src/components/pages/Emission.vue +2 -0
- package/src/components/pages/Podcast.vue +2 -0
- package/src/store/paramStore.ts +7 -7
package/README.md
CHANGED
|
@@ -549,4 +549,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
549
549
|
* 30.0.50 Commentaires live
|
|
550
550
|
* 30.0.51 Commentaires live
|
|
551
551
|
* 30.0.52 Ajout rubriqueIdFilter
|
|
552
|
-
* 30.0.53 Commentaires live
|
|
552
|
+
* 30.0.53 Commentaires live
|
|
553
|
+
* 30.0.54 Multiselect not reload on close
|
|
554
|
+
|
|
555
|
+
* 31.0.0 Passage en 31
|
|
556
|
+
* 31.0.1 Ajout pocket casts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"no-debugger": "off",
|
|
81
81
|
"@typescript-eslint/ban-ts-ignore": "off",
|
|
82
82
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
83
|
-
"no-async-promise-executor":
|
|
83
|
+
"no-async-promise-executor":"off"
|
|
84
84
|
},
|
|
85
85
|
"parserOptions": {
|
|
86
86
|
"parser": "@typescript-eslint/parser"
|
package/src/assets/share.scss
CHANGED
|
@@ -28,9 +28,8 @@
|
|
|
28
28
|
:show-no-results="true"
|
|
29
29
|
:hide-selected="true"
|
|
30
30
|
:show-labels="false"
|
|
31
|
-
@open="
|
|
31
|
+
@open="onOpen"
|
|
32
32
|
@search-change="onSearchCategory"
|
|
33
|
-
@close="onClose"
|
|
34
33
|
@select="onCategorySelected"
|
|
35
34
|
>
|
|
36
35
|
<template #singleLabel="{ option }">
|
|
@@ -169,14 +168,11 @@ export default defineComponent({
|
|
|
169
168
|
}
|
|
170
169
|
},
|
|
171
170
|
methods: {
|
|
172
|
-
|
|
171
|
+
onOpen(): void {
|
|
173
172
|
(this.$refs.multiselectRef as VueMultiselect).$refs.search.setAttribute(
|
|
174
173
|
'autocomplete',
|
|
175
174
|
'off'
|
|
176
175
|
);
|
|
177
|
-
if (undefined === this.categoryArray) {
|
|
178
|
-
this.category = undefined;
|
|
179
|
-
}
|
|
180
176
|
if (
|
|
181
177
|
undefined !== this.categorySelected ||
|
|
182
178
|
undefined !== this.categoryArray ||
|
|
@@ -199,14 +195,6 @@ export default defineComponent({
|
|
|
199
195
|
this.categories = this.totalCategories;
|
|
200
196
|
}
|
|
201
197
|
},
|
|
202
|
-
onClose(): void {
|
|
203
|
-
if (!this.category && undefined === this.categoryArray) {
|
|
204
|
-
this.category = getDefaultCategory(this.defaultanswer);
|
|
205
|
-
if(this.category){
|
|
206
|
-
this.onCategorySelected(this.category);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
198
|
onSearchCategory(query: string): void {
|
|
211
199
|
this.isLoading = true;
|
|
212
200
|
const categoryDefault = getDefaultCategory(this.defaultanswer);
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
:show-labels="false"
|
|
30
30
|
@search-change="onSearchEmission"
|
|
31
31
|
@open="onOpen"
|
|
32
|
-
@close="onClose"
|
|
33
32
|
@select="onEmissionSelected"
|
|
34
33
|
>
|
|
35
34
|
<template #clear="{ props }">
|
|
@@ -152,16 +151,8 @@ export default defineComponent({
|
|
|
152
151
|
'autocomplete',
|
|
153
152
|
'off'
|
|
154
153
|
);
|
|
155
|
-
this.clearAll();
|
|
156
154
|
this.onSearchEmission();
|
|
157
155
|
},
|
|
158
|
-
onClose(): void {
|
|
159
|
-
if (this.emission) return;
|
|
160
|
-
this.emission = this.defaultanswer
|
|
161
|
-
? getDefaultEmission(this.defaultanswer)
|
|
162
|
-
: undefined;
|
|
163
|
-
this.$emit('selected', this.emission);
|
|
164
|
-
},
|
|
165
156
|
onEmissionSelected(emission: Emission): void {
|
|
166
157
|
this.$emit('selected', emission);
|
|
167
158
|
},
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
:class="{ 'multiselect-transparent': light }"
|
|
32
32
|
@search-change="onSearchOrganisation"
|
|
33
33
|
@open="onOpen"
|
|
34
|
-
@close="onClose"
|
|
35
34
|
@select="onOrganisationSelected"
|
|
36
35
|
>
|
|
37
36
|
<template #clear="{ props }">
|
|
@@ -207,16 +206,8 @@ export default defineComponent({
|
|
|
207
206
|
'autocomplete',
|
|
208
207
|
'off'
|
|
209
208
|
);
|
|
210
|
-
this.clearAll();
|
|
211
209
|
this.onSearchOrganisation();
|
|
212
210
|
},
|
|
213
|
-
onClose(): void {
|
|
214
|
-
if (this.organisation) return;
|
|
215
|
-
this.organisation = this.defaultanswer
|
|
216
|
-
? getDefaultOrganistion(this.defaultanswer)
|
|
217
|
-
: undefined;
|
|
218
|
-
this.$emit('selected', this.organisation);
|
|
219
|
-
},
|
|
220
211
|
onOrganisationSelected(organisation: Organisation|undefined): void {
|
|
221
212
|
this.$emit('selected', organisation);
|
|
222
213
|
},
|
|
@@ -29,9 +29,8 @@
|
|
|
29
29
|
:show-no-results="true"
|
|
30
30
|
:hide-selected="true"
|
|
31
31
|
:show-labels="false"
|
|
32
|
-
@open="
|
|
32
|
+
@open="onOpen"
|
|
33
33
|
@search-change="onSearchRubrique"
|
|
34
|
-
@close="onClose"
|
|
35
34
|
@select="onRubriqueSelected"
|
|
36
35
|
>
|
|
37
36
|
<template #singleLabel="{ option }">
|
|
@@ -187,14 +186,11 @@ export default defineComponent({
|
|
|
187
186
|
);
|
|
188
187
|
}
|
|
189
188
|
},
|
|
190
|
-
|
|
189
|
+
onOpen(): void {
|
|
191
190
|
(this.$refs.multiselectRef as VueMultiselect).$refs.search.setAttribute(
|
|
192
191
|
'autocomplete',
|
|
193
192
|
'off'
|
|
194
193
|
);
|
|
195
|
-
if (undefined === this.rubriqueArray) {
|
|
196
|
-
this.rubrique = undefined;
|
|
197
|
-
}
|
|
198
194
|
this.rubriques = this.initRubriquesArray();
|
|
199
195
|
},
|
|
200
196
|
onClose(): void {
|
|
@@ -39,6 +39,20 @@
|
|
|
39
39
|
>
|
|
40
40
|
<span class="saooti-deezer" />Deezer
|
|
41
41
|
</router-link>
|
|
42
|
+
<router-link
|
|
43
|
+
:to="'/main/priv/distribution/googlePodcasts/' + emissionId"
|
|
44
|
+
class="text-dark"
|
|
45
|
+
>
|
|
46
|
+
<span class="saooti-google-podcasts">
|
|
47
|
+
<div class="path1" />
|
|
48
|
+
<div class="path2" />
|
|
49
|
+
<div class="path3" />
|
|
50
|
+
<div class="path4" />
|
|
51
|
+
<div class="path5" />
|
|
52
|
+
<div class="path6" />
|
|
53
|
+
<div class="path7" />
|
|
54
|
+
</span> Google Podcasts
|
|
55
|
+
</router-link>
|
|
42
56
|
<router-link
|
|
43
57
|
:to="'/main/priv/distribution/PlayerFM/' + emissionId"
|
|
44
58
|
class="text-dark"
|
|
@@ -173,6 +187,13 @@ export default defineComponent({
|
|
|
173
187
|
right: 0;
|
|
174
188
|
}
|
|
175
189
|
}
|
|
190
|
+
.saooti-google-podcasts {
|
|
191
|
+
width: 15px;
|
|
192
|
+
height: 20px;
|
|
193
|
+
div {
|
|
194
|
+
right: 0;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
176
197
|
a {
|
|
177
198
|
display: flex;
|
|
178
199
|
align-items: center;
|
|
@@ -38,6 +38,24 @@
|
|
|
38
38
|
>
|
|
39
39
|
<span class="saooti-deezer" />
|
|
40
40
|
</a>
|
|
41
|
+
<a
|
|
42
|
+
v-if="googlePodcasts"
|
|
43
|
+
rel="noopener"
|
|
44
|
+
target="_blank"
|
|
45
|
+
class="btn me-3 mb-2 share-btn"
|
|
46
|
+
:href="googlePodcasts"
|
|
47
|
+
title="googlePodcasts"
|
|
48
|
+
>
|
|
49
|
+
<span class="saooti-google-podcasts">
|
|
50
|
+
<div class="path1" />
|
|
51
|
+
<div class="path2" />
|
|
52
|
+
<div class="path3" />
|
|
53
|
+
<div class="path4" />
|
|
54
|
+
<div class="path5" />
|
|
55
|
+
<div class="path6" />
|
|
56
|
+
<div class="path7" />
|
|
57
|
+
</span>
|
|
58
|
+
</a>
|
|
41
59
|
<a
|
|
42
60
|
v-if="playerFm"
|
|
43
61
|
rel="noopener"
|
|
@@ -48,6 +66,16 @@
|
|
|
48
66
|
>
|
|
49
67
|
<span class="saooti-playerfm" />
|
|
50
68
|
</a>
|
|
69
|
+
<a
|
|
70
|
+
v-if="pocketCasts"
|
|
71
|
+
rel="noopener"
|
|
72
|
+
target="_blank"
|
|
73
|
+
class="btn me-3 mb-2 share-btn"
|
|
74
|
+
:href="pocketCasts"
|
|
75
|
+
title="pocketCasts"
|
|
76
|
+
>
|
|
77
|
+
<span class="saooti-pocket-casts" />
|
|
78
|
+
</a>
|
|
51
79
|
<a
|
|
52
80
|
v-if="podcastAddict"
|
|
53
81
|
rel="noopener"
|
|
@@ -167,6 +195,14 @@ export default defineComponent({
|
|
|
167
195
|
(this.emission && this.emission.annotations
|
|
168
196
|
? this.emission.annotations.amazon
|
|
169
197
|
: undefined) as string | undefined,
|
|
198
|
+
googlePodcasts:
|
|
199
|
+
(this.emission && this.emission.annotations
|
|
200
|
+
? this.emission.annotations.googlePodcasts
|
|
201
|
+
: undefined) as string | undefined,
|
|
202
|
+
pocketCasts:
|
|
203
|
+
(this.emission && this.emission.annotations
|
|
204
|
+
? this.emission.annotations.pocketCasts
|
|
205
|
+
: undefined) as string | undefined,
|
|
170
206
|
};
|
|
171
207
|
},
|
|
172
208
|
|
|
@@ -182,6 +218,8 @@ export default defineComponent({
|
|
|
182
218
|
this.playerFm = this.externaliseLinks(this.playerFm);
|
|
183
219
|
this.stitcher = this.externaliseLinks(this.stitcher);
|
|
184
220
|
this.amazon = this.externaliseLinks(this.amazon);
|
|
221
|
+
this.googlePodcasts = this.externaliseLinks(this.googlePodcasts);
|
|
222
|
+
this.pocketCasts = this.externaliseLinks(this.pocketCasts);
|
|
185
223
|
},
|
|
186
224
|
|
|
187
225
|
methods: {
|
|
@@ -209,12 +209,14 @@ export default defineComponent({
|
|
|
209
209
|
if (undefined !== this.emission.annotations.amazon) count++;
|
|
210
210
|
if (undefined !== this.emission.annotations.applePodcast) count++;
|
|
211
211
|
if (undefined !== this.emission.annotations.deezer) count++;
|
|
212
|
+
if (undefined !== this.emission.annotations.googlePodcasts) count++;
|
|
212
213
|
if (undefined !== this.emission.annotations.spotify) count++;
|
|
213
214
|
if (undefined !== this.emission.annotations.tunein) count++;
|
|
214
215
|
if (undefined !== this.emission.annotations.radioline) count++;
|
|
215
216
|
if (undefined !== this.emission.annotations.podcastAddict) count++;
|
|
216
217
|
if (undefined !== this.emission.annotations.playerFm) count++;
|
|
217
218
|
if (undefined !== this.emission.annotations.stitcher) count++;
|
|
219
|
+
if (undefined !== this.emission.annotations.pocketCasts) count++;
|
|
218
220
|
}
|
|
219
221
|
return count;
|
|
220
222
|
},
|
|
@@ -217,6 +217,7 @@ export default defineComponent({
|
|
|
217
217
|
let count = 0;
|
|
218
218
|
if (this.podcast && this.podcast.emission && this.podcast.emission.annotations) {
|
|
219
219
|
if (undefined !== this.podcast.emission.annotations.amazon) count++;
|
|
220
|
+
if (undefined !== this.podcast.emission.annotations.googlePodcasts) count++;
|
|
220
221
|
if (undefined !== this.podcast.emission.annotations.applePodcast)
|
|
221
222
|
count++;
|
|
222
223
|
if (undefined !== this.podcast.emission.annotations.deezer) count++;
|
|
@@ -226,6 +227,7 @@ export default defineComponent({
|
|
|
226
227
|
if (undefined !== this.podcast.emission.annotations.podcastAddict) count++;
|
|
227
228
|
if (undefined !== this.podcast.emission.annotations.playerFm) count++;
|
|
228
229
|
if (undefined !== this.podcast.emission.annotations.stitcher) count++;
|
|
230
|
+
if (undefined !== this.podcast.emission.annotations.pocketCasts) count++;
|
|
229
231
|
}
|
|
230
232
|
return count;
|
|
231
233
|
},
|
package/src/store/paramStore.ts
CHANGED
|
@@ -12,7 +12,7 @@ const state:paramStore = {
|
|
|
12
12
|
isPlaylist: false,
|
|
13
13
|
isProduction: true,
|
|
14
14
|
isContribution: true,
|
|
15
|
-
ApiUri: 'https://api.
|
|
15
|
+
ApiUri: 'https://api.staging.saooti.org/',
|
|
16
16
|
podcastmaker: false,
|
|
17
17
|
buttonPlus: true,
|
|
18
18
|
allCategories: [],
|
|
@@ -25,10 +25,10 @@ const state:paramStore = {
|
|
|
25
25
|
SharePlayer: true,
|
|
26
26
|
ShareButtons: true,
|
|
27
27
|
ShareDistribution: true,
|
|
28
|
-
MiniplayerUri: 'https://playerbeta.
|
|
28
|
+
MiniplayerUri: 'https://playerbeta.staging.saooti.org/',
|
|
29
29
|
ouestFranceStyle: false,
|
|
30
30
|
downloadButton: false,
|
|
31
|
-
hlsUri: 'https://hls.
|
|
31
|
+
hlsUri: 'https://hls.staging.saooti.org/',
|
|
32
32
|
mainRubrique: 0,
|
|
33
33
|
resourceUrl: undefined
|
|
34
34
|
},
|
|
@@ -84,10 +84,10 @@ const state:paramStore = {
|
|
|
84
84
|
userName: '',
|
|
85
85
|
},
|
|
86
86
|
octopusApi: {
|
|
87
|
-
url: 'http://api.
|
|
88
|
-
commentsUrl: 'http://comments.
|
|
89
|
-
studioUrl: 'http://studio.
|
|
90
|
-
playerUrl: 'https://playerbeta.
|
|
87
|
+
url: 'http://api.staging.saooti.org/',
|
|
88
|
+
commentsUrl: 'http://comments.staging.saooti.org/',
|
|
89
|
+
studioUrl: 'http://studio.staging.saooti.org/',
|
|
90
|
+
playerUrl: 'https://playerbeta.staging.saooti.org/',
|
|
91
91
|
organisationId: undefined,
|
|
92
92
|
rubriqueIdFilter: undefined,
|
|
93
93
|
},
|