@saooti/octopus-sdk 30.0.3 → 30.0.4
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 -0
- package/package.json +1 -1
- package/src/components/display/comments/CommentItem.vue +0 -1
- package/src/components/display/podcasts/ParticipantDescription.vue +0 -1
- package/src/components/display/podcasts/TagList.vue +1 -2
- package/src/components/display/sharing/ShareButtons.vue +1 -0
- package/src/components/display/sharing/SharePlayer.vue +10 -38
- package/src/components/display/sharing/SharePlayerColors.vue +4 -49
- package/src/components/display/sharing/SharePlayerTypes.vue +7 -10
- package/src/components/misc/Popover.vue +1 -2
- package/src/locale/en.ts +0 -1
- package/src/locale/fr.ts +0 -1
- package/src/store/paramStore.ts +1 -3
package/README.md
CHANGED
|
@@ -495,7 +495,9 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
495
495
|
* 29.0.26 Snackbar position
|
|
496
496
|
* 29.0.27 Petit cursor:pointer des familles
|
|
497
497
|
* 29.0.28 Petite couleur des familles
|
|
498
|
+
* 29.0.29 Amélioration Popover
|
|
498
499
|
|
|
499
500
|
* 30.0.1 Nouveau sprint
|
|
500
501
|
* 30.0.2 Correction css
|
|
501
502
|
* 30.0.3 Ajout tag page podcast
|
|
503
|
+
* 30.0.4 Remplacer la version "classique" des miniplayers par la version beta
|
package/package.json
CHANGED
|
@@ -34,27 +34,12 @@
|
|
|
34
34
|
:emission="emission"
|
|
35
35
|
:playlist="playlist"
|
|
36
36
|
:custom-players="customPlayers"
|
|
37
|
-
:is-beta="isBeta"
|
|
38
37
|
/>
|
|
39
38
|
</div>
|
|
40
39
|
<SharePlayerColors
|
|
41
40
|
v-model:color="color"
|
|
42
41
|
v-model:theme="theme"
|
|
43
|
-
v-model:themeBeta="themeBeta"
|
|
44
|
-
:is-beta="isBeta"
|
|
45
42
|
/>
|
|
46
|
-
<div v-if="displayBetaChoice">
|
|
47
|
-
<input
|
|
48
|
-
id="isBetaCheckbox"
|
|
49
|
-
v-model="isBeta"
|
|
50
|
-
type="checkbox"
|
|
51
|
-
class="form-check-input"
|
|
52
|
-
>
|
|
53
|
-
<label
|
|
54
|
-
class="form-check-label me-2"
|
|
55
|
-
for="isBetaCheckbox"
|
|
56
|
-
>{{ $t('Use beta version') }}</label>
|
|
57
|
-
</div>
|
|
58
43
|
<div
|
|
59
44
|
v-if="isPodcastNotVisible || playlist"
|
|
60
45
|
class="d-flex align-items-center flex-wrap"
|
|
@@ -140,26 +125,20 @@ export default defineComponent({
|
|
|
140
125
|
isShareModal: false as boolean,
|
|
141
126
|
color: '#40a372' as string,
|
|
142
127
|
theme: '#000000' as string,
|
|
143
|
-
themeBeta: '#000000' as string,
|
|
144
128
|
proceedReading: true as boolean,
|
|
145
129
|
episodeNumbers: 'number' as string,
|
|
146
130
|
iFrameNumber: '3' as string,
|
|
147
131
|
startTime: 0 as number,
|
|
148
132
|
isVisible: false as boolean,
|
|
149
133
|
displayArticle: true as boolean,
|
|
150
|
-
displayBetaChoice: false as boolean,
|
|
151
134
|
customPlayers: [] as Array<CustomPlayer>,
|
|
152
|
-
isBeta: false as boolean,
|
|
153
135
|
colors: ['#000000', '#ffffff'],
|
|
154
136
|
};
|
|
155
137
|
},
|
|
156
138
|
|
|
157
139
|
computed: {
|
|
158
140
|
miniplayerBaseUrl(): string{
|
|
159
|
-
|
|
160
|
-
return (state.podcastPage.MiniplayerBetaUri as string);
|
|
161
|
-
}
|
|
162
|
-
return (state.podcastPage.MiniplayerUri as string);
|
|
141
|
+
return (state.podcastPage.MiniplayerUri as string);
|
|
163
142
|
},
|
|
164
143
|
isEmission(): boolean {
|
|
165
144
|
return 'emission' === this.iFrameModel;
|
|
@@ -253,7 +232,7 @@ export default defineComponent({
|
|
|
253
232
|
}
|
|
254
233
|
}
|
|
255
234
|
url.push('?distributorId=' + this.organisationId);
|
|
256
|
-
const theme = this.
|
|
235
|
+
const theme = this.theme;
|
|
257
236
|
url.push(
|
|
258
237
|
'&color=' +
|
|
259
238
|
this.color.substring(1) +
|
|
@@ -367,22 +346,15 @@ export default defineComponent({
|
|
|
367
346
|
} else {
|
|
368
347
|
this.theme = '#000000';
|
|
369
348
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
this.customPlayers = dataFetched.content;
|
|
377
|
-
|
|
378
|
-
let index = 1;
|
|
379
|
-
while (totalCount > this.customPlayers.length) {
|
|
380
|
-
dataFetched = await octopusApi.fetchCustomPlayer('customPlayer/organisation/'+ this.organisationId+'?start='+index);
|
|
381
|
-
this.customPlayers = this.customPlayers.concat(dataFetched.content);
|
|
382
|
-
++index;
|
|
383
|
-
}
|
|
349
|
+
let dataFetched = await octopusApi.fetchCustomPlayer('customPlayer/organisation/'+ this.organisationId);
|
|
350
|
+
this.customPlayers = dataFetched.content;
|
|
351
|
+
const totalCount = dataFetched.totalElements;
|
|
352
|
+
let index = 1;
|
|
353
|
+
while (totalCount > this.customPlayers.length) {
|
|
354
|
+
dataFetched = await octopusApi.fetchCustomPlayer('customPlayer/organisation/'+ this.organisationId+'?start='+index);
|
|
355
|
+
this.customPlayers = this.customPlayers.concat(dataFetched.content);
|
|
356
|
+
++index;
|
|
384
357
|
}
|
|
385
|
-
return;
|
|
386
358
|
},
|
|
387
359
|
updateEpisodeNumber(value: string): void {
|
|
388
360
|
this.episodeNumbers = value;
|
|
@@ -17,34 +17,7 @@
|
|
|
17
17
|
<div class="fw-600">
|
|
18
18
|
{{ $t('Choose theme') }}
|
|
19
19
|
</div>
|
|
20
|
-
<div
|
|
21
|
-
v-if="!isBeta"
|
|
22
|
-
class="d-flex"
|
|
23
|
-
>
|
|
24
|
-
<VSwatches
|
|
25
|
-
v-for="myColor in colors"
|
|
26
|
-
:key="myColor"
|
|
27
|
-
v-model="internTheme"
|
|
28
|
-
:data-theme="internTheme"
|
|
29
|
-
class="c-hand input-no-outline me-1"
|
|
30
|
-
:swatch-style="{
|
|
31
|
-
padding: '0px 0px',
|
|
32
|
-
marginRight: '0px',
|
|
33
|
-
marginBottom: '0px',
|
|
34
|
-
border: '1px gray solid',
|
|
35
|
-
}"
|
|
36
|
-
:wrapper-style="{
|
|
37
|
-
paddingTop: '0px',
|
|
38
|
-
paddingLeft: '0px',
|
|
39
|
-
paddingRight: '0px',
|
|
40
|
-
paddingBottom: '0px',
|
|
41
|
-
}"
|
|
42
|
-
:swatches="[myColor]"
|
|
43
|
-
inline
|
|
44
|
-
/>
|
|
45
|
-
</div>
|
|
46
20
|
<VSwatches
|
|
47
|
-
v-else
|
|
48
21
|
v-model="internTheme"
|
|
49
22
|
class="c-hand input-no-outline"
|
|
50
23
|
show-fallback
|
|
@@ -65,28 +38,18 @@ export default defineComponent({
|
|
|
65
38
|
},
|
|
66
39
|
|
|
67
40
|
props: {
|
|
68
|
-
isBeta: { default: false, type: Boolean},
|
|
69
41
|
color: { default: '#40a372', type: String},
|
|
70
42
|
theme: { default: '#000000', type: String},
|
|
71
|
-
themeBeta: { default: '#000000', type: String},
|
|
72
43
|
},
|
|
73
|
-
emits:['update:color', 'update:theme'
|
|
44
|
+
emits:['update:color', 'update:theme'],
|
|
74
45
|
|
|
75
46
|
data() {
|
|
76
47
|
return {
|
|
77
48
|
internColor:'#40a372' as string,
|
|
78
49
|
internTheme:'#000000' as string,
|
|
79
|
-
colors: ['#000000', '#ffffff'],
|
|
80
50
|
};
|
|
81
51
|
},
|
|
82
52
|
watch:{
|
|
83
|
-
isBeta(){
|
|
84
|
-
if(this.isBeta){
|
|
85
|
-
this.internTheme = this.themeBeta;
|
|
86
|
-
}else{
|
|
87
|
-
this.internTheme = this.theme;
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
53
|
color(){
|
|
91
54
|
if(this.color !== this.internColor){
|
|
92
55
|
this.internColor = this.color;
|
|
@@ -98,27 +61,19 @@ export default defineComponent({
|
|
|
98
61
|
}
|
|
99
62
|
},
|
|
100
63
|
theme(){
|
|
101
|
-
if(this.theme !== this.internTheme
|
|
64
|
+
if(this.theme !== this.internTheme){
|
|
102
65
|
this.internTheme = this.theme;
|
|
103
66
|
}
|
|
104
67
|
},
|
|
105
|
-
themeBeta(){
|
|
106
|
-
if(this.themeBeta !== this.internTheme && this.isBeta){
|
|
107
|
-
this.internTheme = this.themeBeta;
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
68
|
internTheme(){
|
|
111
|
-
if(this.theme !== this.internTheme
|
|
69
|
+
if(this.theme !== this.internTheme ){
|
|
112
70
|
this.$emit('update:theme', this.internTheme);
|
|
113
|
-
}else if(this.themeBeta !== this.internTheme && this.isBeta){
|
|
114
|
-
this.$emit('update:themeBeta', this.internTheme);
|
|
115
71
|
}
|
|
116
72
|
}
|
|
117
73
|
},
|
|
118
74
|
mounted(){
|
|
119
75
|
this.internColor= this.color;
|
|
120
|
-
this.internTheme= this.
|
|
76
|
+
this.internTheme= this.theme;
|
|
121
77
|
}
|
|
122
|
-
|
|
123
78
|
})
|
|
124
79
|
</script>
|
|
@@ -17,15 +17,13 @@
|
|
|
17
17
|
<option value="large">
|
|
18
18
|
{{ $t('Large version') }}
|
|
19
19
|
</option>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</option>
|
|
28
|
-
</template>
|
|
20
|
+
<option
|
|
21
|
+
v-for="player in customPlayersDisplay"
|
|
22
|
+
:key="player.customId"
|
|
23
|
+
:value="player.customId"
|
|
24
|
+
>
|
|
25
|
+
{{ $t('Custom version') + " «" +player.name+"»" }}
|
|
26
|
+
</option>
|
|
29
27
|
<option
|
|
30
28
|
v-if="podcast && podcast.podcastId"
|
|
31
29
|
value="emission"
|
|
@@ -62,7 +60,6 @@ export default defineComponent({
|
|
|
62
60
|
emission: { default: undefined, type: Object as ()=> Emission},
|
|
63
61
|
playlist: { default: undefined, type: Object as ()=> Playlist},
|
|
64
62
|
customPlayers: { default: ()=>[], type: Array as ()=> Array<CustomPlayer>},
|
|
65
|
-
isBeta: { default: false, type: Boolean},
|
|
66
63
|
iFrameModel: { default: 'default', type: String},
|
|
67
64
|
},
|
|
68
65
|
emits:['update:iFrameModel'],
|
|
@@ -32,7 +32,6 @@ export default defineComponent({
|
|
|
32
32
|
placement: {type: String as PropType<Popover.Options['placement']>, default: 'right'},
|
|
33
33
|
target: {type: String, required: true},
|
|
34
34
|
title: {type: String, default: ''},
|
|
35
|
-
triggers: {type: String as PropType<Popover.Options['trigger']>, default: 'click'},
|
|
36
35
|
show: {type: Boolean, default: false},
|
|
37
36
|
disable: {type: Boolean, default: false},
|
|
38
37
|
},
|
|
@@ -46,7 +45,7 @@ export default defineComponent({
|
|
|
46
45
|
function initPopover(){
|
|
47
46
|
instance.value = new Popover(`#${props.target}`, {
|
|
48
47
|
container: 'body',
|
|
49
|
-
trigger:
|
|
48
|
+
trigger: "click hover",
|
|
50
49
|
placement: props.placement,
|
|
51
50
|
title: titleRef.value?.innerHTML || '',
|
|
52
51
|
content: contentRef.value?.innerHTML || '',
|
package/src/locale/en.ts
CHANGED
|
@@ -287,7 +287,6 @@ export default{
|
|
|
287
287
|
'See associated article':"Read the article",
|
|
288
288
|
"Display associated article":"Display associated article",
|
|
289
289
|
"Copy this page URL":"Copy this page URL",
|
|
290
|
-
"Use beta version":"Use beta version player",
|
|
291
290
|
"Custom version":"Custom version",
|
|
292
291
|
"All":"All",
|
|
293
292
|
'By category': 'By IAB category',
|
package/src/locale/fr.ts
CHANGED
|
@@ -287,7 +287,6 @@ export default{
|
|
|
287
287
|
'See associated article':"Lire l'article",
|
|
288
288
|
"Display associated article":"Afficher l'article associé",
|
|
289
289
|
"Copy this page URL":"Copier l'adresse de cette page",
|
|
290
|
-
"Use beta version":"Utiliser la version beta du player",
|
|
291
290
|
"Custom version":"Version customisée",
|
|
292
291
|
"All":"Tous",
|
|
293
292
|
'By category': 'Selon la catégorie IAB',
|
package/src/store/paramStore.ts
CHANGED
|
@@ -24,8 +24,7 @@ const state:paramStore = {
|
|
|
24
24
|
SharePlayer: true,
|
|
25
25
|
ShareButtons: true,
|
|
26
26
|
ShareDistribution: true,
|
|
27
|
-
MiniplayerUri: 'https://
|
|
28
|
-
MiniplayerBetaUri: 'https://playerbeta.dev2.saooti.org/',
|
|
27
|
+
MiniplayerUri: 'https://playerbeta.dev2.saooti.org/',
|
|
29
28
|
ouestFranceStyle: false,
|
|
30
29
|
downloadButton: false,
|
|
31
30
|
hlsUri: 'https://hls.dev2.saooti.org/',
|
|
@@ -111,7 +110,6 @@ export interface PodcastPage{
|
|
|
111
110
|
ShareButtons?: boolean,
|
|
112
111
|
ShareDistribution?: boolean,
|
|
113
112
|
MiniplayerUri?: string,
|
|
114
|
-
MiniplayerBetaUri?: string,
|
|
115
113
|
ouestFranceStyle?: boolean,
|
|
116
114
|
downloadButton?: boolean,
|
|
117
115
|
hlsUri?: string,
|