@saooti/octopus-sdk 1.0.0 → 1.1.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 +261 -0
- package/index.d.ts +4 -0
- package/index.ts +55 -3
- package/package.json +53 -45
- package/public/config.ts +4 -0
- package/public/css/fonts/icomoon.eot +0 -0
- package/public/css/fonts/icomoon.svg +129 -0
- package/public/css/fonts/icomoon.ttf +0 -0
- package/public/css/fonts/icomoon.woff +0 -0
- package/public/css/fonts/style.css +186 -1224
- package/public/img/403.jpeg +0 -0
- package/public/img/404.svg +242 -0
- package/public/img/ACPM.png +0 -0
- package/public/img/ouest_france_logo.svg +12 -0
- package/src/App.vue +102 -31
- package/src/api/classicCrud.ts +34 -0
- package/src/api/initialize.ts +5 -2
- package/src/assets/bootstrap-diff.scss +197 -0
- package/src/assets/form.scss +77 -77
- package/src/assets/general.scss +284 -272
- package/src/assets/live.scss +39 -0
- package/src/assets/modal.scss +43 -50
- package/src/assets/multiselect.scss +522 -573
- package/src/assets/octopus-library.scss +18 -4
- package/src/assets/share.scss +243 -0
- package/src/assets/transition.scss +98 -2
- package/src/components/display/aggregator/RssSection.vue +3 -5
- package/src/components/display/categories/CategoryChooser.vue +151 -114
- package/src/components/display/categories/CategoryFilter.vue +162 -0
- package/src/components/display/categories/CategoryList.vue +149 -117
- package/src/components/display/comments/AddCommentModal.vue +103 -108
- package/src/components/display/comments/CommentBasicView.vue +95 -0
- package/src/components/display/comments/CommentInput.vue +195 -183
- package/src/components/display/comments/CommentItem.vue +170 -208
- package/src/components/display/comments/CommentList.vue +134 -228
- package/src/components/display/comments/CommentParentInfo.vue +28 -62
- package/src/components/display/comments/CommentPlayer.vue +53 -56
- package/src/components/display/comments/CommentSection.vue +52 -83
- package/src/components/display/edit/EditBox.vue +10 -4
- package/src/components/display/edit/EditCommentBox.vue +124 -38
- package/src/components/display/emission/EmissionChooser.vue +88 -108
- package/src/components/display/emission/EmissionInlineList.vue +156 -157
- package/src/components/display/emission/EmissionItem.vue +72 -226
- package/src/components/display/emission/EmissionList.vue +159 -201
- package/src/components/display/emission/EmissionPlayerItem.vue +203 -174
- package/src/components/display/filter/AdvancedSearch.vue +224 -432
- package/src/components/display/filter/CategoryFilter.vue +105 -0
- package/src/components/display/filter/MonetizableFilter.vue +18 -15
- package/src/components/display/filter/ProductorSearch.vue +153 -176
- package/src/components/display/filter/RubriqueChoice.vue +97 -0
- package/src/components/display/filter/RubriqueFilter.vue +232 -0
- package/src/components/display/list/ListPaginate.vue +145 -0
- package/src/components/display/list/Paginate.vue +218 -0
- package/src/components/display/live/CountDown.vue +31 -30
- package/src/components/display/live/LiveHorizontalList.vue +84 -62
- package/src/components/display/live/LiveItem.vue +161 -186
- package/src/components/display/live/LiveList.vue +184 -295
- package/src/components/display/organisation/OrganisationChooser.vue +124 -162
- package/src/components/display/organisation/OrganisationChooserLight.vue +53 -56
- package/src/components/display/participant/ParticipantItem.vue +91 -128
- package/src/components/display/participant/ParticipantList.vue +134 -121
- package/src/components/display/playlist/PlaylistItem.vue +60 -97
- package/src/components/display/playlist/PlaylistList.vue +99 -92
- package/src/components/display/playlist/PodcastList.vue +117 -132
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +191 -0
- package/src/components/display/podcasts/AnimatorsItem.vue +29 -37
- package/src/components/display/podcasts/ParticipantDescription.vue +82 -0
- package/src/components/display/podcasts/PodcastFilterList.vue +49 -102
- package/src/components/display/podcasts/PodcastImage.vue +208 -225
- package/src/components/display/podcasts/PodcastInlineList.vue +62 -355
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +240 -0
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +167 -0
- package/src/components/display/podcasts/PodcastItem.vue +94 -218
- package/src/components/display/podcasts/PodcastItemInfo.vue +166 -0
- package/src/components/display/podcasts/PodcastList.vue +127 -178
- package/src/components/display/podcasts/PodcastModuleBox.vue +234 -0
- package/src/components/display/podcasts/PodcastPlayBar.vue +101 -0
- package/src/components/display/podcasts/PodcastSwiperList.vue +204 -0
- package/src/components/display/podcasts/TagList.vue +60 -38
- package/src/components/display/rubriques/RubriqueChooser.vue +144 -131
- package/src/components/display/rubriques/RubriqueList.vue +216 -0
- package/src/components/display/sharing/PlayerParameters.vue +111 -153
- package/src/components/display/sharing/QrCode.vue +96 -0
- package/src/components/display/sharing/ShareButtons.vue +63 -233
- package/src/components/display/sharing/ShareButtonsIntern.vue +225 -0
- package/src/components/display/sharing/ShareDistribution.vue +102 -166
- package/src/components/display/sharing/SharePlayer.vue +189 -353
- package/src/components/display/sharing/SharePlayerColors.vue +78 -0
- package/src/components/display/sharing/SharePlayerTypes.vue +112 -0
- package/src/components/display/sharing/SplitButton.vue +42 -0
- package/src/components/display/sharing/SubscribeButtons.vue +65 -118
- package/src/components/display/studio/RecordingItemButton.vue +3 -5
- package/src/components/form/ClassicCheckbox.vue +66 -0
- package/src/components/form/ClassicLoading.vue +28 -0
- package/src/components/form/ClassicRadio.vue +66 -0
- package/src/components/form/ClassicSearch.vue +86 -0
- package/src/components/form/ClassicSelect.vue +65 -0
- package/src/components/misc/ErrorMessage.vue +27 -18
- package/src/components/misc/Footer.vue +151 -108
- package/src/components/misc/HomeDropdown.vue +95 -154
- package/src/components/misc/LeftMenu.vue +137 -206
- package/src/components/misc/Popover.vue +118 -0
- package/src/components/misc/Snackbar.vue +73 -37
- package/src/components/misc/TopBar.vue +211 -314
- package/src/components/misc/modal/ClipboardModal.vue +34 -47
- package/src/components/misc/modal/MessageModal.vue +74 -53
- package/src/components/misc/modal/NewsletterModal.vue +272 -224
- package/src/components/misc/modal/QrCodeModal.vue +58 -0
- package/src/components/misc/modal/ShareModalPlayer.vue +140 -74
- package/src/components/misc/player/Player.vue +146 -0
- package/src/components/misc/player/PlayerCompact.vue +154 -0
- package/src/components/misc/player/PlayerLarge.vue +166 -0
- package/src/components/misc/player/PlayerProgressBar.vue +112 -0
- package/src/components/misc/player/PlayerTimeline.vue +61 -0
- package/src/components/mixins/functions.ts +21 -18
- package/src/components/mixins/handle403.ts +17 -0
- package/src/components/mixins/init.ts +24 -0
- package/src/components/mixins/orgaComputed.ts +15 -0
- package/src/components/mixins/organisationFilter.ts +41 -0
- package/src/components/mixins/player/playerComment.ts +98 -0
- package/src/components/mixins/player/playerDisplay.ts +113 -0
- package/src/components/mixins/player/playerLive.ts +111 -0
- package/src/components/mixins/player/playerLogic.ts +225 -0
- package/src/components/mixins/tagOfMixins.ts +19 -0
- package/src/components/pages/Category.vue +24 -28
- package/src/components/pages/Emission.vue +144 -177
- package/src/components/pages/Emissions.vue +94 -110
- package/src/components/pages/Error403Page.vue +60 -0
- package/src/components/pages/Home.vue +74 -21
- package/src/components/pages/Lives.vue +53 -58
- package/src/components/pages/PageNotFound.vue +55 -0
- package/src/components/pages/Participant.vue +113 -129
- package/src/components/pages/Participants.vue +25 -41
- package/src/components/pages/Playlist.vue +86 -86
- package/src/components/pages/Playlists.vue +33 -52
- package/src/components/pages/Podcast.vue +206 -478
- package/src/components/pages/Podcasts.vue +112 -156
- package/src/components/pages/Rubrique.vue +21 -27
- package/src/components/pages/Search.vue +37 -94
- package/src/helper/dom.ts +2 -2
- package/src/helper/duration.ts +18 -8
- package/src/helper/useEventListener.ts +18 -0
- package/src/i18n.ts +36 -0
- package/src/locale/de.ts +309 -0
- package/src/locale/educationen.ts +14 -0
- package/src/locale/en.ts +316 -1
- package/src/locale/es.ts +309 -0
- package/src/locale/fr.ts +47 -15
- package/src/locale/it.ts +307 -0
- package/src/locale/messages.ts +11 -2
- package/src/locale/sl.ts +309 -0
- package/src/main.ts +64 -55
- package/src/router/router.ts +192 -159
- package/src/sass/_variables.scss +10 -8
- package/src/shims-tsx.d.ts +15 -0
- package/src/shims-vue-recaptcha-v3.d.ts +9 -0
- package/src/shims-vue.d.ts +5 -6
- package/src/store/AppStore.ts +41 -173
- package/src/store/class/adserver/adserverConfig.ts +9 -0
- package/src/store/class/adserver/adserverOtherEmission.ts +13 -0
- package/src/store/class/adserver/adserverTiming.ts +10 -0
- package/src/store/class/cartouchier/cartouche.ts +15 -0
- package/src/store/class/cartouchier/cartouchier.ts +9 -0
- package/src/store/class/conference/conference.ts +35 -0
- package/src/store/class/conference/conferenceMessage.ts +10 -0
- package/src/store/class/conference/conferenceParticipant.ts +18 -0
- package/src/store/class/conference/pad.ts +15 -0
- package/src/store/class/conference/studioCall.ts +7 -0
- package/src/store/class/contract/contract.ts +7 -0
- package/src/store/class/contract/contractOrganisation.ts +7 -0
- package/src/store/class/ftp/ftpEmission.ts +41 -0
- package/src/store/class/ftp/ftpParam.ts +12 -0
- package/src/store/class/ftp/testFtpEmission.ts +5 -0
- package/src/store/class/general/audioView.ts +21 -0
- package/src/store/class/general/category.ts +10 -0
- package/src/store/class/general/comment.ts +16 -0
- package/src/store/class/general/customPlayer.ts +9 -0
- package/src/store/class/general/emission.ts +23 -0
- package/src/store/class/general/fetchParam.ts +3 -0
- package/src/store/class/general/initState.ts +25 -0
- package/src/store/class/general/interfacePageable.ts +16 -0
- package/src/store/class/general/ituneCategory.ts +5 -0
- package/src/store/class/general/media.ts +14 -0
- package/src/store/class/general/organisation.ts +20 -0
- package/src/store/class/general/pageable.ts +13 -0
- package/src/store/class/general/participant.ts +12 -0
- package/src/store/class/general/player.ts +14 -0
- package/src/store/class/general/playlist.ts +13 -0
- package/src/store/class/general/podcast.ts +43 -0
- package/src/store/class/general/sortPageable.ts +5 -0
- package/src/store/class/general/soundcastCategory.ts +8 -0
- package/src/store/class/ouestFrance/ofTag.ts +36 -0
- package/src/store/class/ouestFrance/ofTagInfo.ts +9 -0
- package/src/store/class/ouestFrance/ofTagPage.ts +7 -0
- package/src/store/class/ouestFrance/ofTagSeo.ts +7 -0
- package/src/store/class/ouestFrance/ofTagVente.ts +6 -0
- package/src/store/class/ouestFrance/ofTagWithParents.ts +26 -0
- package/src/store/class/rss/aggregator.ts +28 -0
- package/src/store/class/rss/rssEmission.ts +14 -0
- package/src/store/class/rss/rssInfo.ts +8 -0
- package/src/store/class/rubrique/rubriquage.ts +10 -0
- package/src/store/class/rubrique/rubriquageFilter.ts +6 -0
- package/src/store/class/rubrique/rubrique.ts +9 -0
- package/src/store/class/stat/statArrayIncome.ts +6 -0
- package/src/store/class/stat/statArrayObject.ts +34 -0
- package/src/store/class/stat/statGraph.ts +7 -0
- package/src/store/class/user/person.ts +15 -0
- package/src/store/class/user/profile.ts +12 -0
- package/src/store/class/user/userKeycloak.ts +24 -0
- package/src/store/paramStore.ts +222 -217
- package/src/store/typeAppStore.ts +186 -235
- package/src/vuex-shim.d.ts +8 -0
- package/tsconfig.json +4 -0
- package/vue.config.js +16 -0
- package/public/css/fonts/saooti-ui.eot +0 -0
- package/public/css/fonts/saooti-ui.svg +0 -829
- package/public/css/fonts/saooti-ui.ttf +0 -0
- package/public/css/fonts/saooti-ui.woff +0 -0
- package/public/css/fonts/stitcher-logo.svg +0 -83
- package/public/img/ACPM.PNG +0 -0
- package/src/api/comments.ts +0 -7
- package/src/api/emissions.ts +0 -7
- package/src/api/podcasts.ts +0 -7
- package/src/api/profile.ts +0 -8
- package/src/api/studio.ts +0 -1
- package/src/assets/bootstrap_scss/_alert.scss +0 -51
- package/src/assets/bootstrap_scss/_badge.scss +0 -54
- package/src/assets/bootstrap_scss/_breadcrumb.scss +0 -42
- package/src/assets/bootstrap_scss/_button-group.scss +0 -164
- package/src/assets/bootstrap_scss/_buttons.scss +0 -291
- package/src/assets/bootstrap_scss/_card.scss +0 -278
- package/src/assets/bootstrap_scss/_carousel.scss +0 -197
- package/src/assets/bootstrap_scss/_close.scss +0 -41
- package/src/assets/bootstrap_scss/_code.scss +0 -48
- package/src/assets/bootstrap_scss/_custom-forms.scss +0 -522
- package/src/assets/bootstrap_scss/_dropdown.scss +0 -201
- package/src/assets/bootstrap_scss/_forms.scss +0 -352
- package/src/assets/bootstrap_scss/_functions.scss +0 -134
- package/src/assets/bootstrap_scss/_grid.scss +0 -69
- package/src/assets/bootstrap_scss/_images.scss +0 -42
- package/src/assets/bootstrap_scss/_input-group.scss +0 -191
- package/src/assets/bootstrap_scss/_jumbotron.scss +0 -17
- package/src/assets/bootstrap_scss/_list-group.scss +0 -158
- package/src/assets/bootstrap_scss/_media.scss +0 -8
- package/src/assets/bootstrap_scss/_mixins.scss +0 -47
- package/src/assets/bootstrap_scss/_modal.scss +0 -243
- package/src/assets/bootstrap_scss/_nav.scss +0 -120
- package/src/assets/bootstrap_scss/_navbar.scss +0 -324
- package/src/assets/bootstrap_scss/_pagination.scss +0 -74
- package/src/assets/bootstrap_scss/_popover.scss +0 -170
- package/src/assets/bootstrap_scss/_print.scss +0 -141
- package/src/assets/bootstrap_scss/_progress.scss +0 -46
- package/src/assets/bootstrap_scss/_reboot.scss +0 -482
- package/src/assets/bootstrap_scss/_root.scss +0 -20
- package/src/assets/bootstrap_scss/_spinners.scss +0 -55
- package/src/assets/bootstrap_scss/_tables.scss +0 -185
- package/src/assets/bootstrap_scss/_toasts.scss +0 -44
- package/src/assets/bootstrap_scss/_tooltip.scss +0 -115
- package/src/assets/bootstrap_scss/_transitions.scss +0 -20
- package/src/assets/bootstrap_scss/_type.scss +0 -125
- package/src/assets/bootstrap_scss/_utilities.scss +0 -17
- package/src/assets/bootstrap_scss/_variables.scss +0 -1145
- package/src/assets/bootstrap_scss/bootstrap-grid.scss +0 -29
- package/src/assets/bootstrap_scss/bootstrap-reboot.scss +0 -12
- package/src/assets/bootstrap_scss/bootstrap.scss +0 -44
- package/src/assets/bootstrap_scss/mixins/_alert.scss +0 -13
- package/src/assets/bootstrap_scss/mixins/_background-variant.scss +0 -22
- package/src/assets/bootstrap_scss/mixins/_badge.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_border-radius.scss +0 -63
- package/src/assets/bootstrap_scss/mixins/_box-shadow.scss +0 -20
- package/src/assets/bootstrap_scss/mixins/_breakpoints.scss +0 -123
- package/src/assets/bootstrap_scss/mixins/_buttons.scss +0 -110
- package/src/assets/bootstrap_scss/mixins/_caret.scss +0 -62
- package/src/assets/bootstrap_scss/mixins/_clearfix.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_deprecate.scss +0 -10
- package/src/assets/bootstrap_scss/mixins/_float.scss +0 -14
- package/src/assets/bootstrap_scss/mixins/_forms.scss +0 -177
- package/src/assets/bootstrap_scss/mixins/_gradients.scss +0 -45
- package/src/assets/bootstrap_scss/mixins/_grid-framework.scss +0 -71
- package/src/assets/bootstrap_scss/mixins/_grid.scss +0 -69
- package/src/assets/bootstrap_scss/mixins/_hover.scss +0 -37
- package/src/assets/bootstrap_scss/mixins/_image.scss +0 -36
- package/src/assets/bootstrap_scss/mixins/_list-group.scss +0 -21
- package/src/assets/bootstrap_scss/mixins/_lists.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_nav-divider.scss +0 -11
- package/src/assets/bootstrap_scss/mixins/_pagination.scss +0 -22
- package/src/assets/bootstrap_scss/mixins/_reset-text.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_resize.scss +0 -6
- package/src/assets/bootstrap_scss/mixins/_screen-reader.scss +0 -34
- package/src/assets/bootstrap_scss/mixins/_size.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_table-row.scss +0 -39
- package/src/assets/bootstrap_scss/mixins/_text-emphasis.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_text-hide.scss +0 -11
- package/src/assets/bootstrap_scss/mixins/_text-truncate.scss +0 -8
- package/src/assets/bootstrap_scss/mixins/_transition.scss +0 -16
- package/src/assets/bootstrap_scss/mixins/_visibility.scss +0 -8
- package/src/assets/bootstrap_scss/utilities/_align.scss +0 -8
- package/src/assets/bootstrap_scss/utilities/_background.scss +0 -19
- package/src/assets/bootstrap_scss/utilities/_borders.scss +0 -75
- package/src/assets/bootstrap_scss/utilities/_clearfix.scss +0 -3
- package/src/assets/bootstrap_scss/utilities/_display.scss +0 -26
- package/src/assets/bootstrap_scss/utilities/_embed.scss +0 -39
- package/src/assets/bootstrap_scss/utilities/_flex.scss +0 -51
- package/src/assets/bootstrap_scss/utilities/_float.scss +0 -11
- package/src/assets/bootstrap_scss/utilities/_overflow.scss +0 -5
- package/src/assets/bootstrap_scss/utilities/_position.scss +0 -32
- package/src/assets/bootstrap_scss/utilities/_screenreaders.scss +0 -11
- package/src/assets/bootstrap_scss/utilities/_shadows.scss +0 -6
- package/src/assets/bootstrap_scss/utilities/_sizing.scss +0 -20
- package/src/assets/bootstrap_scss/utilities/_spacing.scss +0 -73
- package/src/assets/bootstrap_scss/utilities/_stretched-link.scss +0 -19
- package/src/assets/bootstrap_scss/utilities/_text.scss +0 -72
- package/src/assets/bootstrap_scss/utilities/_visibility.scss +0 -13
- package/src/assets/bootstrap_scss/vendor/_rfs.scss +0 -204
- package/src/components/misc/Player.vue +0 -792
- package/src/shims-vuex.d.ts +0 -7
- package/src/views/Home.vue +0 -18
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="isProgressBar"
|
|
4
|
+
class="d-flex align-items-center podcast-play-bar"
|
|
5
|
+
>
|
|
6
|
+
<div class="me-2">
|
|
7
|
+
{{ playedTime }}
|
|
8
|
+
</div>
|
|
9
|
+
<div class="position-relative flex-grow-1">
|
|
10
|
+
<div
|
|
11
|
+
class="progress flex-grow-1 c-hand"
|
|
12
|
+
@mouseup="seekTo"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
class="progress-bar primary-bg"
|
|
16
|
+
role="progressbar"
|
|
17
|
+
aria-valuenow="0"
|
|
18
|
+
aria-valuemin="0"
|
|
19
|
+
aria-valuemax="100"
|
|
20
|
+
:style="'width: ' + percentProgress + '%'"
|
|
21
|
+
/>
|
|
22
|
+
<div
|
|
23
|
+
class="progress-bar-cursor"
|
|
24
|
+
:style="'left:' + percentProgress + '%'"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="ms-2">
|
|
29
|
+
{{ totalTime }}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script lang="ts">
|
|
35
|
+
import DurationHelper from '../../../helper/duration';
|
|
36
|
+
import { displayMethods } from '../../mixins/functions';
|
|
37
|
+
import { state } from '../../../store/paramStore';
|
|
38
|
+
import { defineComponent } from 'vue'
|
|
39
|
+
export default defineComponent({
|
|
40
|
+
name: 'PodcastPlayBar',
|
|
41
|
+
mixins: [displayMethods],
|
|
42
|
+
props: {
|
|
43
|
+
podcastId: { default: undefined, type: Number},
|
|
44
|
+
duration: { default: 0, type: Number},
|
|
45
|
+
},
|
|
46
|
+
computed: {
|
|
47
|
+
isProgressBar(): boolean{
|
|
48
|
+
return (state.emissionsPage.progressBar as boolean);
|
|
49
|
+
},
|
|
50
|
+
percentProgress(): number{
|
|
51
|
+
if(this.podcastId !== this.$store.state.player.podcast?.podcastId){
|
|
52
|
+
return 0;
|
|
53
|
+
}
|
|
54
|
+
return !this.$store.state.player.elapsed ? 0 : this.$store.state.player.elapsed * 100;
|
|
55
|
+
},
|
|
56
|
+
playedTime(): string{
|
|
57
|
+
if(this.podcastId === this.$store.state.player.podcast?.podcastId){
|
|
58
|
+
if (this.$store.state.player.elapsed && this.$store.state.player.elapsed > 0 && this.$store.state.player.total && this.$store.state.player.total > 0) {
|
|
59
|
+
return DurationHelper.formatDuration(
|
|
60
|
+
Math.round(this.$store.state.player.elapsed * this.$store.state.player.total)
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return '00:00';
|
|
65
|
+
},
|
|
66
|
+
totalTime(): string {
|
|
67
|
+
return DurationHelper.formatDuration(Math.round(this.duration/1000));
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
methods: {
|
|
71
|
+
seekTo(event: MouseEvent): void {
|
|
72
|
+
if(!this.$store.state.player.podcast || this.podcastId !== this.$store.state.player.podcast.podcastId){return;}
|
|
73
|
+
const rect = (event.currentTarget as Element).getBoundingClientRect();
|
|
74
|
+
const barWidth = (event.currentTarget as Element).clientWidth;
|
|
75
|
+
const x = event.clientX - rect.left;
|
|
76
|
+
const percentPosition = x / barWidth;
|
|
77
|
+
if (percentPosition * 100 >= this.percentLiveProgress) return;
|
|
78
|
+
const seekTime = this.$store.state.player.total * percentPosition;
|
|
79
|
+
this.$store.commit("playerSeekTime", seekTime);
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
})
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style lang="scss">
|
|
86
|
+
.octopus-app{
|
|
87
|
+
.podcast-play-bar {
|
|
88
|
+
.progress{
|
|
89
|
+
height: 6px;
|
|
90
|
+
}
|
|
91
|
+
.progress-bar-cursor{
|
|
92
|
+
width: 10px;
|
|
93
|
+
height: 10px;
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
background: black;
|
|
96
|
+
align-self: center;
|
|
97
|
+
position: absolute;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
</style>
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<PodcastInlineListTemplate
|
|
3
|
+
v-if="loading || (!loading && 0 !== allPodcasts.length)"
|
|
4
|
+
:display-arrow="false"
|
|
5
|
+
:popular-sort="popularSort"
|
|
6
|
+
:button-text="buttonText"
|
|
7
|
+
:button-plus="buttonPlus"
|
|
8
|
+
:title="title"
|
|
9
|
+
:href="href"
|
|
10
|
+
:iab-id="iabId"
|
|
11
|
+
:rubrique-id="rubriqueId"
|
|
12
|
+
:no-rubriquage-id="noRubriquageId"
|
|
13
|
+
:is-button-next-title="true"
|
|
14
|
+
@sortChrono="sortChrono"
|
|
15
|
+
@sortPopular="sortPopular"
|
|
16
|
+
>
|
|
17
|
+
<template #list-inline>
|
|
18
|
+
<ClassicLoading
|
|
19
|
+
:loading-text="loading?$t('Loading podcasts ...'):undefined"
|
|
20
|
+
/>
|
|
21
|
+
<swiper
|
|
22
|
+
v-if="!loading"
|
|
23
|
+
:slides-per-view="numberItem"
|
|
24
|
+
:space-between="10"
|
|
25
|
+
:loop="allPodcasts.length>=numberItem"
|
|
26
|
+
:navigation="true"
|
|
27
|
+
:modules="modules"
|
|
28
|
+
>
|
|
29
|
+
<swiper-slide
|
|
30
|
+
v-for="p in allPodcasts"
|
|
31
|
+
:key="p.podcastId"
|
|
32
|
+
>
|
|
33
|
+
<PodcastItem
|
|
34
|
+
class="flex-shrink-0 item-phone-margin"
|
|
35
|
+
:podcast="p"
|
|
36
|
+
/>
|
|
37
|
+
</swiper-slide>
|
|
38
|
+
</swiper>
|
|
39
|
+
</template>
|
|
40
|
+
</PodcastInlineListTemplate>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script lang="ts">
|
|
44
|
+
import PodcastInlineListTemplate from './PodcastInlineListTemplate.vue';
|
|
45
|
+
import octopusApi from '@saooti/octopus-api';
|
|
46
|
+
import domHelper from '../../../helper/dom';
|
|
47
|
+
import PodcastItem from './PodcastItem.vue';
|
|
48
|
+
import { state } from '../../../store/paramStore';
|
|
49
|
+
import ClassicLoading from '../../form/ClassicLoading.vue';
|
|
50
|
+
import { Swiper, SwiperSlide } from "swiper/vue";
|
|
51
|
+
import { Navigation } from "swiper";
|
|
52
|
+
import "swiper/css";
|
|
53
|
+
import "swiper/css/navigation";
|
|
54
|
+
import { Podcast } from '@/store/class/general/podcast';
|
|
55
|
+
import { defineComponent } from 'vue'
|
|
56
|
+
export default defineComponent({
|
|
57
|
+
name: 'PodcastSwiperList',
|
|
58
|
+
|
|
59
|
+
components: {
|
|
60
|
+
PodcastInlineListTemplate,
|
|
61
|
+
PodcastItem,
|
|
62
|
+
ClassicLoading,
|
|
63
|
+
Swiper,
|
|
64
|
+
SwiperSlide,
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
props: {
|
|
68
|
+
organisationId: { default: undefined, type: String},
|
|
69
|
+
emissionId: { default: undefined, type: Number},
|
|
70
|
+
iabId: { default: undefined, type: Number},
|
|
71
|
+
title: { default: '', type: String},
|
|
72
|
+
href: { default: undefined, type: String},
|
|
73
|
+
buttonText: { default: undefined, type: String},
|
|
74
|
+
isArrow: { default: false, type: Boolean},
|
|
75
|
+
requirePopularSort: { default:undefined, type: Boolean},
|
|
76
|
+
buttonPlus: { default:false, type: Boolean},
|
|
77
|
+
rubriqueId: { default: () => [], type: Array as ()=> Array<number> },
|
|
78
|
+
rubriquageId:{ default: () => [], type: Array as ()=> Array<number> },
|
|
79
|
+
noRubriquageId: { default: () => [], type: Array as ()=> Array<number> },
|
|
80
|
+
query: { default: undefined, type: String},
|
|
81
|
+
},
|
|
82
|
+
emits: ['update:isArrow'],
|
|
83
|
+
|
|
84
|
+
data() {
|
|
85
|
+
return {
|
|
86
|
+
loading: true as boolean,
|
|
87
|
+
popularSort: false as boolean,
|
|
88
|
+
allPodcasts: [] as Array<Podcast>,
|
|
89
|
+
modules: [Navigation],
|
|
90
|
+
numberItem: 5 as number
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
computed: {
|
|
94
|
+
filterOrga(): string {
|
|
95
|
+
return this.$store.state.filter.organisationId;
|
|
96
|
+
},
|
|
97
|
+
organisation(): string|undefined {
|
|
98
|
+
return this.organisationId ?? this.filterOrga;
|
|
99
|
+
},
|
|
100
|
+
watchVariable():string{
|
|
101
|
+
return `${this.emissionId}|${this.organisationId}|${this.filterOrga}|${this.iabId}|${this.rubriqueId}|${this.rubriquageId}|${this.query}`;
|
|
102
|
+
},
|
|
103
|
+
sizeItem(): number {
|
|
104
|
+
return state.generalParameters.podcastItem ? (state.generalParameters.podcastItem as number): 13;
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
watch: {
|
|
108
|
+
watchVariable(): void {
|
|
109
|
+
this.reset();
|
|
110
|
+
this.fetchNext();
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
created() {
|
|
115
|
+
if (undefined !== this.requirePopularSort) {
|
|
116
|
+
this.popularSort = this.requirePopularSort;
|
|
117
|
+
}
|
|
118
|
+
if (undefined !== this.isArrow) {
|
|
119
|
+
this.$emit('update:isArrow', true);
|
|
120
|
+
}
|
|
121
|
+
window.addEventListener('resize', this.handleResize);
|
|
122
|
+
},
|
|
123
|
+
unmounted() {
|
|
124
|
+
window.removeEventListener('resize', this.handleResize);
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
mounted() {
|
|
129
|
+
this.handleResize();
|
|
130
|
+
this.fetchNext();
|
|
131
|
+
},
|
|
132
|
+
methods: {
|
|
133
|
+
handleResize(): void {
|
|
134
|
+
if (!this.$el) return;
|
|
135
|
+
const width = (this.$el as HTMLElement).offsetWidth;
|
|
136
|
+
const sixteen = domHelper.convertRemToPixels(this.sizeItem + 0.5);
|
|
137
|
+
this.numberItem = Math.floor(width / sixteen);
|
|
138
|
+
},
|
|
139
|
+
async fetchNext(): Promise<void> {
|
|
140
|
+
const data = await octopusApi.fetchDataWithParams<{count: number;result:Array<Podcast>;sort: string;}>(0, 'podcast/search',{
|
|
141
|
+
first: 0,
|
|
142
|
+
size: 10,
|
|
143
|
+
organisationId: this.organisation,
|
|
144
|
+
emissionId: this.emissionId,
|
|
145
|
+
iabId: this.iabId,
|
|
146
|
+
rubriqueId: this.rubriqueId.length ?this.rubriqueId:undefined,
|
|
147
|
+
rubriquageId: this.rubriquageId.length ?this.rubriquageId : undefined,
|
|
148
|
+
noRubriquageId: this.noRubriquageId.length ? this.noRubriquageId : undefined,
|
|
149
|
+
sort: this.popularSort ? 'POPULARITY' : 'DATE',
|
|
150
|
+
query: this.query,
|
|
151
|
+
}, true);
|
|
152
|
+
this.allPodcasts = this.allPodcasts.concat(
|
|
153
|
+
data.result.filter((pod: Podcast|null) => null !== pod)
|
|
154
|
+
);
|
|
155
|
+
this.loading = false;
|
|
156
|
+
},
|
|
157
|
+
sortPopular(): void {
|
|
158
|
+
if (this.popularSort) return;
|
|
159
|
+
this.popularSort = true;
|
|
160
|
+
this.reset();
|
|
161
|
+
this.fetchNext();
|
|
162
|
+
},
|
|
163
|
+
sortChrono(): void {
|
|
164
|
+
if (!this.popularSort) return;
|
|
165
|
+
this.popularSort = false;
|
|
166
|
+
this.reset();
|
|
167
|
+
this.fetchNext();
|
|
168
|
+
},
|
|
169
|
+
reset(): void {
|
|
170
|
+
this.loading = true;
|
|
171
|
+
this.allPodcasts.length = 0;
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
})
|
|
175
|
+
</script>
|
|
176
|
+
<style lang="scss">
|
|
177
|
+
@import '../../../sass/_variables.scss';
|
|
178
|
+
.swiper {
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 100%;
|
|
181
|
+
}
|
|
182
|
+
.swiper-button-next, .swiper-button-prev{
|
|
183
|
+
color: $octopus-primary-color !important;
|
|
184
|
+
height: 100%;
|
|
185
|
+
top: 0;
|
|
186
|
+
bottom: 0;
|
|
187
|
+
margin: 0;
|
|
188
|
+
width: 50px;
|
|
189
|
+
}
|
|
190
|
+
.swiper-button-next{
|
|
191
|
+
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%,#fafafa 50%, #fafafa 100%);
|
|
192
|
+
right: 0;
|
|
193
|
+
}
|
|
194
|
+
.swiper-button-prev{
|
|
195
|
+
background: linear-gradient(90deg, #fafafa 0%,#fafafa 50%, rgba(255, 255, 255, 0) 100%);
|
|
196
|
+
left: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.swiper-slide {
|
|
200
|
+
display: flex;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
align-items: center;
|
|
203
|
+
}
|
|
204
|
+
</style>
|
|
@@ -1,48 +1,70 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
<div
|
|
3
|
+
v-if="undefined !== tagList && 0!==tagList.length"
|
|
4
|
+
class="tag-list-component d-flex align-items-center flex-wrap"
|
|
5
|
+
>
|
|
6
|
+
<div class="fw-bold">
|
|
7
|
+
{{ $t('Podcast tags') + ": " }}
|
|
8
|
+
</div>
|
|
9
|
+
<div
|
|
10
|
+
v-for="(tag, index) in tagList"
|
|
11
|
+
:key="tag"
|
|
12
|
+
class="tag-list-element"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
:id="'tag-list-from-podcast-page'+index"
|
|
16
|
+
role="button"
|
|
17
|
+
>
|
|
18
|
+
<img
|
|
19
|
+
v-if="isOuestFranceTag(tag)"
|
|
20
|
+
class="ouest-france-logo"
|
|
21
|
+
alt="Ouest France Logo"
|
|
22
|
+
src="/img/ouest_france_logo.svg"
|
|
15
23
|
>
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
{{ formateOfTag(tag) }}
|
|
25
|
+
</div>
|
|
26
|
+
<Popover
|
|
27
|
+
v-if="isOuestFranceTag(tag)"
|
|
28
|
+
:target="'tag-list-from-podcast-page'+index"
|
|
29
|
+
triggers="hover"
|
|
30
|
+
:content="tag.substring(4,tag.length)"
|
|
31
|
+
placement="bottom"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
18
34
|
</div>
|
|
19
35
|
</template>
|
|
20
|
-
<style lang="scss">
|
|
21
|
-
.tagListElement {
|
|
22
|
-
display: flex;
|
|
23
|
-
margin: 0.4rem;
|
|
24
|
-
padding: 0.8rem;
|
|
25
|
-
border: 1px solid #999;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
}
|
|
28
|
-
.tagListLink {
|
|
29
|
-
font-weight: 700;
|
|
30
|
-
font-size: 1.2rem;
|
|
31
|
-
color: #666;
|
|
32
|
-
&:hover {
|
|
33
|
-
color: #666;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
36
|
|
|
38
37
|
<script lang="ts">
|
|
38
|
+
import Popover from '../../misc/Popover.vue';
|
|
39
|
+
import { tagOfMixins } from '../../mixins/tagOfMixins';
|
|
39
40
|
import { defineComponent } from 'vue'
|
|
40
41
|
export default defineComponent({
|
|
41
42
|
name: 'TagList',
|
|
42
|
-
components: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
43
|
+
components: {
|
|
44
|
+
Popover
|
|
45
|
+
},
|
|
46
|
+
mixins:[tagOfMixins],
|
|
47
|
+
props: {
|
|
48
|
+
tagList: { default: () => [], type: Array as ()=>Array<string>},
|
|
49
|
+
},
|
|
50
|
+
})
|
|
48
51
|
</script>
|
|
52
|
+
|
|
53
|
+
<style lang="scss">
|
|
54
|
+
.octopus-app{
|
|
55
|
+
.tag-list-component{
|
|
56
|
+
.ouest-france-logo{
|
|
57
|
+
width: 20px;
|
|
58
|
+
height: 20px;
|
|
59
|
+
margin-right: 5px;
|
|
60
|
+
}
|
|
61
|
+
.tag-list-element {
|
|
62
|
+
display: flex;
|
|
63
|
+
margin: 0.4rem;
|
|
64
|
+
padding: 0.2rem;
|
|
65
|
+
border: 1px solid #999;
|
|
66
|
+
border-radius: 0.5rem;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
</style>
|