@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
|
@@ -1,252 +1,82 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="module-box text-center-mobile
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
<div class="module-box text-center-mobile">
|
|
3
|
+
<template
|
|
4
|
+
v-if="authenticated || participantId || organisationId || notExclusive"
|
|
5
|
+
>
|
|
6
|
+
<div class="d-flex mb-2">
|
|
7
|
+
<h3 class="mb-0">
|
|
8
|
+
{{ $t('Share') }}
|
|
9
|
+
</h3>
|
|
10
|
+
<span
|
|
11
|
+
v-if="authenticated"
|
|
12
|
+
id="popover-share-help"
|
|
13
|
+
role="button"
|
|
14
|
+
tabindex="0"
|
|
15
|
+
class="saooti-help ms-2 align-items-start"
|
|
16
|
+
:title="$t('Help')"
|
|
17
|
+
/>
|
|
18
|
+
<Popover
|
|
19
|
+
v-if="authenticated"
|
|
20
|
+
target="popover-share-help"
|
|
21
|
+
placement="right"
|
|
22
|
+
>
|
|
23
|
+
{{ $t('Share this page without edit and share blocks') }}
|
|
24
|
+
</Popover>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="d-flex align-items-center">
|
|
27
|
+
<ShareButtonsIntern
|
|
28
|
+
:podcast="podcast"
|
|
29
|
+
:emission="emission"
|
|
30
|
+
:playlist="playlist"
|
|
31
|
+
:participant-id="participantId"
|
|
32
|
+
:organisation-id="organisationId"
|
|
33
|
+
:not-exclusive="notExclusive"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
29
37
|
<div
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
bigRound && !audioUrl ? 'justify-content-center' : '',
|
|
33
|
-
verticalDisplay ? 'flex-column' : '',
|
|
34
|
-
]"
|
|
38
|
+
v-else
|
|
39
|
+
class="d-flex-row"
|
|
35
40
|
>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
:
|
|
39
|
-
:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
>
|
|
45
|
-
<div class="saooti-download-bounty"></div>
|
|
46
|
-
</a>
|
|
47
|
-
<a
|
|
48
|
-
target="_blank"
|
|
49
|
-
:href="facebookURL"
|
|
50
|
-
:class="[
|
|
51
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-facebook share-btn mb-2',
|
|
52
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
53
|
-
]"
|
|
54
|
-
aria-label="Facebook"
|
|
55
|
-
>
|
|
56
|
-
<span class="saooti-facebook-bounty" v-if="!bigRound"></span>
|
|
57
|
-
<div class="saooti-facebook-bounty" v-else></div>
|
|
58
|
-
</a>
|
|
59
|
-
<a
|
|
60
|
-
target="_blank"
|
|
61
|
-
:class="[
|
|
62
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-twitter share-btn mb-2',
|
|
63
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
64
|
-
]"
|
|
65
|
-
:href="twitterURL"
|
|
66
|
-
aria-label="Twitter"
|
|
67
|
-
>
|
|
68
|
-
<span class="saooti-twitter-bounty" v-if="!bigRound"></span>
|
|
69
|
-
<div class="saooti-twitter-bounty" v-else></div>
|
|
70
|
-
</a>
|
|
71
|
-
<a
|
|
72
|
-
target="_blank"
|
|
73
|
-
:class="[
|
|
74
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-linkedin share-btn mb-2',
|
|
75
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
76
|
-
]"
|
|
77
|
-
:href="linkedinURL"
|
|
78
|
-
aria-label="Linkedin"
|
|
79
|
-
>
|
|
80
|
-
<span class="saooti-linkedin1" v-if="!bigRound"></span>
|
|
81
|
-
<div class="saooti-linkedin1" v-else></div>
|
|
82
|
-
</a>
|
|
83
|
-
<a
|
|
84
|
-
target="_blank"
|
|
85
|
-
:class="[
|
|
86
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-rss share-btn mb-2',
|
|
87
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
88
|
-
]"
|
|
89
|
-
@click.prevent="openPopup()"
|
|
90
|
-
:href="rssUrl"
|
|
91
|
-
:title="$t('Subscribe to this emission')"
|
|
92
|
-
aria-label="RSS"
|
|
93
|
-
v-if="rssUrl"
|
|
94
|
-
>
|
|
95
|
-
<span class="saooti-rss-bounty" v-if="!bigRound"></span>
|
|
96
|
-
<div class="saooti-rss-bounty" v-else></div>
|
|
97
|
-
</a>
|
|
98
|
-
<a
|
|
99
|
-
target="_blank"
|
|
100
|
-
:class="[
|
|
101
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-rss share-btn mb-2',
|
|
102
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
103
|
-
]"
|
|
104
|
-
aria-label="copy"
|
|
105
|
-
@click="onCopyCode(window.location.href, afterCopy)"
|
|
106
|
-
>
|
|
107
|
-
<span class="saooti-link" v-if="!bigRound"></span>
|
|
108
|
-
<div class="saooti-link" v-else></div>
|
|
109
|
-
</a>
|
|
110
|
-
<a
|
|
111
|
-
target="_blank"
|
|
112
|
-
v-if="podcast"
|
|
113
|
-
:class="[
|
|
114
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-rss share-btn mb-2',
|
|
115
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
116
|
-
]"
|
|
117
|
-
:aria-label="$t('Share newsletter')"
|
|
118
|
-
@click="newsletter = true"
|
|
119
|
-
>
|
|
120
|
-
<span class="saooti-mail-bounty" v-if="!bigRound"></span>
|
|
121
|
-
<div class="saooti-mail-bounty" v-else></div>
|
|
122
|
-
</a>
|
|
41
|
+
<ShareButtonsIntern
|
|
42
|
+
:podcast="podcast"
|
|
43
|
+
:emission="emission"
|
|
44
|
+
:playlist="playlist"
|
|
45
|
+
:participant-id="participantId"
|
|
46
|
+
:organisation-id="organisationId"
|
|
47
|
+
:not-exclusive="notExclusive"
|
|
48
|
+
/>
|
|
123
49
|
</div>
|
|
124
|
-
<ClipboardModal
|
|
125
|
-
v-if="dataRSSSave"
|
|
126
|
-
:closable="true"
|
|
127
|
-
@close="closeModal()"
|
|
128
|
-
:link="rssUrl"
|
|
129
|
-
:emission="emission"
|
|
130
|
-
:title="$t('RSS Link')"
|
|
131
|
-
/>
|
|
132
|
-
<NewsletterModal
|
|
133
|
-
v-if="newsletter"
|
|
134
|
-
:closable="true"
|
|
135
|
-
:podcast="podcast"
|
|
136
|
-
@close="newsletter = false"
|
|
137
|
-
/>
|
|
138
|
-
<Snackbar ref="snackbar" position="bottom-left"></Snackbar>
|
|
139
50
|
</div>
|
|
140
51
|
</template>
|
|
141
52
|
|
|
142
|
-
<style lang="scss">
|
|
143
|
-
.share-button-page {
|
|
144
|
-
@media (max-width: 960px) {
|
|
145
|
-
.flex-column {
|
|
146
|
-
flex-direction: row !important;
|
|
147
|
-
}
|
|
148
|
-
.btn {
|
|
149
|
-
margin-right: 0.5rem;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
@media (max-width: 450px) {
|
|
153
|
-
.flex-column {
|
|
154
|
-
flex-direction: row !important;
|
|
155
|
-
flex-wrap: wrap;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
.share-button-title {
|
|
160
|
-
height: 2rem;
|
|
161
|
-
}
|
|
162
|
-
</style>
|
|
163
|
-
|
|
164
53
|
<script lang="ts">
|
|
54
|
+
import { Emission } from '@/store/class/general/emission';
|
|
55
|
+
import { Podcast } from '@/store/class/general/podcast';
|
|
165
56
|
import { state } from '../../../store/paramStore';
|
|
166
|
-
import ClipboardModal from '../../misc/modal/ClipboardModal.vue';
|
|
167
|
-
import NewsletterModal from '../../misc/modal/NewsletterModal.vue';
|
|
168
|
-
import Snackbar from '../../misc/Snackbar.vue';
|
|
169
57
|
import { displayMethods } from '../../mixins/functions';
|
|
170
|
-
import
|
|
58
|
+
import Popover from '../../misc/Popover.vue';
|
|
59
|
+
import ShareButtonsIntern from './ShareButtonsIntern.vue';
|
|
60
|
+
import { defineComponent } from 'vue';
|
|
61
|
+
import { Playlist } from '@/store/class/general/playlist';
|
|
171
62
|
export default defineComponent({
|
|
172
|
-
props: [
|
|
173
|
-
'podcast',
|
|
174
|
-
'emission',
|
|
175
|
-
'participantId',
|
|
176
|
-
'organisationId',
|
|
177
|
-
'bigRound',
|
|
178
|
-
'audioUrl',
|
|
179
|
-
'notExclusive',
|
|
180
|
-
],
|
|
181
|
-
|
|
182
63
|
components: {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
Snackbar,
|
|
64
|
+
ShareButtonsIntern,
|
|
65
|
+
Popover,
|
|
186
66
|
},
|
|
187
|
-
|
|
188
67
|
mixins: [displayMethods],
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
linkedinURL: `https://www.linkedin.com/sharing/share-offsite/?url=${window.location.href}`,
|
|
197
|
-
dataRSSSave: false,
|
|
198
|
-
newsletter: false,
|
|
199
|
-
};
|
|
68
|
+
props: {
|
|
69
|
+
podcast: { default: undefined, type: Object as ()=> Podcast},
|
|
70
|
+
emission: { default: undefined, type: Object as ()=> Emission},
|
|
71
|
+
playlist: { default: undefined, type: Object as ()=>Playlist},
|
|
72
|
+
participantId: { default: undefined, type: Number},
|
|
73
|
+
organisationId: { default: undefined, type: String},
|
|
74
|
+
notExclusive: { default: true, type: Boolean},
|
|
200
75
|
},
|
|
201
|
-
|
|
202
76
|
computed: {
|
|
203
|
-
|
|
204
|
-
return
|
|
205
|
-
},
|
|
206
|
-
verticalDisplay():boolean {
|
|
207
|
-
return (
|
|
208
|
-
!this.authenticated &&
|
|
209
|
-
!this.participantId &&
|
|
210
|
-
!this.organisationId &&
|
|
211
|
-
!this.notExclusive
|
|
212
|
-
);
|
|
213
|
-
},
|
|
214
|
-
authenticated():boolean {
|
|
215
|
-
return state.generalParameters.authenticated;
|
|
216
|
-
},
|
|
217
|
-
rssUrl():any {
|
|
218
|
-
if (this.emission)
|
|
219
|
-
return (
|
|
220
|
-
state.generalParameters.ApiUri +
|
|
221
|
-
'rss/emission/' +
|
|
222
|
-
this.emission.emissionId
|
|
223
|
-
);
|
|
224
|
-
if (this.organisationId)
|
|
225
|
-
return (
|
|
226
|
-
state.generalParameters.ApiUri +
|
|
227
|
-
'rss/productor/' +
|
|
228
|
-
this.organisationId
|
|
229
|
-
);
|
|
230
|
-
if (this.participantId)
|
|
231
|
-
return (
|
|
232
|
-
state.generalParameters.ApiUri +
|
|
233
|
-
'rss/participant/' +
|
|
234
|
-
this.participantId
|
|
235
|
-
);
|
|
236
|
-
return null;
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
methods: {
|
|
241
|
-
openPopup() {
|
|
242
|
-
this.dataRSSSave = !this.dataRSSSave;
|
|
243
|
-
},
|
|
244
|
-
closeModal() {
|
|
245
|
-
this.dataRSSSave = false;
|
|
77
|
+
authenticated(): boolean {
|
|
78
|
+
return (state.generalParameters.authenticated as boolean);
|
|
246
79
|
},
|
|
247
|
-
afterCopy(){
|
|
248
|
-
this.snackbarRef.open(this.$t('Link in clipboard'));
|
|
249
|
-
}
|
|
250
80
|
},
|
|
251
|
-
})
|
|
81
|
+
})
|
|
252
82
|
</script>
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
v-if="isDownloadButton"
|
|
4
|
+
class="text-dark"
|
|
5
|
+
:class="getClass()"
|
|
6
|
+
:title="$t('Downloading')"
|
|
7
|
+
@click="onDownload(podcast.audioUrl, podcast.title)"
|
|
8
|
+
>
|
|
9
|
+
<div class="saooti-download" />
|
|
10
|
+
</button>
|
|
11
|
+
<template
|
|
12
|
+
v-for="button in arrayShareButtons"
|
|
13
|
+
:key="button.title"
|
|
14
|
+
>
|
|
15
|
+
<a
|
|
16
|
+
v-if="button.condition"
|
|
17
|
+
rel="noopener"
|
|
18
|
+
target="_blank"
|
|
19
|
+
:href="button.url"
|
|
20
|
+
:class="getClass(button.className)"
|
|
21
|
+
:title="button.title"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
:class="button.icon"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
v-for="index in button.nbPath"
|
|
28
|
+
:key="index"
|
|
29
|
+
:class="'path'+(index+1)"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
</a>
|
|
33
|
+
</template>
|
|
34
|
+
<a
|
|
35
|
+
v-if="''!==rssUrl && displayRss"
|
|
36
|
+
rel="noopener"
|
|
37
|
+
target="_blank"
|
|
38
|
+
:class="getClass()"
|
|
39
|
+
:href="rssUrl"
|
|
40
|
+
:title="titleRssButton"
|
|
41
|
+
@click.prevent="openPopup()"
|
|
42
|
+
>
|
|
43
|
+
<div class="saooti-rss" />
|
|
44
|
+
</a>
|
|
45
|
+
<button
|
|
46
|
+
:class="getClass()"
|
|
47
|
+
:title="$t('Copy this page URL')"
|
|
48
|
+
@click="onCopyCode(urlPage,afterCopy)"
|
|
49
|
+
>
|
|
50
|
+
<div class="saooti-link" />
|
|
51
|
+
</button>
|
|
52
|
+
<button
|
|
53
|
+
v-if="podcast || emission ||playlist"
|
|
54
|
+
:class="getClass()"
|
|
55
|
+
:title="$t('Share newsletter')"
|
|
56
|
+
@click="newsletter = true"
|
|
57
|
+
>
|
|
58
|
+
<div class="saooti-newsletter" />
|
|
59
|
+
</button>
|
|
60
|
+
<button
|
|
61
|
+
:class="getClass()"
|
|
62
|
+
:title="$t('Share QR Code')"
|
|
63
|
+
@click="qrCode = true"
|
|
64
|
+
>
|
|
65
|
+
<div class="saooti-qrcode" />
|
|
66
|
+
</button>
|
|
67
|
+
<ClipboardModal
|
|
68
|
+
v-if="dataRSSSave"
|
|
69
|
+
:link="rssUrl"
|
|
70
|
+
:emission="emission"
|
|
71
|
+
@close="dataRSSSave = false"
|
|
72
|
+
@copy="afterCopy"
|
|
73
|
+
/>
|
|
74
|
+
<NewsletterModal
|
|
75
|
+
v-if="newsletter"
|
|
76
|
+
:closable="true"
|
|
77
|
+
:podcast="podcast"
|
|
78
|
+
:emission="emission"
|
|
79
|
+
:playlist="playlist"
|
|
80
|
+
@close="newsletter = false"
|
|
81
|
+
/>
|
|
82
|
+
<QrCodeModal
|
|
83
|
+
v-if="qrCode"
|
|
84
|
+
:closable="true"
|
|
85
|
+
:url-page="urlPage"
|
|
86
|
+
@close="qrCode = false"
|
|
87
|
+
/>
|
|
88
|
+
<Snackbar
|
|
89
|
+
ref="snackbar"
|
|
90
|
+
position="bottom-left"
|
|
91
|
+
/>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<script lang="ts">
|
|
95
|
+
import octopusApi from '@saooti/octopus-api';
|
|
96
|
+
import { Emission } from '@/store/class/general/emission';
|
|
97
|
+
import { Podcast } from '@/store/class/general/podcast';
|
|
98
|
+
import { state } from '../../../store/paramStore';
|
|
99
|
+
import Snackbar from '../../misc/Snackbar.vue';
|
|
100
|
+
import { displayMethods } from '../../mixins/functions';
|
|
101
|
+
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
102
|
+
import SnackbarVue from '../../misc/Snackbar.vue';
|
|
103
|
+
import { Playlist } from '@/store/class/general/playlist';
|
|
104
|
+
const ClipboardModal = defineAsyncComponent(() => import('../../misc/modal/ClipboardModal.vue'));
|
|
105
|
+
const NewsletterModal = defineAsyncComponent(() => import('../../misc/modal/NewsletterModal.vue'));
|
|
106
|
+
const QrCodeModal = defineAsyncComponent(() => import('../../misc/modal/QrCodeModal.vue'));
|
|
107
|
+
export default defineComponent({
|
|
108
|
+
components: {
|
|
109
|
+
ClipboardModal,
|
|
110
|
+
NewsletterModal,
|
|
111
|
+
QrCodeModal,
|
|
112
|
+
Snackbar,
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
mixins: [displayMethods],
|
|
116
|
+
|
|
117
|
+
props: {
|
|
118
|
+
podcast: { default: undefined, type: Object as ()=> Podcast},
|
|
119
|
+
emission: { default: undefined, type: Object as ()=> Emission},
|
|
120
|
+
playlist: { default: undefined, type: Object as ()=>Playlist},
|
|
121
|
+
participantId: { default: undefined, type: Number},
|
|
122
|
+
organisationId: { default: undefined, type: String},
|
|
123
|
+
notExclusive: { default: true, type: Boolean},
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
data() {
|
|
127
|
+
return {
|
|
128
|
+
dataRSSSave: false as boolean,
|
|
129
|
+
newsletter: false as boolean,
|
|
130
|
+
qrCode: false as boolean,
|
|
131
|
+
displayRss: false as boolean,
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
computed: {
|
|
135
|
+
titleRssButton(): string{
|
|
136
|
+
if(this.participantId){
|
|
137
|
+
return this.$t('Subscribe to this participant');
|
|
138
|
+
}
|
|
139
|
+
if(this.emission){
|
|
140
|
+
return this.$t('Subscribe to this emission');
|
|
141
|
+
}
|
|
142
|
+
return this.$t('Subscribe to this RSS feed');
|
|
143
|
+
},
|
|
144
|
+
arrayShareButtons(){
|
|
145
|
+
return [
|
|
146
|
+
{ title: 'Facebook', icon:'saooti-facebook', nbPath:0, className:'btn-facebook', url :`https://www.facebook.com/sharer/sharer.php?u=${this.urlPage}`, condition: true},
|
|
147
|
+
{ title: 'Twitter', icon:'saooti-twitter', nbPath:0, className:'btn-twitter', url :`https://twitter.com/intent/tweet?text=${this.urlPage}`, condition: true},
|
|
148
|
+
{ title: 'Linkedin', icon:'saooti-linkedin', nbPath:0, className:'btn-linkedin', url :`https://www.linkedin.com/sharing/share-offsite/?url=${this.urlPage}`, condition: true},
|
|
149
|
+
{ title: 'Whatsapp', icon:'saooti-Whatsapp', nbPath:3, className:'btn-whatsapp', url :`whatsapp://send?text=${this.urlPage}`, condition: window.matchMedia('(hover: none)').matches}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
isDownloadButton(): boolean{
|
|
153
|
+
return this.isDownloadButtonParam && undefined!==this.podcast && (!this.podcast.tags || !this.podcast.tags.includes('copyright'));
|
|
154
|
+
},
|
|
155
|
+
isDownloadButtonParam(): boolean {
|
|
156
|
+
return (state.podcastPage.downloadButton as boolean);
|
|
157
|
+
},
|
|
158
|
+
urlPage(): string{
|
|
159
|
+
return window.location.href;
|
|
160
|
+
},
|
|
161
|
+
verticalDisplay(): boolean {
|
|
162
|
+
return (
|
|
163
|
+
!this.authenticated &&
|
|
164
|
+
!this.participantId &&
|
|
165
|
+
!this.organisationId &&
|
|
166
|
+
!this.notExclusive
|
|
167
|
+
);
|
|
168
|
+
},
|
|
169
|
+
authenticated(): boolean {
|
|
170
|
+
return (state.generalParameters.authenticated as boolean);
|
|
171
|
+
},
|
|
172
|
+
rssUrl(): string {
|
|
173
|
+
let api = state.generalParameters.ApiUri+ 'rss/';
|
|
174
|
+
if (this.emission){
|
|
175
|
+
return api +'emission/' + this.emission.emissionId + '.rss';
|
|
176
|
+
}
|
|
177
|
+
if (this.organisationId){
|
|
178
|
+
return api +'productor/' + this.organisationId + '.rss';
|
|
179
|
+
}
|
|
180
|
+
if (this.participantId){
|
|
181
|
+
return api +'participant/' + this.participantId + '.rss';
|
|
182
|
+
}
|
|
183
|
+
return '';
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
async created(){
|
|
187
|
+
if(this.organisationId){
|
|
188
|
+
this.displayRss = await octopusApi.fetchDataPublic<boolean>(0,`rss/participants/allowed/${this.organisationId}`);
|
|
189
|
+
}else{
|
|
190
|
+
this.displayRss = true;
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
methods: {
|
|
195
|
+
getClass(className='btn-rss'): string{
|
|
196
|
+
let returnString = `btn ${className} share-btn mb-2 text-dark`;
|
|
197
|
+
returnString+= this.verticalDisplay ? '' : ' mx-2';
|
|
198
|
+
return returnString;
|
|
199
|
+
},
|
|
200
|
+
openPopup(): void {
|
|
201
|
+
this.dataRSSSave = !this.dataRSSSave;
|
|
202
|
+
},
|
|
203
|
+
afterCopy(): void{
|
|
204
|
+
(this.$refs.snackbar as InstanceType<typeof SnackbarVue>).open(this.$t('Link in clipboard'));
|
|
205
|
+
},
|
|
206
|
+
onDownload(urlToDownload: string, nameOfDownload: string): void{
|
|
207
|
+
const xhr = new XMLHttpRequest();
|
|
208
|
+
xhr.open('GET', urlToDownload, true);
|
|
209
|
+
xhr.responseType = 'blob';
|
|
210
|
+
xhr.onload = function() {
|
|
211
|
+
const urlCreator = window.URL || window.webkitURL;
|
|
212
|
+
const imageUrl = urlCreator.createObjectURL(this.response);
|
|
213
|
+
const tag = document.createElement('a');
|
|
214
|
+
tag.href = imageUrl;
|
|
215
|
+
tag.target = '_blank';
|
|
216
|
+
tag.download = nameOfDownload.replace(/ /g, '_');
|
|
217
|
+
document.body.appendChild(tag);
|
|
218
|
+
tag.click();
|
|
219
|
+
document.body.removeChild(tag);
|
|
220
|
+
};
|
|
221
|
+
xhr.send();
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
})
|
|
225
|
+
</script>
|