@saooti/octopus-sdk 36.0.1 → 36.0.3
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/package.json +1 -1
- package/public/css/fonts/icomoon.eot +0 -0
- package/public/css/fonts/icomoon.svg +21 -12
- package/public/css/fonts/icomoon.ttf +0 -0
- package/public/css/fonts/icomoon.woff +0 -0
- package/public/css/fonts/style.css +32 -5
- package/public/img/header-emissions.webp +0 -0
- package/public/img/header-home.webp +0 -0
- package/public/img/header-intervenants.webp +0 -0
- package/public/img/header-playlists.webp +0 -0
- package/public/img/header-podcasts.webp +0 -0
- package/src/assets/bootstrap.scss +26 -12
- package/src/assets/form.scss +2 -2
- package/src/assets/general.scss +16 -26
- package/src/assets/live.scss +0 -18
- package/src/assets/multiselect.scss +15 -25
- package/src/assets/share.scss +47 -12
- package/src/components/display/categories/CategoryChooser.vue +1 -1
- package/src/components/display/categories/CategoryFilter.vue +109 -62
- package/src/components/display/categories/CategoryList.vue +9 -20
- package/src/components/display/emission/EmissionChooser.vue +1 -1
- package/src/components/display/emission/EmissionInlineList.vue +1 -1
- package/src/components/display/emission/EmissionItem.vue +5 -5
- package/src/components/display/emission/EmissionPlayerItem.vue +10 -7
- package/src/components/display/filter/MonetizableFilter.vue +1 -1
- package/src/components/display/filter/ProductorSearch.vue +1 -1
- package/src/components/display/filter/RubriqueChoice.vue +1 -1
- package/src/components/display/list/ListPaginate.vue +14 -25
- package/src/components/display/list/Paginate.vue +71 -104
- package/src/components/display/list/PaginateParams.vue +66 -0
- package/src/components/display/live/CountDown.vue +1 -1
- package/src/components/display/live/LiveItem.vue +0 -7
- package/src/components/display/organisation/OrganisationChooser.vue +1 -1
- package/src/components/display/participant/ParticipantItem.vue +6 -12
- package/src/components/display/participant/ParticipantList.vue +2 -24
- package/src/components/display/playlist/PlaylistItem.vue +10 -10
- package/src/components/display/podcasts/AnimatorsItem.vue +1 -2
- package/src/components/display/podcasts/ParticipantDescription.vue +0 -30
- package/src/components/display/podcasts/PodcastFilterList.vue +1 -1
- package/src/components/display/podcasts/PodcastImage.vue +19 -13
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +1 -1
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +14 -12
- package/src/components/display/podcasts/PodcastItem.vue +15 -9
- package/src/components/display/podcasts/PodcastItemInfo.vue +18 -55
- package/src/components/display/podcasts/PodcastModuleBox.vue +52 -25
- package/src/components/display/podcasts/PodcastSwiperList.vue +20 -10
- package/src/components/display/podcasts/TagList.vue +7 -2
- package/src/components/display/rubriques/RubriqueChooser.vue +2 -2
- package/src/components/display/rubriques/RubriqueList.vue +11 -19
- package/src/components/display/sharing/PlayerParameters.vue +59 -75
- package/src/components/display/sharing/ShareButtons.vue +20 -37
- package/src/components/display/sharing/ShareButtonsIntern.vue +75 -83
- package/src/components/display/sharing/ShareDistribution.vue +3 -2
- package/src/components/display/sharing/SharePlayer.vue +50 -50
- package/src/components/display/sharing/SharePlayerColors.vue +4 -4
- package/src/components/display/sharing/SharePlayerTypes.vue +25 -27
- package/src/components/display/sharing/SubscribeButtons.vue +2 -2
- package/src/components/form/ClassicCheckbox.vue +1 -1
- package/src/components/form/ClassicSearch.vue +2 -1
- package/src/components/misc/Footer.vue +19 -15
- package/src/components/misc/HomeDropdown.vue +14 -14
- package/src/components/misc/Popover.vue +2 -1
- package/src/components/misc/ProgressBar.vue +1 -1
- package/src/components/misc/TopBar.vue +54 -44
- package/src/components/misc/modal/ClassicModal.vue +5 -7
- package/src/components/misc/modal/NewsletterModal.vue +0 -1
- package/src/components/misc/player/Player.vue +5 -14
- package/src/components/misc/player/PlayerCompact.vue +2 -1
- package/src/components/pages/Emission.vue +64 -62
- package/src/components/pages/Emissions.vue +0 -9
- package/src/components/pages/Participant.vue +13 -15
- package/src/components/pages/Participants.vue +0 -7
- package/src/components/pages/Playlist.vue +43 -37
- package/src/components/pages/Playlists.vue +0 -5
- package/src/components/pages/Podcast.vue +65 -100
- package/src/components/pages/Podcasts.vue +1 -37
- package/src/locale/de.ts +6 -1
- package/src/locale/en.ts +6 -1
- package/src/locale/es.ts +6 -1
- package/src/locale/fr.ts +6 -1
- package/src/locale/it.ts +6 -1
- package/src/locale/sl.ts +6 -1
- package/src/sass/_variables.scss +8 -1
- package/src/stores/ParamSdkStore.ts +14 -22
- package/src/stores/PlayerStore.ts +11 -0
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page-box">
|
|
3
|
-
<div
|
|
4
|
-
class="d-flex"
|
|
5
|
-
:class="
|
|
6
|
-
pageParameters.isEmissionChooser ? 'justify-content-between' : 'justify-content-center'
|
|
7
|
-
"
|
|
8
|
-
>
|
|
9
|
-
<h1 class="flex-shrink-0">
|
|
10
|
-
{{ titleDisplay }}
|
|
11
|
-
</h1>
|
|
12
|
-
<EmissionChooser
|
|
13
|
-
v-if="pageParameters.isEmissionChooser"
|
|
14
|
-
:defaultanswer="$t('No emission filter')"
|
|
15
|
-
width="auto"
|
|
16
|
-
class="ms-3"
|
|
17
|
-
@selected="emissionSelected"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
20
3
|
<ProductorSearch
|
|
21
|
-
v-if="pageParameters.isProductorSearch"
|
|
22
4
|
v-model:organisation-id="organisationId"
|
|
23
5
|
v-model:search-pattern="searchPattern"
|
|
24
6
|
/>
|
|
@@ -26,7 +8,6 @@
|
|
|
26
8
|
:is-education="isEducation"
|
|
27
9
|
:is-emission="false"
|
|
28
10
|
:reset-rubriquage="resetRubriquage"
|
|
29
|
-
:is-search-bar="pageParameters.isProductorSearch"
|
|
30
11
|
:sort-criteria="sortCriteria"
|
|
31
12
|
:include-hidden="includeHidden"
|
|
32
13
|
:organisation-id="organisationId"
|
|
@@ -46,7 +27,6 @@
|
|
|
46
27
|
:organisation-id="organisationId"
|
|
47
28
|
:query="searchPattern"
|
|
48
29
|
:monetization="monetization"
|
|
49
|
-
:emission-id="emissionId"
|
|
50
30
|
:before="toDate"
|
|
51
31
|
:after="fromDate"
|
|
52
32
|
:sort-criteria="sortCriteria"
|
|
@@ -66,18 +46,15 @@ import PodcastList from '../display/podcasts/PodcastList.vue';
|
|
|
66
46
|
import { state } from '../../stores/ParamSdkStore';
|
|
67
47
|
import ProductorSearch from '../display/filter/ProductorSearch.vue';
|
|
68
48
|
import AdvancedSearch from '../display/filter/AdvancedSearch.vue';
|
|
69
|
-
import { Emission } from '@/stores/class/general/emission';
|
|
70
49
|
import { RubriquageFilter } from '@/stores/class/rubrique/rubriquageFilter';
|
|
71
50
|
import { useFilterStore } from '@/stores/FilterStore';
|
|
72
51
|
import { mapState } from 'pinia';
|
|
73
|
-
import { defineComponent
|
|
74
|
-
const EmissionChooser = defineAsyncComponent(() => import('../display/emission/EmissionChooser.vue'));
|
|
52
|
+
import { defineComponent } from 'vue';
|
|
75
53
|
export default defineComponent({
|
|
76
54
|
name:"Podcasts",
|
|
77
55
|
components: {
|
|
78
56
|
PodcastList,
|
|
79
57
|
ProductorSearch,
|
|
80
|
-
EmissionChooser,
|
|
81
58
|
AdvancedSearch,
|
|
82
59
|
},
|
|
83
60
|
mixins:[orgaComputed],
|
|
@@ -92,7 +69,6 @@ export default defineComponent({
|
|
|
92
69
|
searchPattern: '' as string,
|
|
93
70
|
organisationId: undefined as string|undefined,
|
|
94
71
|
monetization: 'UNDEFINED' as string, // UNDEFINED, YES, NO
|
|
95
|
-
emissionId: undefined as number|undefined,
|
|
96
72
|
fromDate: undefined as string|undefined,
|
|
97
73
|
toDate: undefined as string|undefined,
|
|
98
74
|
resetRubriquage: false as boolean,
|
|
@@ -108,9 +84,6 @@ export default defineComponent({
|
|
|
108
84
|
|
|
109
85
|
computed: {
|
|
110
86
|
...mapState(useFilterStore, ['filterRubrique', 'filterIab']),
|
|
111
|
-
titleDisplay(): string{
|
|
112
|
-
return state.podcastsPage.titlePage ?? this.$t('All podcasts');
|
|
113
|
-
},
|
|
114
87
|
organisationRight(): boolean {
|
|
115
88
|
return (true===this.authenticated && this.myOrganisationId === this.organisationId) ||
|
|
116
89
|
true===state.generalParameters.isAdmin;
|
|
@@ -118,12 +91,6 @@ export default defineComponent({
|
|
|
118
91
|
organisation(): string|undefined {
|
|
119
92
|
return this.organisationId ?this.organisationId: this.filterOrgaId;
|
|
120
93
|
},
|
|
121
|
-
pageParameters(){
|
|
122
|
-
return {
|
|
123
|
-
isProductorSearch: state.podcastsPage.ProductorSearch,
|
|
124
|
-
isEmissionChooser: state.podcastsPage.emissionChooser
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
94
|
},
|
|
128
95
|
watch:{
|
|
129
96
|
organisationId(): void {
|
|
@@ -171,9 +138,6 @@ export default defineComponent({
|
|
|
171
138
|
this.rubriqueId = rubriqueId;
|
|
172
139
|
this.noRubriquageId = noRubriquageId;
|
|
173
140
|
},
|
|
174
|
-
emissionSelected(emission: Emission): void {
|
|
175
|
-
this.emissionId = emission && emission.emissionId ? emission.emissionId : undefined;
|
|
176
|
-
},
|
|
177
141
|
},
|
|
178
142
|
})
|
|
179
143
|
</script>
|
package/src/locale/de.ts
CHANGED
|
@@ -287,7 +287,7 @@ export default{
|
|
|
287
287
|
'Refresh': "Aktualisieren",
|
|
288
288
|
'See associated article':"Artikel lesen",
|
|
289
289
|
"Display associated article":"Zugehörigen Artikel anzeigen",
|
|
290
|
-
"Copy this page URL":"
|
|
290
|
+
"Copy this page URL":"Link kopieren",
|
|
291
291
|
"Custom version":"Benutzerdefiniert",
|
|
292
292
|
"All":"Alle",
|
|
293
293
|
'By category': "Nach IAB-Kategorie",
|
|
@@ -311,4 +311,9 @@ export default{
|
|
|
311
311
|
"Audio credits":"Audio-Credits",
|
|
312
312
|
"View transcript":"Transkript ansehen",
|
|
313
313
|
"Suggested listening":"Anhören empfohlen",
|
|
314
|
+
"More":"Mehr",
|
|
315
|
+
"Social networks":"Soziale Netzwerke",
|
|
316
|
+
"Newsletter":"Newsletter",
|
|
317
|
+
"QR Code":"QR-Code",
|
|
318
|
+
"Rss feed": "RSS-Feed",
|
|
314
319
|
}
|
package/src/locale/en.ts
CHANGED
|
@@ -287,7 +287,7 @@ export default{
|
|
|
287
287
|
'Refresh': 'Refresh',
|
|
288
288
|
'See associated article':"Read the article",
|
|
289
289
|
"Display associated article":"Display associated article",
|
|
290
|
-
"Copy this page URL":"Copy
|
|
290
|
+
"Copy this page URL":"Copy link",
|
|
291
291
|
"Custom version":"Custom version",
|
|
292
292
|
"All":"All",
|
|
293
293
|
'By category': 'By IAB category',
|
|
@@ -318,4 +318,9 @@ export default{
|
|
|
318
318
|
"Audio credits":"Audio credits",
|
|
319
319
|
"View transcript":"View transcript",
|
|
320
320
|
"Suggested listening":"Suggested listening",
|
|
321
|
+
"More":"More",
|
|
322
|
+
"Social networks":"Social networks",
|
|
323
|
+
"Newsletter":"Newsletter",
|
|
324
|
+
"QR Code":"QR Code",
|
|
325
|
+
"Rss feed": "Rss feed",
|
|
321
326
|
};
|
package/src/locale/es.ts
CHANGED
|
@@ -287,7 +287,7 @@ export default{
|
|
|
287
287
|
'Refresh': 'Volver a cargar',
|
|
288
288
|
'See associated article':"Leer el artículo",
|
|
289
289
|
"Display associated article":"Mostrar el artículo asociado",
|
|
290
|
-
"Copy this page URL":"Copiar
|
|
290
|
+
"Copy this page URL":"Copiar link",
|
|
291
291
|
"Custom version":"Versión personalizada",
|
|
292
292
|
"All":"Todos",
|
|
293
293
|
'By category': 'Por categoría IAB',
|
|
@@ -311,4 +311,9 @@ export default{
|
|
|
311
311
|
"Audio credits":"Créditos de audio",
|
|
312
312
|
"View transcript":"Ver transcripción",
|
|
313
313
|
"Suggested listening":"Escucha sugerida",
|
|
314
|
+
"More":"Más",
|
|
315
|
+
"Social networks":"Redes sociales",
|
|
316
|
+
"Newsletter":"Newsletter",
|
|
317
|
+
"QR Code":"Código QR",
|
|
318
|
+
"Rss feed": "RSS Feed",
|
|
314
319
|
}
|
package/src/locale/fr.ts
CHANGED
|
@@ -287,7 +287,7 @@ export default{
|
|
|
287
287
|
'Refresh': 'Rafraichir',
|
|
288
288
|
'See associated article':"Lire l'article",
|
|
289
289
|
"Display associated article":"Afficher l'article associé",
|
|
290
|
-
"Copy this page URL":"Copier
|
|
290
|
+
"Copy this page URL":"Copier le lien",
|
|
291
291
|
"Custom version":"Version customisée",
|
|
292
292
|
"All":"Tous",
|
|
293
293
|
'By category': 'Selon la catégorie IAB',
|
|
@@ -318,4 +318,9 @@ export default{
|
|
|
318
318
|
"Audio credits":"Crédits audio",
|
|
319
319
|
"View transcript":"Afficher la transcription",
|
|
320
320
|
"Suggested listening":"Suggestion d'écoute",
|
|
321
|
+
"More":"Plus",
|
|
322
|
+
"Social networks":"Réseaux sociaux",
|
|
323
|
+
"Newsletter":"Newsletter",
|
|
324
|
+
"QR Code":"QR Code",
|
|
325
|
+
"Rss feed": "Flux RSS",
|
|
321
326
|
};
|
package/src/locale/it.ts
CHANGED
|
@@ -282,7 +282,7 @@ export default{
|
|
|
282
282
|
'Refresh': 'Aggiorna',
|
|
283
283
|
'See associated article':"Leggi l'articolo",
|
|
284
284
|
"Display associated article":"Mostra articolo associato",
|
|
285
|
-
"Copy this page URL":"Copia
|
|
285
|
+
"Copy this page URL":"Copia link",
|
|
286
286
|
"Custom version":"Versione customizzata",
|
|
287
287
|
"All":"Tutto",
|
|
288
288
|
'By category': 'Per categoria',
|
|
@@ -308,4 +308,9 @@ export default{
|
|
|
308
308
|
"Audio credits":"Crediti audio",
|
|
309
309
|
"View transcript":"Visualizza trascrizione",
|
|
310
310
|
"Suggested listening":"Ascolto suggerito",
|
|
311
|
+
"More":"Di più",
|
|
312
|
+
"Social networks":"Social networks",
|
|
313
|
+
"Newsletter":"Newsletter",
|
|
314
|
+
"QR Code":"QR Code",
|
|
315
|
+
"Rss feed": "RSS Feed",
|
|
311
316
|
};
|
package/src/locale/sl.ts
CHANGED
|
@@ -287,7 +287,7 @@ export default{
|
|
|
287
287
|
'Refresh': 'Osveži',
|
|
288
288
|
'See associated article':"Read the article",
|
|
289
289
|
"Display associated article": "Prikaži povezan vir",
|
|
290
|
-
"Copy this page URL": "Kopiraj
|
|
290
|
+
"Copy this page URL": "Kopiraj povezavo",
|
|
291
291
|
"Custom version": "Prilagojena različica",
|
|
292
292
|
"All":"Vse",
|
|
293
293
|
'By category': 'Po kategoriji IAB',
|
|
@@ -311,4 +311,9 @@ export default{
|
|
|
311
311
|
"Audio credits":"Avdio krediti",
|
|
312
312
|
"View transcript":"Ogled prepisa",
|
|
313
313
|
"Suggested listening":"Predlagano poslušanje",
|
|
314
|
+
"More":"Več",
|
|
315
|
+
"Social networks":"Socialna omrežja",
|
|
316
|
+
"Newsletter":"Newsletter",
|
|
317
|
+
"QR Code":"koda QR",
|
|
318
|
+
"Rss feed": "Rss vir",
|
|
314
319
|
}
|
package/src/sass/_variables.scss
CHANGED
|
@@ -3,16 +3,23 @@ $font-family-sans-serif: sans-serif;
|
|
|
3
3
|
$font-size-base: 0.9rem;
|
|
4
4
|
$line-height-base: 1.6;
|
|
5
5
|
|
|
6
|
+
$octopus-item-size: 16.5rem !default;
|
|
7
|
+
$octopus-mobile-item-size: 12.5rem !default;
|
|
8
|
+
$octopus-borderradius: 0.2rem !default;
|
|
9
|
+
|
|
6
10
|
// bootstrap color
|
|
7
11
|
$primary: #1a8658 !default;
|
|
8
12
|
$secondary: #636C73 !default;
|
|
9
13
|
$danger: #E22C27 !default;
|
|
10
14
|
|
|
15
|
+
$blue-octopus: #08667E !default;
|
|
16
|
+
|
|
11
17
|
//SDK Octopus style
|
|
12
|
-
$octopus-background:
|
|
18
|
+
$octopus-background: white !default;
|
|
13
19
|
$octopus-primary-color: #1a8658 !default;
|
|
14
20
|
$octopus-secondary-color : #ddd !default;
|
|
15
21
|
|
|
16
22
|
$primaryColorTransparent : #1a865893 !default;
|
|
23
|
+
$primaryColorLessTransparent : #1a8657d0 !default;
|
|
17
24
|
$primaryColorMoreTransparent : #1a865854 !default;
|
|
18
25
|
$primaryColorReallyTransparent : #cef7e250 !default;
|
|
@@ -11,14 +11,14 @@ const state:ParamStore = {
|
|
|
11
11
|
isOrganisation: false,
|
|
12
12
|
isPlaylist: false,
|
|
13
13
|
isProduction: false,
|
|
14
|
-
isContribution:
|
|
15
|
-
ApiUri: 'https://api.
|
|
14
|
+
isContribution: true,
|
|
15
|
+
ApiUri: 'https://api.staging.saooti.org/',
|
|
16
16
|
podcastmaker: false,
|
|
17
17
|
buttonPlus: true,
|
|
18
18
|
allCategories: [],
|
|
19
19
|
isLiveTab: false,
|
|
20
20
|
isCaptchaTest: true,
|
|
21
|
-
podcastItem:
|
|
21
|
+
podcastItem:16.5,
|
|
22
22
|
isInlineAnimation:true,
|
|
23
23
|
},
|
|
24
24
|
podcastPage: {
|
|
@@ -26,23 +26,19 @@ const state:ParamStore = {
|
|
|
26
26
|
SharePlayer: true,
|
|
27
27
|
ShareButtons: true,
|
|
28
28
|
ShareDistribution: true,
|
|
29
|
-
MiniplayerUri: 'https://playerbeta.
|
|
30
|
-
|
|
31
|
-
hlsUri: 'https://hls.dev2.saooti.org/',
|
|
29
|
+
MiniplayerUri: 'https://playerbeta.staging.saooti.org/',
|
|
30
|
+
hlsUri: 'https://hls.staging.saooti.org/',
|
|
32
31
|
mainRubrique: 0,
|
|
33
32
|
resourceUrl: undefined,
|
|
34
33
|
podcastItemShowEmission: false,
|
|
35
34
|
clickPlayGoPage:false,
|
|
36
|
-
listTypeClassic:
|
|
35
|
+
listTypeClassic: false,
|
|
37
36
|
podcastItemDescription:true
|
|
38
37
|
},
|
|
39
38
|
podcastsPage: {
|
|
40
|
-
ProductorSearch: true,
|
|
41
39
|
MonetizableFilter: true,
|
|
42
|
-
podcastShadow: true,
|
|
43
40
|
podcastBorderBottom: false,
|
|
44
|
-
titlePage: undefined
|
|
45
|
-
emissionChooser: false,
|
|
41
|
+
titlePage: undefined
|
|
46
42
|
},
|
|
47
43
|
emissionsPage: {
|
|
48
44
|
smallItems: false,
|
|
@@ -83,13 +79,13 @@ const state:ParamStore = {
|
|
|
83
79
|
userName: '',
|
|
84
80
|
},
|
|
85
81
|
octopusApi: {
|
|
86
|
-
url: 'https://api.
|
|
87
|
-
commentsUrl: 'https://comments.
|
|
88
|
-
imageUrl:'https://imageproxy.
|
|
89
|
-
studioUrl: 'https://studio.
|
|
90
|
-
playerUrl: 'https://playerbeta.
|
|
91
|
-
speechToTextUrl:'https://speech2text.
|
|
92
|
-
recoUrl: 'https://reco.
|
|
82
|
+
url: 'https://api.staging.saooti.org/',
|
|
83
|
+
commentsUrl: 'https://comments.staging.saooti.org/',
|
|
84
|
+
imageUrl:'https://imageproxy.staging.saooti.org/',
|
|
85
|
+
studioUrl: 'https://studio.staging.saooti.org/',
|
|
86
|
+
playerUrl: 'https://playerbeta.staging.saooti.org/',
|
|
87
|
+
speechToTextUrl:'https://speech2text.staging.saooti.org/',
|
|
88
|
+
recoUrl: 'https://reco.staging.saooti.org/',
|
|
93
89
|
organisationId: undefined,
|
|
94
90
|
rubriqueIdFilter: undefined,
|
|
95
91
|
},
|
|
@@ -120,7 +116,6 @@ export interface PodcastPage{
|
|
|
120
116
|
ShareButtons?: boolean,
|
|
121
117
|
ShareDistribution?: boolean,
|
|
122
118
|
MiniplayerUri?: string,
|
|
123
|
-
downloadButton?: boolean,
|
|
124
119
|
hlsUri?: string,
|
|
125
120
|
mainRubrique?: number,
|
|
126
121
|
resourceUrl?: string,
|
|
@@ -130,12 +125,9 @@ export interface PodcastPage{
|
|
|
130
125
|
podcastItemDescription?:boolean,
|
|
131
126
|
}
|
|
132
127
|
export interface PodcastsPage{
|
|
133
|
-
ProductorSearch?: boolean,
|
|
134
128
|
MonetizableFilter?: boolean,
|
|
135
|
-
podcastShadow?: boolean,
|
|
136
129
|
podcastBorderBottom?: boolean,
|
|
137
130
|
titlePage?: string,
|
|
138
|
-
emissionChooser?: boolean,
|
|
139
131
|
}
|
|
140
132
|
export interface EmissionsPage{
|
|
141
133
|
smallItems?: boolean,
|
|
@@ -20,6 +20,7 @@ interface PlayerState{
|
|
|
20
20
|
playerStop?: boolean;
|
|
21
21
|
playerSeekTime?: number;
|
|
22
22
|
playerTranscript?:Transcript;
|
|
23
|
+
playerLargeVersion: boolean;
|
|
23
24
|
}
|
|
24
25
|
export const usePlayerStore = defineStore('PlayerStore', {
|
|
25
26
|
state: (): PlayerState => ({
|
|
@@ -32,8 +33,15 @@ export const usePlayerStore = defineStore('PlayerStore', {
|
|
|
32
33
|
playerLive: undefined,
|
|
33
34
|
playerRadio: undefined,
|
|
34
35
|
playerSeekTime:0,
|
|
36
|
+
playerLargeVersion: false
|
|
35
37
|
}),
|
|
36
38
|
getters: {
|
|
39
|
+
playerHeight() {
|
|
40
|
+
if ('STOPPED' === this.playerStatus) return 0;
|
|
41
|
+
if (this.playerLargeVersion) return '27rem';
|
|
42
|
+
if (window.innerWidth > 450) return '5rem';
|
|
43
|
+
return '3.5rem';
|
|
44
|
+
},
|
|
37
45
|
playedTime(): string{
|
|
38
46
|
if (this.playerElapsed && this.playerElapsed > 0 && this.playerTotal && this.playerTotal > 0) {
|
|
39
47
|
return DurationHelper.formatDuration(
|
|
@@ -130,5 +138,8 @@ export const usePlayerStore = defineStore('PlayerStore', {
|
|
|
130
138
|
playerUpdateTranscript(transcript?:Transcript) {
|
|
131
139
|
this.playerTranscript = transcript;
|
|
132
140
|
},
|
|
141
|
+
playerUpdateLargeVersion(largeVersion: boolean){
|
|
142
|
+
this.playerLargeVersion = largeVersion;
|
|
143
|
+
}
|
|
133
144
|
}
|
|
134
145
|
})
|