@saooti/octopus-sdk 33.0.5 → 33.0.7
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 +4 -0
- package/package.json +1 -1
- package/src/assets/bootstrap-diff.scss +6 -6
- package/src/assets/form.scss +2 -2
- package/src/assets/general.scss +2 -2
- package/src/assets/modal.scss +1 -1
- package/src/components/display/categories/CategoryChooser.vue +2 -3
- package/src/components/display/comments/AddCommentModal.vue +2 -1
- package/src/components/display/comments/CommentInput.vue +1 -1
- package/src/components/display/filter/ProductorSearch.vue +2 -2
- package/src/components/display/podcasts/PodcastModuleBox.vue +12 -0
- package/src/components/display/rubriques/RubriqueList.vue +5 -0
- package/src/components/display/sharing/SharePlayer.vue +2 -2
- package/src/components/pages/Category.vue +4 -21
- package/src/locale/de.ts +2 -0
- package/src/locale/en.ts +2 -0
- package/src/locale/es.ts +2 -0
- package/src/locale/fr.ts +2 -0
- package/src/locale/it.ts +2 -0
- package/src/locale/sl.ts +2 -0
- package/src/sass/_variables.scss +11 -28
- package/src/shims-vue-recaptcha-v3.d.ts +0 -9
package/README.md
CHANGED
|
@@ -688,7 +688,11 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
688
688
|
* 32.0.35 Enlever Dummy param
|
|
689
689
|
* 32.0.36 Select -> font family
|
|
690
690
|
* 32.0.40 Problème majeur !!!
|
|
691
|
+
* 32.0.42 Parlement européen
|
|
691
692
|
|
|
692
693
|
* 33.0.3 SpeechToText player octopus
|
|
693
694
|
* 33.0.4 Image webp
|
|
694
695
|
* 33.0.5 Change recaptcha
|
|
696
|
+
* 33.0.6 Crédits
|
|
697
|
+
* 33.0.7 Test refactor podcastmaker with scss variables
|
|
698
|
+
|
package/package.json
CHANGED
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
display: flex;
|
|
60
60
|
align-items: center;
|
|
61
61
|
justify-content: center;
|
|
62
|
-
background: $octopus-primary-
|
|
63
|
-
border: 1px solid $octopus-primary-
|
|
62
|
+
background: $octopus-primary-color;
|
|
63
|
+
border: 1px solid $octopus-primary-color;
|
|
64
64
|
border-radius: 4px !important;
|
|
65
65
|
color: white !important;
|
|
66
66
|
font-weight: bold;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
&:active,
|
|
70
70
|
&.active {
|
|
71
71
|
background: transparent;
|
|
72
|
-
color: $octopus-primary-
|
|
72
|
+
color: $octopus-primary-color !important;
|
|
73
73
|
}
|
|
74
74
|
&:disabled{
|
|
75
75
|
background-color: #cccccc;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
&.btn-more{
|
|
86
|
-
background: $octopus-primary-
|
|
86
|
+
background: $octopus-primary-color;
|
|
87
87
|
color: $octopus-background;
|
|
88
88
|
width: 2rem;
|
|
89
89
|
height: 2rem;
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
display: inline-flex;
|
|
103
103
|
align-items: center;
|
|
104
104
|
justify-content: center;
|
|
105
|
-
color : $octopus-primary-
|
|
105
|
+
color : $octopus-primary-color;
|
|
106
106
|
flex-shrink: 0;
|
|
107
107
|
font-weight: normal;
|
|
108
108
|
border-radius: 50% !important;
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
display: inline-flex;
|
|
118
118
|
align-items: center;
|
|
119
119
|
justify-content: center;
|
|
120
|
-
color : $octopus-primary-
|
|
120
|
+
color : $octopus-primary-color;
|
|
121
121
|
flex-shrink: 0;
|
|
122
122
|
border-radius: 50% !important;
|
|
123
123
|
}
|
package/src/assets/form.scss
CHANGED
package/src/assets/general.scss
CHANGED
|
@@ -80,7 +80,7 @@ body{
|
|
|
80
80
|
color: $octopus-primary-color;
|
|
81
81
|
}
|
|
82
82
|
.primary-darker{
|
|
83
|
-
color: $octopus-primary-
|
|
83
|
+
color: $octopus-primary-color;
|
|
84
84
|
}
|
|
85
85
|
.primary-bg{
|
|
86
86
|
background: $octopus-primary-color;
|
|
@@ -146,7 +146,7 @@ body{
|
|
|
146
146
|
color: black !important;
|
|
147
147
|
}
|
|
148
148
|
a.link-hover.router-link-exact-active.router-link-active, a.link-hover:hover {
|
|
149
|
-
color: $octopus-primary-
|
|
149
|
+
color: $octopus-primary-color !important;
|
|
150
150
|
}
|
|
151
151
|
.descriptionText{
|
|
152
152
|
white-space: pre-wrap;
|
package/src/assets/modal.scss
CHANGED
|
@@ -146,7 +146,7 @@ export default defineComponent({
|
|
|
146
146
|
.octopus-app{
|
|
147
147
|
.filter-speech-bubble {
|
|
148
148
|
position: absolute;
|
|
149
|
-
background: $octopus-primary-
|
|
149
|
+
background: $octopus-primary-color;
|
|
150
150
|
border-radius: 0.4em;
|
|
151
151
|
width: 10rem;
|
|
152
152
|
right: 4rem;
|
|
@@ -165,7 +165,7 @@ export default defineComponent({
|
|
|
165
165
|
width: 0;
|
|
166
166
|
height: 0;
|
|
167
167
|
border: 18px solid transparent;
|
|
168
|
-
border-left-color: $octopus-primary-
|
|
168
|
+
border-left-color: $octopus-primary-color;
|
|
169
169
|
border-right: 0;
|
|
170
170
|
border-bottom: 0;
|
|
171
171
|
margin-top: -9px;
|
|
@@ -85,6 +85,12 @@
|
|
|
85
85
|
{{ podcast.organisation.name }}
|
|
86
86
|
</router-link>
|
|
87
87
|
</div>
|
|
88
|
+
<div v-if="''!==photoCredit">
|
|
89
|
+
{{ $t('Photo credits') + " : "+ photoCredit }}
|
|
90
|
+
</div>
|
|
91
|
+
<div v-if="''!==audioCredit">
|
|
92
|
+
{{ $t('Audio credits') + " : "+ audioCredit }}
|
|
93
|
+
</div>
|
|
88
94
|
<a
|
|
89
95
|
v-if="podcast.article"
|
|
90
96
|
class="btn d-flex align-items-center my-2 width-fit-content"
|
|
@@ -224,6 +230,12 @@ export default defineComponent({
|
|
|
224
230
|
podcastNotValid(): boolean {
|
|
225
231
|
return undefined!==this.podcast?.availability && false === this.podcast?.valid;
|
|
226
232
|
},
|
|
233
|
+
photoCredit():string{
|
|
234
|
+
return (this.podcast?.annotations?.photoCredit as string) ?? '';
|
|
235
|
+
},
|
|
236
|
+
audioCredit():string{
|
|
237
|
+
return (this.podcast?.annotations?.audioCredit as string) ?? '';
|
|
238
|
+
}
|
|
227
239
|
},
|
|
228
240
|
methods: {
|
|
229
241
|
playPodcast(podcast: Podcast): void {
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
ref="rubriqueListContainer"
|
|
5
5
|
class="rubrique-list-container"
|
|
6
6
|
>
|
|
7
|
+
<label
|
|
8
|
+
for="rubrique-list-select"
|
|
9
|
+
class="hid"
|
|
10
|
+
>{{$t('By topic')}}</label>
|
|
7
11
|
<select
|
|
12
|
+
id="rubrique-list-select"
|
|
8
13
|
v-model="rubriquage"
|
|
9
14
|
class="c-hand"
|
|
10
15
|
@change="onRubriquageSelected"
|
|
@@ -319,7 +319,7 @@ export default defineComponent({
|
|
|
319
319
|
.octopus-app{
|
|
320
320
|
.sticker {
|
|
321
321
|
align-self: center;
|
|
322
|
-
background: $octopus-primary-
|
|
322
|
+
background: $octopus-primary-color;
|
|
323
323
|
padding: 0.5rem;
|
|
324
324
|
transition: all 0.5s ease;
|
|
325
325
|
color: white;
|
|
@@ -331,7 +331,7 @@ export default defineComponent({
|
|
|
331
331
|
&:hover {
|
|
332
332
|
box-shadow: 2px 8px 4px -6px hsla(0, 0%, 0%, 0.3);
|
|
333
333
|
background: transparent;
|
|
334
|
-
color: $octopus-primary-
|
|
334
|
+
color: $octopus-primary-color;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
.max-iframe {
|
|
@@ -23,12 +23,6 @@ export default defineComponent({
|
|
|
23
23
|
iabId: { default: undefined, type: Number},
|
|
24
24
|
},
|
|
25
25
|
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
title: '' as string,
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
|
|
32
26
|
computed: {
|
|
33
27
|
categories(): Array<Category> {
|
|
34
28
|
return this.$store.state.categories;
|
|
@@ -36,22 +30,11 @@ export default defineComponent({
|
|
|
36
30
|
filterOrga(): string {
|
|
37
31
|
return this.$store.state.filter.organisationId;
|
|
38
32
|
},
|
|
39
|
-
|
|
40
|
-
watch: {
|
|
41
|
-
iabId(): void {
|
|
42
|
-
this.extractTitle();
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
mounted() {
|
|
47
|
-
this.extractTitle();
|
|
48
|
-
},
|
|
49
|
-
methods: {
|
|
50
|
-
extractTitle(): void {
|
|
33
|
+
title():string{
|
|
51
34
|
const matchCategories = this.categories.filter((c: Category) => c.id === this.iabId);
|
|
52
|
-
if (1 !== matchCategories.length) return;
|
|
53
|
-
|
|
54
|
-
}
|
|
35
|
+
if (1 !== matchCategories.length) return "";
|
|
36
|
+
return matchCategories[0]['name'];
|
|
37
|
+
}
|
|
55
38
|
},
|
|
56
39
|
})
|
|
57
40
|
</script>
|
package/src/locale/de.ts
CHANGED
package/src/locale/en.ts
CHANGED
package/src/locale/es.ts
CHANGED
|
@@ -307,4 +307,6 @@ export default{
|
|
|
307
307
|
"Warning":"Advertencia",
|
|
308
308
|
"Visual":"Imagen de {name}",
|
|
309
309
|
"If the transcript is available, show it":"Si la transcripción está disponible, muéstrela",
|
|
310
|
+
"Photo credits":"Créditos fotográficos",
|
|
311
|
+
"Audio credits":"Créditos de audio",
|
|
310
312
|
}
|
package/src/locale/fr.ts
CHANGED
package/src/locale/it.ts
CHANGED
package/src/locale/sl.ts
CHANGED
package/src/sass/_variables.scss
CHANGED
|
@@ -1,35 +1,18 @@
|
|
|
1
|
-
// Body
|
|
2
|
-
$body-bg: #f8fafc;
|
|
3
|
-
|
|
4
1
|
// Typography
|
|
5
2
|
$font-family-sans-serif: sans-serif;
|
|
6
3
|
$font-size-base: 0.9rem;
|
|
7
4
|
$line-height-base: 1.6;
|
|
8
|
-
$primary: #32815C;
|
|
9
|
-
$secondary: #636C73;
|
|
10
|
-
$danger: #E22C27;
|
|
11
|
-
|
|
12
|
-
// Colors
|
|
13
|
-
$blue: #3490dc;
|
|
14
|
-
$indigo: #6574cd;
|
|
15
|
-
$purple: #9561e2;
|
|
16
|
-
$pink: #f66d9b;
|
|
17
|
-
$red: #e3342f;
|
|
18
|
-
$orange: #f6993f;
|
|
19
|
-
$yellow: #ffed4a;
|
|
20
|
-
$green: #38c172;
|
|
21
|
-
$teal: #4dc0b5;
|
|
22
|
-
$cyan: #6cb2eb;
|
|
23
|
-
|
|
24
|
-
//Octopus style
|
|
25
|
-
$octopus-background: #fafafa;
|
|
26
|
-
$octopus-primary-color: #40a372;
|
|
27
|
-
$octopus-secondary-color : #ddd;
|
|
28
|
-
$octopus-primary-linear-background: #7fd8ab;
|
|
29
|
-
$octopus-primary-dark : #1a8658;
|
|
30
5
|
|
|
31
|
-
|
|
32
|
-
$
|
|
33
|
-
$
|
|
6
|
+
// bootstrap color
|
|
7
|
+
$primary: #1a8658 !default;
|
|
8
|
+
$secondary: #636C73 !default;
|
|
9
|
+
$danger: #E22C27 !default;
|
|
34
10
|
|
|
11
|
+
//SDK Octopus style
|
|
12
|
+
$octopus-background: #fafafa !default;
|
|
13
|
+
$octopus-primary-color: #1a8658 !default;
|
|
14
|
+
$octopus-secondary-color : #ddd !default;
|
|
35
15
|
|
|
16
|
+
$primaryColorTransparent : #1a865893 !default;
|
|
17
|
+
$primaryColorMoreTransparent : #1a865854 !default;
|
|
18
|
+
$primaryColorReallyTransparent : #cef7e250 !default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReCaptchaInstance } from 'recaptcha-v3'
|
|
2
|
-
|
|
3
|
-
declare module '@vue/runtime-core' {
|
|
4
|
-
interface ComponentCustomProperties {
|
|
5
|
-
$recaptcha: (action: string) => Promise<string>
|
|
6
|
-
$recaptchaLoaded: () => Promise<boolean>
|
|
7
|
-
$recaptchaInstance: ReCaptchaInstance
|
|
8
|
-
}
|
|
9
|
-
}
|