@saooti/octopus-sdk 39.3.15 → 39.4.0-SNAPSHOT
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/.stylelintrc +18 -0
- package/index.ts +1 -0
- package/package.json +10 -1
- package/src/App.vue +2 -2
- package/src/components/display/categories/CategoryFilter.vue +11 -4
- package/src/components/display/categories/CategoryList.vue +1 -2
- package/src/components/display/comments/CommentInput.vue +5 -1
- package/src/components/display/comments/CommentList.vue +1 -0
- package/src/components/display/comments/CommentPlayer.vue +7 -3
- package/src/components/display/comments/item/CommentBasicView.vue +1 -1
- package/src/components/display/comments/item/CommentMoreActions.vue +1 -1
- package/src/components/display/comments/like/LikeButton.vue +21 -15
- package/src/components/display/comments/modal/EditCommentModal.vue +2 -14
- package/src/components/display/emission/EmissionInlineList.vue +5 -3
- package/src/components/display/emission/EmissionPlayerItem.vue +17 -12
- package/src/components/display/emission/EmissionPresentationItem.vue +4 -1
- package/src/components/display/emission/EmissionPresentationList.vue +19 -6
- package/src/components/display/filter/AdvancedSearch.vue +3 -2
- package/src/components/display/filter/ProductorSearch.vue +14 -11
- package/src/components/display/list/PaginateParams.vue +1 -0
- package/src/components/display/list/PaginateSection.vue +12 -8
- package/src/components/display/list/SwiperList.vue +8 -4
- package/src/components/display/live/CountdownOctopus.vue +48 -29
- package/src/components/display/live/RadioImage.vue +4 -3
- package/src/components/display/live/RadioPlanning.vue +11 -5
- package/src/components/display/organisation/OrganisationChooserLight.vue +0 -2
- package/src/components/display/participant/ParticipantInlineList.vue +2 -1
- package/src/components/display/participant/ParticipantItem.vue +11 -9
- package/src/components/display/playlist/PodcastList.vue +2 -1
- package/src/components/display/podcastmaker/PodcastmakerHeader.vue +5 -5
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +2 -1
- package/src/components/display/podcasts/PodcastItem.vue +21 -18
- package/src/components/display/podcasts/PodcastItemInfo.vue +1 -2
- package/src/components/display/podcasts/PodcastModuleBox.vue +6 -1
- package/src/components/display/podcasts/PodcastPlannedSpinner.vue +101 -0
- package/src/components/display/podcasts/PodcastPlayButton.vue +11 -5
- package/src/components/display/podcasts/PodcastRawTranscript.vue +28 -21
- package/src/components/display/podcasts/TagList.vue +7 -4
- package/src/components/display/podcasts/VideoModuleBox.vue +1 -1
- package/src/components/display/rubriques/RubriqueList.vue +8 -5
- package/src/components/display/sharing/PlayerParameters.vue +1 -1
- package/src/components/display/sharing/ShareButtons.vue +5 -2
- package/src/components/display/sharing/ShareDistribution.vue +8 -4
- package/src/components/display/sharing/SharePlayer.vue +12 -9
- package/src/components/display/sharing/SharePlayerRadio.vue +1 -1
- package/src/components/display/sharing/SubscribeButtons.vue +3 -2
- package/src/components/form/ClassicCheckbox.vue +16 -11
- package/src/components/form/ClassicContentEditable.vue +3 -2
- package/src/components/form/ClassicDatePicker.vue +3 -1
- package/src/components/form/ClassicEmojiPicker.vue +29 -17
- package/src/components/form/ClassicInputText.vue +2 -1
- package/src/components/form/ClassicMultiselect.vue +13 -2
- package/src/components/form/ClassicSearch.vue +7 -5
- package/src/components/form/ClassicSelect.vue +7 -5
- package/src/components/form/ClassicWysiwyg.vue +14 -5
- package/src/components/misc/AcpmImage.vue +2 -2
- package/src/components/misc/ClassicAccordion.vue +17 -10
- package/src/components/misc/ClassicNav.vue +25 -14
- package/src/components/misc/ClassicPopover.vue +62 -17
- package/src/components/misc/ErrorMessage.vue +3 -13
- package/src/components/misc/FooterSection.vue +3 -1
- package/src/components/misc/HomeDropdown.vue +1 -0
- package/src/components/misc/MobileMenu.vue +1 -0
- package/src/components/misc/ProgressBar.vue +6 -2
- package/src/components/misc/SnackBar.vue +1 -1
- package/src/components/misc/TopBar.vue +34 -24
- package/src/components/misc/TopBarMainContent.vue +27 -16
- package/src/components/misc/modal/ClassicModal.vue +16 -8
- package/src/components/misc/modal/NewsletterModal.vue +1 -1
- package/src/components/misc/player/PlayerCompact.vue +2 -1
- package/src/components/misc/player/PlayerComponent.vue +5 -2
- package/src/components/misc/player/PlayerLarge.vue +5 -2
- package/src/components/misc/player/ads/AdsProgressBar.vue +1 -1
- package/src/components/misc/player/ads/AdsSkipButton.vue +1 -0
- package/src/components/misc/player/chaptering/ChapteringModal.vue +3 -2
- package/src/components/misc/player/elements/PlayerImage.vue +9 -5
- package/src/components/misc/player/elements/PlayerPlayButton.vue +2 -0
- package/src/components/misc/player/elements/PlayerSpeedButton.vue +4 -2
- package/src/components/misc/player/radio/RadioHistory.vue +2 -1
- package/src/components/misc/player/radio/RadioProgressBar.vue +1 -1
- package/src/components/misc/player/video/PlayerVideo.vue +4 -1
- package/src/components/misc/player/video/PlayerVideoDigiteka.vue +1 -1
- package/src/components/misc/player/video/PlayerVideoHls.vue +4 -3
- package/src/components/mixins/podcast/podcastView.ts +3 -0
- package/src/components/pages/EmissionPage.vue +2 -10
- package/src/components/pages/EmissionsPage.vue +0 -8
- package/src/components/pages/Error403Page.vue +6 -3
- package/src/components/pages/MapPage.vue +1 -2
- package/src/components/pages/PageNotFound.vue +1 -1
- package/src/components/pages/ParticipantPage.vue +1 -1
- package/src/components/pages/PlaylistPage.vue +1 -3
- package/src/components/pages/PodcastPage.vue +47 -27
- package/src/components/pages/PodcastsPage.vue +0 -2
- package/src/components/pages/RadioPage.vue +1 -1
- package/src/components/pages/VideoPage.vue +17 -6
- package/src/locale/de.ts +1 -0
- package/src/locale/en.ts +1 -0
- package/src/locale/es.ts +1 -0
- package/src/locale/fr.ts +1 -0
- package/src/locale/it.ts +1 -0
- package/src/locale/sl.ts +1 -0
- package/src/{assets → style}/_utilities.scss +24 -26
- package/src/style/_variables.scss +33 -0
- package/src/{assets → style}/bootstrap.scss +117 -68
- package/src/{assets → style}/comments.scss +10 -6
- package/src/{assets → style}/form.scss +21 -15
- package/src/{assets → style}/general.scss +112 -54
- package/src/{assets → style}/iframe.scss +3 -1
- package/src/style/live.scss +27 -0
- package/src/style/octopus-library.scss +13 -0
- package/src/{assets → style}/progressbar.scss +32 -19
- package/src/{assets → style}/share.scss +68 -53
- package/src/{assets → style}/transition.scss +12 -3
- package/src/{assets → style}/videoPlayer.scss +1 -0
- package/vite.config.js +0 -1
- package/proxy.ts +0 -133
- package/src/assets/live.scss +0 -21
- package/src/assets/octopus-library.scss +0 -13
- package/src/sass/_variables.scss +0 -24
package/.stylelintrc
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
"stylelint-gamut"
|
|
4
|
+
],
|
|
5
|
+
"extends": [
|
|
6
|
+
"stylelint-config-standard-scss",
|
|
7
|
+
"stylelint-config-standard-vue",
|
|
8
|
+
"stylelint-config-standard-vue/scss",
|
|
9
|
+
"stylelint-config-recommended-vue",
|
|
10
|
+
"stylelint-config-recommended-vue/scss"
|
|
11
|
+
],
|
|
12
|
+
"rules": {
|
|
13
|
+
"gamut/color-no-out-gamut-range": true,
|
|
14
|
+
"function-disallowed-list": ["rgba", "hsla", "rgb", "hsl"],
|
|
15
|
+
"color-function-notation": "modern",
|
|
16
|
+
"color-no-hex": true
|
|
17
|
+
}
|
|
18
|
+
}
|
package/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export const getError403Page = () => import("./src/components/pages/Error403Page
|
|
|
16
16
|
export const getRadio = () => import("./src/components/pages/RadioPage.vue");
|
|
17
17
|
export const getVideo = () => import("./src/components/pages/VideoPage.vue");
|
|
18
18
|
export const getMapPage= () => import("./src/components/pages/MapPage.vue");
|
|
19
|
+
export const getPageNotFound= () => import("./src/components/pages/PageNotFound.vue");
|
|
19
20
|
|
|
20
21
|
//Misc
|
|
21
22
|
export const getAccordion = () => import("./src/components/misc/ClassicAccordion.vue");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "39.
|
|
3
|
+
"version": "39.4.0-SNAPSHOT",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"proxy_authentifié": "node proxy.ts",
|
|
12
12
|
"proxy_non_authentifié": "node proxy.ts false",
|
|
13
13
|
"lint": "eslint --fix src",
|
|
14
|
+
"stylelint": "stylelint **/*.{scss,vue} --fix",
|
|
14
15
|
"build_bundle": "vue-cli-service build --target lib --name octopus ./index.js",
|
|
15
16
|
"sonar": "node sonarqube-scanner.js"
|
|
16
17
|
},
|
|
@@ -37,10 +38,18 @@
|
|
|
37
38
|
"hls.js": "^1.5.17",
|
|
38
39
|
"humanize-duration": "^3.32.1",
|
|
39
40
|
"pinia": "^2.3.0",
|
|
41
|
+
"postcss-html": "^1.7.0",
|
|
40
42
|
"qrcode.vue": "^3.6.0",
|
|
41
43
|
"sass": "^1.82.0",
|
|
42
44
|
"sockjs-client": "^1.6.1",
|
|
43
45
|
"sonarqube-scanner": "^3.3.0",
|
|
46
|
+
"stylelint": "^16.13.0",
|
|
47
|
+
"stylelint-config-recommended-scss": "^14.1.0",
|
|
48
|
+
"stylelint-config-recommended-vue": "^1.5.0",
|
|
49
|
+
"stylelint-config-standard": "^37.0.0",
|
|
50
|
+
"stylelint-config-standard-scss": "^14.0.0",
|
|
51
|
+
"stylelint-config-standard-vue": "^1.0.0",
|
|
52
|
+
"stylelint-gamut": "^1.3.4",
|
|
44
53
|
"swiper": "^11.1.14",
|
|
45
54
|
"typescript-eslint": "^8.18.1",
|
|
46
55
|
"video.js": "^8.21.0",
|
package/src/App.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="d-flex flex-column h-100 octopus-app">
|
|
3
3
|
<template v-if="pageFullyLoad">
|
|
4
|
-
<TopBar
|
|
4
|
+
<TopBar/>
|
|
5
5
|
<main>
|
|
6
6
|
<CategoryFilter v-if="firstDisplayCategoryFilter" />
|
|
7
7
|
<div v-else class="category-filter-no-filter" />
|
|
@@ -116,4 +116,4 @@ export default defineComponent({
|
|
|
116
116
|
});
|
|
117
117
|
</script>
|
|
118
118
|
|
|
119
|
-
<style lang="scss" src="@/
|
|
119
|
+
<style lang="scss" src="@/style/octopus-library.scss"></style>
|
|
@@ -276,31 +276,38 @@ export default defineComponent({
|
|
|
276
276
|
min-height: 10rem;
|
|
277
277
|
background-size: cover;
|
|
278
278
|
background-position: center;
|
|
279
|
+
|
|
279
280
|
h1 {
|
|
280
|
-
margin: auto 1rem
|
|
281
|
+
margin: auto 1rem;
|
|
281
282
|
font-size: 2rem;
|
|
282
283
|
color: white;
|
|
283
284
|
}
|
|
284
|
-
|
|
285
|
+
|
|
286
|
+
@media (width <= 960px) {
|
|
285
287
|
min-height: 6rem;
|
|
286
288
|
}
|
|
287
289
|
}
|
|
290
|
+
|
|
288
291
|
.octopus-breadcrumb {
|
|
289
292
|
padding: 1rem;
|
|
290
293
|
align-items: center;
|
|
294
|
+
|
|
291
295
|
.octopus-breadcrumb-li {
|
|
292
296
|
list-style: none;
|
|
293
297
|
color: white !important;
|
|
298
|
+
|
|
294
299
|
a {
|
|
295
300
|
color: white !important;
|
|
296
301
|
font-weight: bold;
|
|
297
302
|
}
|
|
298
|
-
|
|
303
|
+
|
|
304
|
+
&::after {
|
|
299
305
|
content: "-";
|
|
300
306
|
margin: 0 0.5rem;
|
|
301
307
|
}
|
|
308
|
+
|
|
302
309
|
&:last-child {
|
|
303
|
-
|
|
310
|
+
&::after {
|
|
304
311
|
content: "";
|
|
305
312
|
}
|
|
306
313
|
}
|
|
@@ -25,14 +25,13 @@
|
|
|
25
25
|
<ClassicPopover
|
|
26
26
|
target="categories-dropdown"
|
|
27
27
|
:only-click="true"
|
|
28
|
-
:is-fixed="true"
|
|
29
28
|
:left-pos="true"
|
|
30
|
-
class="popover-z-index"
|
|
31
29
|
>
|
|
32
30
|
<button
|
|
33
31
|
v-for="category in hidenCategories"
|
|
34
32
|
:key="category.id"
|
|
35
33
|
class="me-3 octopus-dropdown-item"
|
|
34
|
+
@keydown.enter="checkIfFilter(category)"
|
|
36
35
|
@mousedown="checkIfFilter(category)"
|
|
37
36
|
>
|
|
38
37
|
{{ category.name }}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
/>
|
|
11
11
|
<div v-if="isTextareaActive" class="d-flex justify-content-between mt-1">
|
|
12
12
|
<ClassicEmojiPicker
|
|
13
|
+
:id="uniqueId"
|
|
13
14
|
popover-relative-class="page-element"
|
|
14
15
|
@emoji-selected="addEmojiSelected"
|
|
15
16
|
/>
|
|
@@ -123,6 +124,9 @@ export default defineComponent({
|
|
|
123
124
|
? this.$t("Answer a comment")
|
|
124
125
|
: this.$t("Write a comment");
|
|
125
126
|
},
|
|
127
|
+
uniqueId(){
|
|
128
|
+
return "-comment"+(this.inAnswerComment?.commentId??"-parent");
|
|
129
|
+
}
|
|
126
130
|
},
|
|
127
131
|
watch: {
|
|
128
132
|
focus(): void {
|
|
@@ -196,7 +200,7 @@ export default defineComponent({
|
|
|
196
200
|
border-top: 0;
|
|
197
201
|
border-right: 0;
|
|
198
202
|
border-left: 0;
|
|
199
|
-
border-bottom: 0.1rem solid
|
|
203
|
+
border-bottom: 0.1rem solid var(--octopus-border-default) !important;
|
|
200
204
|
overflow: hidden !important;
|
|
201
205
|
box-shadow: unset !important;
|
|
202
206
|
background: transparent !important;
|
|
@@ -86,22 +86,26 @@ export default defineComponent({
|
|
|
86
86
|
</script>
|
|
87
87
|
|
|
88
88
|
<style lang="scss">
|
|
89
|
-
@use "../../../
|
|
89
|
+
@use "../../../style/comments";
|
|
90
|
+
|
|
90
91
|
.octopus-app {
|
|
91
92
|
.comment-player-container {
|
|
92
93
|
position: relative;
|
|
93
94
|
width: 100%;
|
|
94
95
|
height: 60px;
|
|
95
96
|
display: flex;
|
|
96
|
-
|
|
97
|
+
|
|
98
|
+
@media (width <= 960px) {
|
|
97
99
|
display: none;
|
|
98
100
|
}
|
|
101
|
+
|
|
99
102
|
.comment-border {
|
|
100
103
|
width: auto;
|
|
101
104
|
position: absolute;
|
|
102
|
-
border-left: solid 1px
|
|
105
|
+
border-left: solid 1px white;
|
|
103
106
|
height: 10px;
|
|
104
107
|
}
|
|
108
|
+
|
|
105
109
|
.status-comment {
|
|
106
110
|
margin-top: 10px;
|
|
107
111
|
position: absolute;
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
</button>
|
|
36
36
|
<ClassicPopover
|
|
37
37
|
:target="'comment-dropdown' + comment.commentId"
|
|
38
|
-
popover-class="popover-z-index"
|
|
39
38
|
:only-click="true"
|
|
40
39
|
:left-pos="true"
|
|
41
40
|
>
|
|
@@ -44,6 +43,7 @@
|
|
|
44
43
|
v-if="action.condition"
|
|
45
44
|
class="octopus-dropdown-item c-hand"
|
|
46
45
|
@mousedown="action.actionClick"
|
|
46
|
+
@keydown.enter="action.actionClick"
|
|
47
47
|
>
|
|
48
48
|
{{ action.title }}
|
|
49
49
|
</button>
|
|
@@ -81,11 +81,12 @@ export default defineComponent({
|
|
|
81
81
|
});
|
|
82
82
|
</script>
|
|
83
83
|
<style lang="scss">
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
@use "sass:color";
|
|
86
|
+
|
|
86
87
|
.octopus-app .btn-like-comment {
|
|
87
|
-
$
|
|
88
|
-
|
|
88
|
+
$background-color: var(--octopus-primary);
|
|
89
|
+
|
|
89
90
|
&.is-dislike {
|
|
90
91
|
$background-color: black;
|
|
91
92
|
}
|
|
@@ -95,7 +96,7 @@ export default defineComponent({
|
|
|
95
96
|
border: none;
|
|
96
97
|
outline: none;
|
|
97
98
|
z-index: 1;
|
|
98
|
-
color:
|
|
99
|
+
color: var(--octopus-color-text);
|
|
99
100
|
font-size: 1.2rem;
|
|
100
101
|
width: 2.2rem;
|
|
101
102
|
height: 2.2rem;
|
|
@@ -107,8 +108,8 @@ export default defineComponent({
|
|
|
107
108
|
justify-content: center;
|
|
108
109
|
|
|
109
110
|
&:hover {
|
|
110
|
-
background:
|
|
111
|
-
color:
|
|
111
|
+
background: var(--octopus-secondary);
|
|
112
|
+
color: oklch(from var(--octopus-color-text) calc(l + 0.1) c h);
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
/* Animation */
|
|
@@ -118,8 +119,8 @@ export default defineComponent({
|
|
|
118
119
|
background: $background-color;
|
|
119
120
|
animation: 0.8s;
|
|
120
121
|
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
&::before,
|
|
123
|
+
&::after {
|
|
123
124
|
content: "";
|
|
124
125
|
position: absolute;
|
|
125
126
|
top: 50%;
|
|
@@ -130,7 +131,7 @@ export default defineComponent({
|
|
|
130
131
|
height: 6px;
|
|
131
132
|
border-radius: 100%;
|
|
132
133
|
transform: scale(0);
|
|
133
|
-
color:
|
|
134
|
+
color: var(--octopus-color-text);;
|
|
134
135
|
border: 1px solid transparent;
|
|
135
136
|
box-shadow:
|
|
136
137
|
-0.8em 0 0 -2px,
|
|
@@ -143,37 +144,42 @@ export default defineComponent({
|
|
|
143
144
|
0.6em 0.6em 0 -2px;
|
|
144
145
|
}
|
|
145
146
|
|
|
146
|
-
|
|
147
|
+
&::before {
|
|
147
148
|
animation: effect-01-animation 0.8s
|
|
148
149
|
cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
149
150
|
}
|
|
150
|
-
|
|
151
|
+
|
|
152
|
+
&::after {
|
|
151
153
|
animation: effect-02-animation 0.6s
|
|
152
154
|
cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
153
155
|
}
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
@keyframes effect-01-animation {
|
|
157
|
-
|
|
159
|
+
0% {
|
|
158
160
|
transform: rotate(-15deg) scale(0);
|
|
159
161
|
}
|
|
162
|
+
|
|
160
163
|
40% {
|
|
161
164
|
opacity: 1;
|
|
162
165
|
}
|
|
163
|
-
|
|
166
|
+
|
|
167
|
+
100% {
|
|
164
168
|
transform: rotate(-30deg) scale(2.5);
|
|
165
169
|
opacity: 0;
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
172
|
|
|
169
173
|
@keyframes effect-02-animation {
|
|
170
|
-
|
|
174
|
+
0% {
|
|
171
175
|
transform: rotate(10deg) scale(0);
|
|
172
176
|
}
|
|
177
|
+
|
|
173
178
|
40% {
|
|
174
179
|
opacity: 1;
|
|
175
180
|
}
|
|
176
|
-
|
|
181
|
+
|
|
182
|
+
100% {
|
|
177
183
|
transform: rotate(30deg) scale(2);
|
|
178
184
|
opacity: 0;
|
|
179
185
|
}
|
|
@@ -10,13 +10,6 @@
|
|
|
10
10
|
:error-text="errorUpdate ? $t(`An error occurred`) : undefined"
|
|
11
11
|
/>
|
|
12
12
|
<template v-if="!inProcessing && !errorUpdate">
|
|
13
|
-
<ClassicInputText
|
|
14
|
-
v-model:text-init="name"
|
|
15
|
-
v-model:error-variable="errorName"
|
|
16
|
-
input-id="username-input"
|
|
17
|
-
:label="$t('Your name')"
|
|
18
|
-
:max-length="MAX_NAME"
|
|
19
|
-
/>
|
|
20
13
|
<ClassicInputText
|
|
21
14
|
v-model:text-init="commentText"
|
|
22
15
|
v-model:error-variable="errorCommentText"
|
|
@@ -26,7 +19,7 @@
|
|
|
26
19
|
:error-text="$t('Please provide a comment')"
|
|
27
20
|
:is-textarea="true"
|
|
28
21
|
:is-emoji-picker="true"
|
|
29
|
-
|
|
22
|
+
popover-relative-class="octopus-modal"
|
|
30
23
|
:focus="true"
|
|
31
24
|
/>
|
|
32
25
|
<ClassicSelect
|
|
@@ -49,7 +42,7 @@
|
|
|
49
42
|
</button>
|
|
50
43
|
<button
|
|
51
44
|
class="btn btn-primary m-1"
|
|
52
|
-
:disabled="
|
|
45
|
+
:disabled="errorCommentText"
|
|
53
46
|
@click="onEditComment"
|
|
54
47
|
>
|
|
55
48
|
{{ $t("Yes") }}
|
|
@@ -97,10 +90,7 @@ export default defineComponent({
|
|
|
97
90
|
data() {
|
|
98
91
|
return {
|
|
99
92
|
MAX_DESCRIPTION: Constants.MAX_COMMENT as number,
|
|
100
|
-
MAX_NAME: Constants.MAX_COMMENT_NAME as number,
|
|
101
|
-
name: undefined as string | undefined,
|
|
102
93
|
commentText: undefined as string | undefined,
|
|
103
|
-
errorName: true as boolean,
|
|
104
94
|
errorCommentText: true as boolean,
|
|
105
95
|
commentState: "PENDING" as string,
|
|
106
96
|
errorUpdate: false as boolean,
|
|
@@ -115,7 +105,6 @@ export default defineComponent({
|
|
|
115
105
|
if (!this.comment) {
|
|
116
106
|
return;
|
|
117
107
|
}
|
|
118
|
-
this.name = this.comment.poster.userName;
|
|
119
108
|
this.commentText = this.comment.content;
|
|
120
109
|
this.commentState = this.comment.state;
|
|
121
110
|
},
|
|
@@ -131,7 +120,6 @@ export default defineComponent({
|
|
|
131
120
|
dataToSend: {
|
|
132
121
|
commentId: this.comment.commentId,
|
|
133
122
|
content: this.commentText,
|
|
134
|
-
name: this.name,
|
|
135
123
|
state: this.commentState,
|
|
136
124
|
},
|
|
137
125
|
isNotAuth: !this.editRight,
|
|
@@ -151,10 +151,12 @@ export default defineComponent({
|
|
|
151
151
|
<style lang="scss">
|
|
152
152
|
.octopus-app {
|
|
153
153
|
.list-episode {
|
|
154
|
-
padding: 2rem
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
padding: 2rem 0 1rem !important;
|
|
155
|
+
|
|
156
|
+
@media (width <= 450px) {
|
|
157
|
+
padding: 0.5rem 0 1rem !important;
|
|
157
158
|
}
|
|
159
|
+
|
|
158
160
|
h2 {
|
|
159
161
|
margin-bottom: 1rem;
|
|
160
162
|
}
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
playerPodcast !== p ||
|
|
69
69
|
(playerPodcast === p && 'PAUSED' === playerStatus)
|
|
70
70
|
"
|
|
71
|
-
class="play-button-box bg-secondary"
|
|
71
|
+
class="play-button-box bg-secondary-light"
|
|
72
72
|
@click="play(p)"
|
|
73
73
|
>
|
|
74
74
|
<PlayIcon class="text-light" :title="$t('Play')" />
|
|
75
75
|
</button>
|
|
76
|
-
<button v-else class="play-button-box bg-secondary" @click="pause(p)">
|
|
76
|
+
<button v-else class="play-button-box bg-secondary-light" @click="pause(p)">
|
|
77
77
|
<PauseIcon class="text-light" :title="$t('Pause')" />
|
|
78
78
|
</button>
|
|
79
79
|
</div>
|
|
80
80
|
</div>
|
|
81
81
|
<div
|
|
82
82
|
v-if="buttonMore && podcasts.length === nbPodcasts"
|
|
83
|
-
class="border-top emission-item-border-color p-2
|
|
83
|
+
class="border-top emission-item-border-color p-2 octopus-bg d-flex justify-content-center"
|
|
84
84
|
>
|
|
85
85
|
<router-link
|
|
86
86
|
:to="{
|
|
@@ -184,31 +184,36 @@ export default defineComponent({
|
|
|
184
184
|
</script>
|
|
185
185
|
|
|
186
186
|
<style lang="scss">
|
|
187
|
-
|
|
187
|
+
|
|
188
|
+
|
|
188
189
|
.emission-player-container {
|
|
189
190
|
list-style: none;
|
|
190
|
-
background:
|
|
191
|
+
background: var(--octopus-background);
|
|
191
192
|
display: flex;
|
|
192
193
|
flex-direction: column;
|
|
193
194
|
width: 100%;
|
|
194
|
-
max-width:
|
|
195
|
+
max-width: var(--octopus-image-size);
|
|
195
196
|
height: min-content;
|
|
196
|
-
border: 2px solid
|
|
197
|
-
border-radius:
|
|
197
|
+
border: 2px solid var(--octopus-border-default);
|
|
198
|
+
border-radius: var(--octopus-border-radius);
|
|
198
199
|
overflow: hidden;
|
|
200
|
+
|
|
199
201
|
.emission-item-border-color {
|
|
200
|
-
border-color:
|
|
202
|
+
border-color: var(--octopus-secondary);
|
|
201
203
|
}
|
|
204
|
+
|
|
202
205
|
.define-width {
|
|
203
206
|
width: 9rem;
|
|
204
207
|
}
|
|
205
|
-
|
|
208
|
+
|
|
209
|
+
@media (width <= 960px) {
|
|
206
210
|
.d-flex:not(.flex-column) {
|
|
207
211
|
flex-wrap: nowrap;
|
|
208
212
|
}
|
|
209
213
|
}
|
|
210
|
-
|
|
211
|
-
|
|
214
|
+
|
|
215
|
+
@media (width <= 450px) {
|
|
216
|
+
max-width: var(--octopus-image-size);
|
|
212
217
|
}
|
|
213
218
|
}
|
|
214
219
|
</style>
|
|
@@ -96,21 +96,24 @@ export default defineComponent({
|
|
|
96
96
|
<style lang="scss">
|
|
97
97
|
.octopus-app {
|
|
98
98
|
.emission-presentation-container {
|
|
99
|
-
@media (
|
|
99
|
+
@media (width <= 960px) {
|
|
100
100
|
width: 250px !important;
|
|
101
101
|
margin-right: 0.5rem;
|
|
102
102
|
}
|
|
103
|
+
|
|
103
104
|
.emission-description {
|
|
104
105
|
height: 0;
|
|
105
106
|
flex-grow: 1;
|
|
106
107
|
max-height: unset;
|
|
107
108
|
}
|
|
108
109
|
}
|
|
110
|
+
|
|
109
111
|
.emission-item-container.emission-vertical-item {
|
|
110
112
|
flex-grow: 0;
|
|
111
113
|
width: 400px;
|
|
112
114
|
flex-shrink: 0;
|
|
113
115
|
}
|
|
116
|
+
|
|
114
117
|
.img-box-bigger {
|
|
115
118
|
width: 400px;
|
|
116
119
|
height: 400px;
|
|
@@ -129,33 +129,46 @@ export default defineComponent({
|
|
|
129
129
|
<style lang="scss">
|
|
130
130
|
.octopus-app {
|
|
131
131
|
.overflow-phone-auto {
|
|
132
|
-
@media (
|
|
132
|
+
@media (width <= 960px) {
|
|
133
133
|
overflow-y: auto;
|
|
134
|
+
scroll-snap-type: x mandatory;
|
|
135
|
+
|
|
136
|
+
.emission-item-container{
|
|
137
|
+
scroll-snap-align: center;
|
|
138
|
+
}
|
|
134
139
|
}
|
|
135
140
|
}
|
|
141
|
+
|
|
136
142
|
.emission-column {
|
|
137
143
|
flex-shrink: 0;
|
|
138
144
|
width: calc((100% - 420px) / 2);
|
|
139
|
-
|
|
145
|
+
|
|
146
|
+
@media (width <= 1550px) {
|
|
140
147
|
width: calc((100% - 420px));
|
|
141
148
|
}
|
|
142
|
-
|
|
149
|
+
|
|
150
|
+
@media (width <= 960px) {
|
|
143
151
|
width: auto;
|
|
144
152
|
flex-direction: row !important;
|
|
145
153
|
}
|
|
146
154
|
}
|
|
155
|
+
|
|
147
156
|
.emission-column-margin {
|
|
148
157
|
margin-right: 1rem;
|
|
149
|
-
|
|
158
|
+
|
|
159
|
+
@media (width <= 960px) {
|
|
150
160
|
margin-right: 0;
|
|
151
161
|
}
|
|
152
162
|
}
|
|
163
|
+
|
|
153
164
|
.show-emission-column {
|
|
154
165
|
display: flex;
|
|
155
|
-
|
|
166
|
+
|
|
167
|
+
@media (width <= 1550px) {
|
|
156
168
|
display: none !important;
|
|
157
169
|
}
|
|
158
|
-
|
|
170
|
+
|
|
171
|
+
@media (width <= 960px) {
|
|
159
172
|
display: flex !important;
|
|
160
173
|
}
|
|
161
174
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{{ $t("Filter") }}
|
|
18
18
|
</div>
|
|
19
19
|
<MonetizableFilter
|
|
20
|
-
v-if="!isPodcastmaker && !
|
|
20
|
+
v-if="!isPodcastmaker && !platformEducation"
|
|
21
21
|
:is-emission="isEmission"
|
|
22
22
|
:monetisable="monetisable"
|
|
23
23
|
@update:monetisable="updateMonetisable"
|
|
@@ -82,6 +82,7 @@ import { rubriquesFilterParam } from "../../mixins/routeParam/rubriquesFilterPar
|
|
|
82
82
|
import { RubriquageFilter } from "@/stores/class/rubrique/rubriquageFilter";
|
|
83
83
|
import { defineComponent, defineAsyncComponent } from "vue";
|
|
84
84
|
import { mapState } from "pinia";
|
|
85
|
+
import { useGeneralStore } from "../../../stores/GeneralStore";
|
|
85
86
|
const MonetizableFilter = defineAsyncComponent(
|
|
86
87
|
() => import("./MonetizableFilter.vue"),
|
|
87
88
|
);
|
|
@@ -110,7 +111,6 @@ export default defineComponent({
|
|
|
110
111
|
props: {
|
|
111
112
|
organisationId: { default: undefined, type: String },
|
|
112
113
|
isEmission: { default: false, type: Boolean },
|
|
113
|
-
isEducation: { default: false, type: Boolean },
|
|
114
114
|
includeHidden: { default: false, type: Boolean },
|
|
115
115
|
sort: { default: "DATE", type: String },
|
|
116
116
|
onlyVideo: { default: false, type: Boolean },
|
|
@@ -145,6 +145,7 @@ export default defineComponent({
|
|
|
145
145
|
},
|
|
146
146
|
|
|
147
147
|
computed: {
|
|
148
|
+
...mapState(useGeneralStore, ["platformEducation"]),
|
|
148
149
|
...mapState(useFilterStore, ["filterIab", "filterRubrique"]),
|
|
149
150
|
...mapState(useAuthStore, [
|
|
150
151
|
"isRoleProduction",
|
|
@@ -144,22 +144,21 @@ export default defineComponent({
|
|
|
144
144
|
</script>
|
|
145
145
|
|
|
146
146
|
<style lang="scss">
|
|
147
|
-
|
|
147
|
+
|
|
148
|
+
|
|
148
149
|
.octopus-app {
|
|
149
150
|
.filter-speech-bubble {
|
|
150
151
|
position: absolute;
|
|
151
|
-
background:
|
|
152
|
-
border-radius:
|
|
152
|
+
background: var(--octopus-primary);
|
|
153
|
+
border-radius: var(--octopus-border-radius);
|
|
153
154
|
width: 10rem;
|
|
154
155
|
right: 4rem;
|
|
155
156
|
padding: 5px;
|
|
156
|
-
-webkit-animation: fadein 1s;
|
|
157
|
-
-moz-animation: fadein 1s;
|
|
158
157
|
animation: fadein 1s;
|
|
159
158
|
color: white;
|
|
160
159
|
}
|
|
161
160
|
|
|
162
|
-
.filter-speech-bubble
|
|
161
|
+
.filter-speech-bubble::after {
|
|
163
162
|
content: "";
|
|
164
163
|
position: absolute;
|
|
165
164
|
right: 0;
|
|
@@ -167,35 +166,39 @@ export default defineComponent({
|
|
|
167
166
|
width: 0;
|
|
168
167
|
height: 0;
|
|
169
168
|
border: 18px solid transparent;
|
|
170
|
-
border-left-color:
|
|
169
|
+
border-left-color: var(--octopus-primary);
|
|
171
170
|
border-right: 0;
|
|
172
171
|
border-bottom: 0;
|
|
173
172
|
margin-top: -9px;
|
|
174
173
|
margin-right: -18px;
|
|
175
|
-
-webkit-animation: fadein 1s;
|
|
176
|
-
-moz-animation: fadein 1s;
|
|
177
174
|
animation: fadein 1s;
|
|
178
175
|
}
|
|
176
|
+
|
|
179
177
|
@keyframes fadein {
|
|
180
178
|
from {
|
|
181
179
|
opacity: 0;
|
|
182
180
|
}
|
|
181
|
+
|
|
183
182
|
to {
|
|
184
183
|
opacity: 1;
|
|
185
184
|
}
|
|
186
185
|
}
|
|
187
|
-
|
|
186
|
+
|
|
187
|
+
@keyframes fadein {
|
|
188
188
|
from {
|
|
189
189
|
opacity: 0;
|
|
190
190
|
}
|
|
191
|
+
|
|
191
192
|
to {
|
|
192
193
|
opacity: 1;
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
|
-
|
|
196
|
+
|
|
197
|
+
@keyframes fadein {
|
|
196
198
|
from {
|
|
197
199
|
opacity: 0;
|
|
198
200
|
}
|
|
201
|
+
|
|
199
202
|
to {
|
|
200
203
|
opacity: 1;
|
|
201
204
|
}
|