@saooti/octopus-sdk 0.28.16 → 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 +188 -2
- package/index.ts +45 -11
- package/package.json +46 -48
- 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 +185 -1266
- package/public/img/403.jpeg +0 -0
- package/public/img/404.svg +242 -0
- package/public/img/ouest_france_logo.svg +12 -0
- package/src/App.vue +45 -24
- package/src/api/classicCrud.ts +34 -0
- package/src/api/initialize.ts +4 -2
- package/src/assets/bootstrap-diff.scss +197 -0
- package/src/assets/form.scss +77 -77
- package/src/assets/general.scss +287 -301
- package/src/assets/live.scss +39 -0
- package/src/assets/modal.scss +43 -50
- package/src/assets/multiselect.scss +522 -590
- package/src/assets/octopus-library.scss +17 -4
- package/src/assets/share.scss +150 -250
- package/src/assets/transition.scss +98 -2
- package/src/components/display/aggregator/RssSection.vue +4 -6
- package/src/components/display/categories/CategoryChooser.vue +100 -79
- package/src/components/display/categories/CategoryFilter.vue +117 -37
- package/src/components/display/categories/CategoryList.vue +121 -108
- package/src/components/display/comments/AddCommentModal.vue +98 -94
- package/src/components/display/comments/CommentBasicView.vue +95 -0
- package/src/components/display/comments/CommentInput.vue +175 -155
- package/src/components/display/comments/CommentItem.vue +152 -168
- package/src/components/display/comments/CommentList.vue +123 -229
- package/src/components/display/comments/CommentParentInfo.vue +26 -58
- package/src/components/display/comments/CommentPlayer.vue +51 -49
- package/src/components/display/comments/CommentSection.vue +44 -67
- package/src/components/display/edit/EditBox.vue +11 -5
- package/src/components/display/edit/EditCommentBox.vue +121 -29
- package/src/components/display/emission/EmissionChooser.vue +73 -81
- package/src/components/display/emission/EmissionInlineList.vue +130 -128
- package/src/components/display/emission/EmissionItem.vue +68 -109
- package/src/components/display/emission/EmissionList.vue +140 -146
- package/src/components/display/emission/EmissionPlayerItem.vue +186 -148
- package/src/components/display/filter/AdvancedSearch.vue +192 -273
- package/src/components/display/filter/CategoryFilter.vue +51 -59
- package/src/components/display/filter/MonetizableFilter.vue +17 -16
- package/src/components/display/filter/ProductorSearch.vue +149 -149
- package/src/components/display/filter/RubriqueChoice.vue +33 -37
- package/src/components/display/filter/RubriqueFilter.vue +132 -122
- 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 +19 -12
- package/src/components/display/live/LiveHorizontalList.vue +78 -55
- package/src/components/display/live/LiveItem.vue +136 -121
- package/src/components/display/live/LiveList.vue +172 -276
- package/src/components/display/organisation/OrganisationChooser.vue +104 -122
- package/src/components/display/organisation/OrganisationChooserLight.vue +46 -37
- package/src/components/display/participant/ParticipantItem.vue +91 -115
- package/src/components/display/participant/ParticipantList.vue +131 -117
- package/src/components/display/playlist/PlaylistItem.vue +54 -78
- package/src/components/display/playlist/PlaylistList.vue +91 -83
- package/src/components/display/playlist/PodcastList.vue +113 -128
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +191 -0
- package/src/components/display/podcasts/AnimatorsItem.vue +28 -39
- package/src/components/display/podcasts/ParticipantDescription.vue +62 -74
- package/src/components/display/podcasts/PodcastFilterList.vue +47 -89
- package/src/components/display/podcasts/PodcastImage.vue +195 -229
- package/src/components/display/podcasts/PodcastInlineList.vue +64 -282
- 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 +93 -227
- package/src/components/display/podcasts/PodcastItemInfo.vue +166 -0
- package/src/components/display/podcasts/PodcastList.vue +115 -134
- 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 -39
- package/src/components/display/rubriques/RubriqueChooser.vue +114 -95
- package/src/components/display/rubriques/RubriqueList.vue +111 -106
- package/src/components/display/sharing/PlayerParameters.vue +90 -151
- package/src/components/display/sharing/QrCode.vue +40 -27
- package/src/components/display/sharing/ShareButtons.vue +64 -299
- package/src/components/display/sharing/ShareButtonsIntern.vue +225 -0
- package/src/components/display/sharing/ShareDistribution.vue +99 -140
- package/src/components/display/sharing/SharePlayer.vue +155 -370
- 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 +62 -179
- package/src/components/display/studio/RecordingItemButton.vue +4 -6
- 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 -14
- package/src/components/misc/Footer.vue +132 -127
- package/src/components/misc/HomeDropdown.vue +93 -150
- package/src/components/misc/LeftMenu.vue +121 -192
- package/src/components/misc/Popover.vue +118 -0
- package/src/components/misc/Snackbar.vue +70 -35
- package/src/components/misc/TopBar.vue +192 -308
- package/src/components/misc/modal/ClipboardModal.vue +35 -50
- package/src/components/misc/modal/MessageModal.vue +71 -48
- package/src/components/misc/modal/NewsletterModal.vue +260 -231
- package/src/components/misc/modal/QrCodeModal.vue +42 -60
- package/src/components/misc/modal/ShareModalPlayer.vue +136 -70
- 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 +11 -43
- package/src/components/mixins/handle403.ts +17 -0
- package/src/components/mixins/init.ts +8 -6
- package/src/components/mixins/orgaComputed.ts +15 -0
- package/src/components/mixins/organisationFilter.ts +35 -18
- 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 +21 -26
- package/src/components/pages/Emission.vue +136 -162
- package/src/components/pages/Emissions.vue +60 -93
- package/src/components/pages/Error403Page.vue +60 -0
- package/src/components/pages/Home.vue +32 -39
- package/src/components/pages/Lives.vue +40 -46
- package/src/components/pages/PageNotFound.vue +55 -0
- package/src/components/pages/Participant.vue +110 -113
- package/src/components/pages/Participants.vue +21 -45
- package/src/components/pages/Playlist.vue +84 -75
- package/src/components/pages/Playlists.vue +29 -47
- package/src/components/pages/Podcast.vue +203 -434
- package/src/components/pages/Podcasts.vue +75 -134
- package/src/components/pages/Rubrique.vue +21 -29
- package/src/components/pages/Search.vue +33 -79
- package/src/helper/dom.ts +1 -1
- package/src/helper/duration.ts +1 -1
- 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 +1 -1
- package/src/locale/educationfr.ts +1 -1
- package/src/locale/en.ts +45 -28
- package/src/locale/es.ts +309 -0
- package/src/locale/fr.ts +25 -8
- package/src/locale/it.ts +307 -0
- package/src/locale/messages.ts +9 -2
- package/src/locale/sl.ts +309 -0
- package/src/main.ts +59 -85
- package/src/router/router.ts +60 -39
- package/src/sass/_variables.scss +10 -8
- package/src/shims-tsx.d.ts +2 -0
- package/src/shims-vue-recaptcha-v3.d.ts +9 -0
- package/src/shims-vue.d.ts +5 -4
- package/src/store/AppStore.ts +8 -9
- 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/{player.ts → general/player.ts} +5 -3
- 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 +221 -241
- package/src/store/typeAppStore.ts +45 -28
- package/src/vuex-shim.d.ts +8 -0
- package/tsconfig.json +2 -1
- package/vue.config.js +3 -1
- package/public/css/fonts/saooti-ui.eot +0 -0
- package/public/css/fonts/saooti-ui.svg +0 -840
- 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/article.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 -8
- 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 -298
- 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 -772
- package/src/store/class/category.ts +0 -8
- package/src/store/class/comment.ts +0 -17
- package/src/store/class/conference.ts +0 -27
- package/src/store/class/customPlayer.ts +0 -8
- package/src/store/class/emission.ts +0 -20
- package/src/store/class/media.ts +0 -13
- package/src/store/class/organisation.ts +0 -19
- package/src/store/class/participant.ts +0 -12
- package/src/store/class/person.ts +0 -13
- package/src/store/class/playlist.ts +0 -15
- package/src/store/class/podcast.ts +0 -37
- package/src/store/class/rubriquage.ts +0 -9
- package/src/store/class/rubriquageFilter.ts +0 -5
- package/src/store/class/rubrique.ts +0 -8
|
@@ -1,294 +1,287 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<
|
|
3
|
+
<div
|
|
4
4
|
id="newsletter-modal"
|
|
5
|
-
|
|
6
|
-
@hide="closePopup"
|
|
7
|
-
@cancel="closePopup"
|
|
8
|
-
:title="$t('Share newsletter')"
|
|
5
|
+
class="modal"
|
|
9
6
|
>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<div class="
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
7
|
+
<div class="modal-backdrop" />
|
|
8
|
+
<div class="modal-dialog">
|
|
9
|
+
<div class="modal-content">
|
|
10
|
+
<div class="modal-header">
|
|
11
|
+
<h5 class="modal-title">
|
|
12
|
+
{{ $t('Share newsletter') }}
|
|
13
|
+
</h5>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="modal-body">
|
|
16
|
+
<div class="d-flex justify-content-between">
|
|
17
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
18
|
+
<div v-html="newsletterHtml" />
|
|
19
|
+
<!-- eslint-enable -->
|
|
20
|
+
<div class="d-flex flex-column flex-grow-1 ms-4">
|
|
21
|
+
<h4 class="mb-3">
|
|
22
|
+
{{ $t('Configuration') }}
|
|
23
|
+
</h4>
|
|
24
|
+
<label for="share-url-newsletter">{{ $t('Share') }}</label>
|
|
25
|
+
<input
|
|
26
|
+
id="share-url-newsletter"
|
|
27
|
+
v-model="shareUrl"
|
|
28
|
+
class="form-input mb-2"
|
|
29
|
+
type="text"
|
|
30
|
+
:class="{ 'border border-danger': 0 === shareUrl }"
|
|
31
|
+
>
|
|
32
|
+
<template v-if="podcast">
|
|
33
|
+
<ClassicCheckbox
|
|
34
|
+
v-model:textInit="displayEmissionName"
|
|
35
|
+
id-checkbox="display-emission-name"
|
|
36
|
+
:label="$t('Display emission name')"
|
|
37
|
+
/>
|
|
38
|
+
<ClassicCheckbox
|
|
39
|
+
v-model:textInit="displayParticipantsNames"
|
|
40
|
+
id-checkbox="display-participants-names"
|
|
41
|
+
:label="$t('Display participants list')"
|
|
42
|
+
/>
|
|
43
|
+
</template>
|
|
44
|
+
<div class="d-flex align-items-center mt-2">
|
|
45
|
+
<VSwatches
|
|
46
|
+
v-model="color"
|
|
47
|
+
class="c-hand me-2 mt-2"
|
|
48
|
+
show-fallback
|
|
49
|
+
colors="text-advanced"
|
|
50
|
+
popover-to="right"
|
|
51
|
+
:data-color="color"
|
|
52
|
+
/>
|
|
53
|
+
<div>{{ $t('Choose main color') }}</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div
|
|
56
|
+
class=" d-flex justify-content-between align-items-center mt-3 mb-2"
|
|
57
|
+
>
|
|
58
|
+
<h4 class="mb-0">
|
|
59
|
+
{{ $t('HTML Code') }}
|
|
60
|
+
</h4>
|
|
61
|
+
<input
|
|
62
|
+
type="button"
|
|
63
|
+
:value="$t('Copy')"
|
|
64
|
+
class="btn btn-primary"
|
|
65
|
+
:title="$t('Copy')"
|
|
66
|
+
@click="onCopyCode(newsletterHtml, afterCopy)"
|
|
67
|
+
>
|
|
68
|
+
</div>
|
|
69
|
+
<textarea
|
|
70
|
+
id="newsletter_code_textarea"
|
|
71
|
+
v-model="newsletterHtml"
|
|
72
|
+
readonly
|
|
73
|
+
@click="selectAll"
|
|
74
|
+
/>
|
|
75
|
+
<label
|
|
76
|
+
for="newsletter_code_textarea"
|
|
77
|
+
:title="$t('HTML Code')"
|
|
78
|
+
/>
|
|
79
|
+
</div>
|
|
49
80
|
</div>
|
|
50
|
-
|
|
51
|
-
|
|
81
|
+
</div>
|
|
82
|
+
<div class="modal-footer">
|
|
83
|
+
<button
|
|
84
|
+
class="btn btn-primary m-1"
|
|
85
|
+
@click="closePopup"
|
|
52
86
|
>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
type="button"
|
|
56
|
-
:value="$t('Copy')"
|
|
57
|
-
class="btn btn-primary"
|
|
58
|
-
@click="onCopyCode(newsletterHtml, afterCopy)"
|
|
59
|
-
:aria-label="$t('Copy')"
|
|
60
|
-
/>
|
|
61
|
-
</div>
|
|
62
|
-
<textarea
|
|
63
|
-
id="newsletter_code_textarea"
|
|
64
|
-
v-model="newsletterHtml"
|
|
65
|
-
@click="selectAll"
|
|
66
|
-
readonly
|
|
67
|
-
></textarea>
|
|
68
|
-
<label
|
|
69
|
-
for="newsletter_code_textarea"
|
|
70
|
-
:aria-label="$t('HTML Code')"
|
|
71
|
-
></label>
|
|
87
|
+
{{ $t('Close') }}
|
|
88
|
+
</button>
|
|
72
89
|
</div>
|
|
73
90
|
</div>
|
|
74
|
-
</
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</b-modal>
|
|
81
|
-
<Snackbar ref="snackbar" position="bottom-left"></Snackbar>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<Snackbar
|
|
94
|
+
ref="snackbar"
|
|
95
|
+
position="bottom-left"
|
|
96
|
+
/>
|
|
82
97
|
</div>
|
|
83
98
|
</template>
|
|
84
99
|
|
|
85
|
-
<style lang="scss">
|
|
86
|
-
#newsletter-modal {
|
|
87
|
-
textarea {
|
|
88
|
-
border: 2px solid #eee;
|
|
89
|
-
height: 200px;
|
|
90
|
-
padding: 1em;
|
|
91
|
-
border-radius: 1em;
|
|
92
|
-
&:focus {
|
|
93
|
-
outline-width: 0;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.modal-dialog {
|
|
98
|
-
max-width: 60%;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
</style>
|
|
102
100
|
<script lang="ts">
|
|
101
|
+
import ClassicCheckbox from '../../form/ClassicCheckbox.vue';
|
|
103
102
|
import Snackbar from '../../misc/Snackbar.vue';
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
import
|
|
107
|
-
|
|
103
|
+
import moment from 'moment';
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
import VSwatches from 'vue3-swatches';
|
|
106
|
+
// @ts-ignore
|
|
107
|
+
import humanizeDuration from 'humanize-duration';
|
|
108
108
|
import { displayMethods } from '../../mixins/functions';
|
|
109
|
-
import { Participant } from '@/store/class/participant';
|
|
110
|
-
import { Podcast } from '@/store/class/podcast';
|
|
109
|
+
import { Participant } from '@/store/class/general/participant';
|
|
110
|
+
import { Podcast } from '@/store/class/general/podcast';
|
|
111
111
|
import { state } from '../../../store/paramStore';
|
|
112
|
-
|
|
112
|
+
import { defineComponent } from 'vue'
|
|
113
|
+
import SnackbarVue from '../../misc/Snackbar.vue';
|
|
114
|
+
import octopusApi from '@saooti/octopus-api';
|
|
115
|
+
import { Emission } from '@/store/class/general/emission';
|
|
116
|
+
import { Playlist } from '@/store/class/general/playlist';
|
|
117
|
+
export default defineComponent({
|
|
113
118
|
name: 'NewsletterModal',
|
|
114
|
-
props: {
|
|
115
|
-
podcast: { default: undefined as Podcast|undefined},
|
|
116
|
-
},
|
|
117
119
|
|
|
118
120
|
components: {
|
|
119
121
|
Snackbar,
|
|
120
|
-
|
|
122
|
+
VSwatches,
|
|
123
|
+
ClassicCheckbox
|
|
121
124
|
},
|
|
122
125
|
|
|
126
|
+
mixins: [displayMethods],
|
|
127
|
+
|
|
128
|
+
props: {
|
|
129
|
+
podcast: { default: undefined, type: Object as ()=> Podcast},
|
|
130
|
+
emission: { default: undefined, type: Object as ()=> Emission},
|
|
131
|
+
playlist: { default: undefined, type: Object as ()=>Playlist},
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
emits: ['close'],
|
|
135
|
+
|
|
123
136
|
data() {
|
|
124
137
|
return {
|
|
125
138
|
displayParticipantsNames: true as boolean,
|
|
126
139
|
displayEmissionName: true as boolean,
|
|
127
140
|
color: '#40a372' as string,
|
|
128
|
-
|
|
141
|
+
shareUrl: window.location.href as string,
|
|
142
|
+
|
|
129
143
|
};
|
|
130
144
|
},
|
|
131
145
|
|
|
132
|
-
mounted() {
|
|
133
|
-
this.$bvModal.show('newsletter-modal');
|
|
134
|
-
},
|
|
135
|
-
|
|
136
146
|
computed: {
|
|
137
|
-
|
|
138
|
-
|
|
147
|
+
date(): string {
|
|
148
|
+
if(!this.podcast || 1970 === moment(this.podcast.pubDate).year()){return '';}
|
|
149
|
+
return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
|
|
150
|
+
},
|
|
151
|
+
duration(): string {
|
|
152
|
+
if (!this.podcast || this.podcast.duration <= 1) return '';
|
|
153
|
+
if (this.podcast.duration > 600000) {
|
|
154
|
+
return humanizeDuration(this.podcast.duration, {
|
|
155
|
+
language: this.$i18n.locale,
|
|
156
|
+
largest: 1,
|
|
157
|
+
round: true,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return humanizeDuration(this.podcast.duration, {
|
|
161
|
+
language: this.$i18n.locale,
|
|
162
|
+
largest: 2,
|
|
163
|
+
round: true,
|
|
164
|
+
});
|
|
139
165
|
},
|
|
140
166
|
emissionName(): string {
|
|
141
|
-
if (this.displayEmissionName)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
`</td></tr>`
|
|
146
|
-
);
|
|
147
|
-
return '';
|
|
167
|
+
if (!this.displayEmissionName || !this.podcast){return ''}
|
|
168
|
+
return (
|
|
169
|
+
`<tr><td colspan="2" style="font-size: 16px;line-height:24px;font-weight: bold;">${this.podcast.emission.name}</td></tr>`
|
|
170
|
+
);
|
|
148
171
|
},
|
|
149
172
|
articleHtml(): string{
|
|
150
|
-
if(this.podcast
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
`">
|
|
156
|
-
<img width="44" height="44" style="display: inline-block;vertical-align: middle; margin-right:3px" src="` +
|
|
157
|
-
this.resourcesUrl + `/img/article.png">
|
|
158
|
-
</a>
|
|
159
|
-
<a style="color: #000;text-decoration: none;" href="` +
|
|
160
|
-
this.podcast.article +
|
|
161
|
-
`">` +
|
|
162
|
-
this.$t('See associated article') +
|
|
163
|
-
`</a>`);
|
|
164
|
-
}
|
|
165
|
-
return '';
|
|
173
|
+
if (!this.podcast?.article ||0 === this.podcast.article?.length){return ''}
|
|
174
|
+
return (`<a href="${this.podcast.article}" title="${this.$t('See associated article')}">
|
|
175
|
+
<img width="44" height="44" style="display: inline-block;vertical-align: middle; margin-right:3px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAA6UlEQVRIie3WPUpEMRTF8R9+4QpEBGttrcdeV+E2pp3KdYi7GBRttNVCZgOCjSuQ+UCLJzLIe7l3HpFpPJAuOf+T5F4SYh3jFZ/JMVlevJUwv8c+HvEQzD/FIBEaHOFtKdkosWb0PfdHGwXzOxxk03SpDVDNvA1Q1bwNcFMwn/cB/K6iQ+3VMsVVDQDcylVMSl1VBOea5FFjTXHWZVJqtCdcYjcI+YHnPoB3FY6qdERVVNrBHi6wGXgscK3Z8UqAE80dbAeAGV4wXhUwxk5gHurP72CtgP9Gw5oabYBhT7/wwZ/If09S35Yv52lVAXwyqt0AAAAASUVORK5CYII=">
|
|
176
|
+
</a>
|
|
177
|
+
<a style="color: #000;text-decoration: none;" href="${this.podcast.article}">${this.$t('See associated article')}</a>`);
|
|
166
178
|
},
|
|
167
179
|
participantsName(): string {
|
|
168
|
-
if (!this.displayParticipantsNames || !this.podcast.animators) return '';
|
|
180
|
+
if (!this.displayParticipantsNames || !this.podcast || !this.podcast.animators) return '';
|
|
169
181
|
const text = [''];
|
|
170
|
-
this.podcast.animators.forEach((element:
|
|
182
|
+
this.podcast.animators.forEach((element: Participant) => {
|
|
171
183
|
text.push(
|
|
172
184
|
`<table width='100%' style="width:100%;background: #f3f3f3;font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;border-bottom-left-radius: 1.5em;border-bottom-right-radius: 1.5em;">
|
|
173
185
|
<tr>
|
|
174
186
|
<td width="90" rowspan="2" style="text-align:left; vertical-align: top; width: 90px;padding:0 15px 15px 10px">
|
|
175
|
-
<img width="72" style="width: 62px;height: 62px;border-radius: 50%;background-color: #fff;" src="
|
|
176
|
-
element.imageUrl +
|
|
177
|
-
`" alt="` +
|
|
178
|
-
this.$t('Animator image') +
|
|
179
|
-
`">
|
|
187
|
+
<img width="72" style="width: 62px;height: 62px;border-radius: 50%;background-color: #fff;" src="${element.imageUrl}" alt="${this.$t('Animator image')}">
|
|
180
188
|
</td>
|
|
181
|
-
<td height="1" style="height: 1px;text-align:left; font-size: 14px;line-height:20px;vertical-align: top;font-weight: bold;padding-top: 23px;"
|
|
182
|
-
this.getName(element) +
|
|
183
|
-
`</td>
|
|
189
|
+
<td height="1" style="height: 1px;text-align:left; font-size: 14px;line-height:20px;vertical-align: top;font-weight: bold;padding-top: 23px;">${this.getName(element)}</td>
|
|
184
190
|
</tr>`
|
|
185
191
|
);
|
|
186
192
|
if (element.description) {
|
|
187
193
|
text.push(
|
|
188
|
-
`<tr>
|
|
189
|
-
|
|
190
|
-
` +
|
|
191
|
-
element.description +
|
|
192
|
-
`
|
|
193
|
-
</td>
|
|
194
|
-
</tr>`
|
|
194
|
+
`<tr><td style="height: 100%;text-align:justify;padding-bottom: 15px;padding-right: 15px; font-size: 12px;line-height:16px;vertical-align: top">
|
|
195
|
+
${element.description}</td></tr>`
|
|
195
196
|
);
|
|
196
197
|
}
|
|
197
198
|
text.push(`</table>`);
|
|
198
199
|
});
|
|
199
200
|
return text.join('');
|
|
200
201
|
},
|
|
202
|
+
imageUrl():string{
|
|
203
|
+
if(this.podcast){
|
|
204
|
+
return `${this.podcast.imageUrl}" alt="${this.$t('Podcast image')}`;
|
|
205
|
+
}
|
|
206
|
+
if(this.emission){
|
|
207
|
+
return `${this.emission.imageUrl}" alt="${this.$t('Emission image')}`;
|
|
208
|
+
}
|
|
209
|
+
if(this.playlist){
|
|
210
|
+
return `${this.playlist.imageUrl}" alt="${this.$t('Playlist image')}`;
|
|
211
|
+
}
|
|
212
|
+
return '';
|
|
213
|
+
},
|
|
214
|
+
title():string{
|
|
215
|
+
if(this.podcast){
|
|
216
|
+
return this.podcast.title;
|
|
217
|
+
}
|
|
218
|
+
if(this.emission){
|
|
219
|
+
return this.emission.name;
|
|
220
|
+
}
|
|
221
|
+
if(this.playlist){
|
|
222
|
+
return this.playlist.title;
|
|
223
|
+
}
|
|
224
|
+
return '';
|
|
225
|
+
},
|
|
226
|
+
description():string{
|
|
227
|
+
if (this.podcast && this.podcast.description) {
|
|
228
|
+
return `<tr><td colspan="2" valign="top" style="line-height:24px;font-size: 14px;max-width: 500px;">${this.podcast.description}</td></tr>`;
|
|
229
|
+
}
|
|
230
|
+
if(this.emission && this.emission.description){
|
|
231
|
+
return `<tr><td colspan="2" valign="top" style="line-height:24px;font-size: 14px;max-width: 500px;">${this.emission.description}</td></tr>`;
|
|
232
|
+
}
|
|
233
|
+
if(this.playlist && this.playlist.description){
|
|
234
|
+
return `<tr><td colspan="2" valign="top" style="line-height:24px;font-size: 14px;max-width: 500px;">${this.playlist.description}</td></tr>`;
|
|
235
|
+
}
|
|
236
|
+
return '';
|
|
237
|
+
},
|
|
238
|
+
shareText():string{
|
|
239
|
+
if (this.podcast) {
|
|
240
|
+
return this.$t('Listen this episode');
|
|
241
|
+
}
|
|
242
|
+
if (this.emission) {
|
|
243
|
+
return this.$t('All podcast emission button');
|
|
244
|
+
}
|
|
245
|
+
return this.$t('Podcasts in the playlist');
|
|
246
|
+
},
|
|
247
|
+
durationPodcast():string{
|
|
248
|
+
if(!this.podcast){return ''}
|
|
249
|
+
return `<td colspan="2" style="height: 1px;color: #666;font-size: 12px;line-height: 16px;padding-top:15px;">
|
|
250
|
+
<span>${this.date}</span>
|
|
251
|
+
<span style="padding: 0 10px">${this.$t('Duration', { duration: this.duration })}</span>
|
|
252
|
+
</td>`;
|
|
253
|
+
},
|
|
201
254
|
newsletterHtml(): string {
|
|
202
255
|
const html = [
|
|
203
256
|
`<table width='100%' style="width:100%;background:#f3f3f3;font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;border-top-left-radius: 1.5em;border-top-right-radius: 1.5em;">
|
|
204
|
-
|
|
257
|
+
<tr>
|
|
205
258
|
<td valign="top" rowspan="4" style="vertical-align: top; padding: 10px;">
|
|
206
|
-
<img width="140" height="140" src="
|
|
207
|
-
this.podcast.imageUrl +
|
|
208
|
-
`" alt="` +
|
|
209
|
-
this.$t('Podcast image') +
|
|
210
|
-
`" style="width: 140px;border-radius: 16px; box-shadow: 0px 12px 48px 6px rgba(64, 163, 114, 0.2);">
|
|
211
|
-
</td>
|
|
212
|
-
<td colspan="2" style="height: 1px;color: #666;font-size: 12px;line-height: 16px;padding-top:15px;">
|
|
213
|
-
<span>` +
|
|
214
|
-
this.date +
|
|
215
|
-
`</span> <span style="padding: 0 10px">` +
|
|
216
|
-
this.$t('Duration', { duration: this.duration }) +
|
|
217
|
-
`</span>
|
|
259
|
+
<img width="140" height="140" src="${this.imageUrl}" style="width: 140px;border-radius: 16px; box-shadow: 0px 12px 48px 6px rgba(64, 163, 114, 0.2);">
|
|
218
260
|
</td>
|
|
261
|
+
${this.durationPodcast}
|
|
219
262
|
</tr>
|
|
220
263
|
<tr>
|
|
221
|
-
<td colspan="2" valign="top" style="line-height:24px;color:
|
|
222
|
-
this.
|
|
223
|
-
`;font-size: 17px;text-transform: uppercase;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width: 400px;padding-top: 0.5em;">
|
|
224
|
-
` +
|
|
225
|
-
this.podcast.title +
|
|
226
|
-
`
|
|
264
|
+
<td colspan="2" valign="top" style="line-height:24px;color: ${this.color};font-size: 17px;text-transform: uppercase;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width: 400px;padding-top: 0.5em;">
|
|
265
|
+
${this.title}
|
|
227
266
|
</td>
|
|
228
267
|
</tr>
|
|
229
|
-
|
|
230
|
-
this.emissionName,
|
|
268
|
+
${this.emissionName},${this.description}`
|
|
231
269
|
];
|
|
232
|
-
if (this.podcast.description) {
|
|
233
|
-
html.push(
|
|
234
|
-
`<tr>
|
|
235
|
-
<td colspan="2" valign="top" style="line-height:24px;font-size: 14px;max-width: 500px;">
|
|
236
|
-
` +
|
|
237
|
-
this.podcast.description +
|
|
238
|
-
`
|
|
239
|
-
</td>
|
|
240
|
-
</tr>`
|
|
241
|
-
);
|
|
242
|
-
}
|
|
243
270
|
html.push(
|
|
244
|
-
|
|
245
|
-
</table>
|
|
271
|
+
`</table>
|
|
246
272
|
<div style="font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;background: #f3f3f3;vertical-align: middle;padding: 15px 10px;display: flex; align-items:center; flex-wrap:wrap">
|
|
247
|
-
<a href="
|
|
248
|
-
|
|
249
|
-
`" aria-label="` +
|
|
250
|
-
this.$t('Listen this episode') +
|
|
251
|
-
`">
|
|
252
|
-
<img width="44" height="44" style="display: inline-block;vertical-align: middle" src="` +
|
|
253
|
-
this.resourcesUrl +
|
|
254
|
-
`/img/play-podcast.png">
|
|
273
|
+
<a href="${this.shareUrl}">
|
|
274
|
+
<img width="44" height="44" style="display: inline-block;vertical-align: middle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAAxElEQVRIie3WMWpCURBG4Q8FSRrtbC2SPhvICmzchVuwtXQLbsE2pVUIkjqQHVgqNmIj6EvxGHhFQAIvcxt/OPVhhrlzh3sKZ4MvTLLFVYNPvJYQB294LiGucMYSw2xxcMQcj9niYIsputni4BvjEuJgjZcS4goXrDDKFgcnLDDIFgd7zNDLFgfvTUHnL23ISJuV7iS3Ooarn1VxkeeUvkDSV2b6J3FQT+pDW8Jb4vRD4Kqe1Kf/Ev4mTj32PhQ6b+9pPT+XHgysHrPM6QAAAABJRU5ErkJggg=="/>
|
|
255
275
|
</a>
|
|
256
|
-
<a style="color: #000;text-decoration: none; margin-right:8px" href="
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
this.$t('Listen this episode') +
|
|
260
|
-
`</a>` + this.articleHtml + `
|
|
261
|
-
</div>
|
|
262
|
-
` +
|
|
263
|
-
this.participantsName
|
|
276
|
+
<a style="color: #000;text-decoration: none; margin-right:8px" href="${this.shareUrl}">${this.shareText}</a>
|
|
277
|
+
${this.articleHtml}
|
|
278
|
+
</div>${this.participantsName}`
|
|
264
279
|
);
|
|
265
280
|
return html.join('');
|
|
266
281
|
},
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
if('fr' === this.$i18n.locale){
|
|
271
|
-
return moment(this.podcast!.pubDate).format('D MMMM YYYY [à] HH[h]mm');
|
|
272
|
-
}
|
|
273
|
-
return moment(this.podcast!.pubDate).format('D MMMM YYYY [at] HH[h]mm');
|
|
274
|
-
}
|
|
275
|
-
return '';
|
|
276
|
-
},
|
|
277
|
-
duration(): string {
|
|
278
|
-
if (this.podcast.duration <= 1) return '';
|
|
279
|
-
if (this.podcast.duration > 600000) {
|
|
280
|
-
return humanizeDuration(this.podcast.duration, {
|
|
281
|
-
language: this.$i18n.locale,
|
|
282
|
-
largest: 1,
|
|
283
|
-
round: true,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
return humanizeDuration(this.podcast.duration, {
|
|
287
|
-
language: this.$i18n.locale,
|
|
288
|
-
largest: 2,
|
|
289
|
-
round: true,
|
|
290
|
-
});
|
|
291
|
-
},
|
|
282
|
+
},
|
|
283
|
+
created(){
|
|
284
|
+
this.initData();
|
|
292
285
|
},
|
|
293
286
|
methods: {
|
|
294
287
|
closePopup(event: { preventDefault: () => void }): void {
|
|
@@ -296,17 +289,53 @@ export default displayMethods.extend({
|
|
|
296
289
|
this.$emit('close');
|
|
297
290
|
},
|
|
298
291
|
getName(person: Participant): string {
|
|
299
|
-
|
|
300
|
-
const last = person.lastName || '';
|
|
301
|
-
return (first + ' ' + last).trim();
|
|
292
|
+
return (`${person.firstName??''} ${person.lastName??''}`).trim();
|
|
302
293
|
},
|
|
303
294
|
selectAll(element: Event): void {
|
|
304
|
-
|
|
305
|
-
(
|
|
295
|
+
const target = element.target;
|
|
296
|
+
if(null!==target){
|
|
297
|
+
(target as HTMLInputElement).focus();
|
|
298
|
+
(target as HTMLInputElement).select();
|
|
299
|
+
}
|
|
306
300
|
},
|
|
307
301
|
afterCopy(): void{
|
|
308
|
-
(this.$refs.snackbar as
|
|
309
|
-
}
|
|
302
|
+
(this.$refs.snackbar as InstanceType<typeof SnackbarVue>).open(this.$t('Data in clipboard'));
|
|
303
|
+
},
|
|
304
|
+
async initData(): Promise<void> {
|
|
305
|
+
let attributes;
|
|
306
|
+
if(this.$store.state.organisation?.attributes && Object.keys(this.$store.state.organisation.attributes).length > 1){
|
|
307
|
+
attributes = this.$store.state.organisation.attributes;
|
|
308
|
+
}else{
|
|
309
|
+
attributes = await octopusApi.fetchData<{[key:string]:string}>(0, 'organisation/attributes/'+state.generalParameters.organisationId);
|
|
310
|
+
}
|
|
311
|
+
if (Object.prototype.hasOwnProperty.call(attributes,'podcastmakerUrl')) {
|
|
312
|
+
this.shareUrl = attributes.podcastmakerUrl + window.location.pathname+window.location.search;
|
|
313
|
+
}
|
|
314
|
+
if(state.generalParameters.podcastmaker && state.generalParameters.podcastmakerColor){
|
|
315
|
+
this.color = state.generalParameters.podcastmakerColor;
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
if (Object.prototype.hasOwnProperty.call(attributes,'COLOR')) {
|
|
319
|
+
this.color = attributes.COLOR;
|
|
320
|
+
}
|
|
321
|
+
},
|
|
310
322
|
},
|
|
311
|
-
})
|
|
323
|
+
})
|
|
312
324
|
</script>
|
|
325
|
+
|
|
326
|
+
<style lang="scss">
|
|
327
|
+
.octopus-app{
|
|
328
|
+
#newsletter-modal {
|
|
329
|
+
textarea {
|
|
330
|
+
border: 2px solid #eee;
|
|
331
|
+
height: 200px;
|
|
332
|
+
padding: 1em;
|
|
333
|
+
border-radius: 1em;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.modal-dialog {
|
|
337
|
+
max-width: 60%;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
</style>
|