@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
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
class="myQrCode"
|
|
9
9
|
:margin="2"
|
|
10
10
|
/>
|
|
11
|
+
<ClassicCheckbox
|
|
12
|
+
v-if="'#000000'!==otherColor"
|
|
13
|
+
v-model:textInit="isNotBlack"
|
|
14
|
+
class="flex-shrink-0"
|
|
15
|
+
id-checkbox="is-black-qr-code"
|
|
16
|
+
:label="$t('Use organization color')"
|
|
17
|
+
/>
|
|
11
18
|
<button
|
|
12
19
|
class="btn m-3"
|
|
13
20
|
@click="download"
|
|
@@ -21,63 +28,69 @@
|
|
|
21
28
|
</div>
|
|
22
29
|
</template>
|
|
23
30
|
|
|
24
|
-
|
|
25
|
-
<style lang="scss">
|
|
26
|
-
</style>
|
|
27
31
|
<script lang="ts">
|
|
32
|
+
import ClassicCheckbox from '../../form/ClassicCheckbox.vue';
|
|
28
33
|
import { state } from '../../../store/paramStore';
|
|
29
|
-
import
|
|
34
|
+
import octopusApi from '@saooti/octopus-api';
|
|
30
35
|
import Snackbar from '../../misc/Snackbar.vue';
|
|
31
36
|
import QrcodeVue from 'qrcode.vue'
|
|
32
|
-
import
|
|
33
|
-
|
|
37
|
+
import { defineComponent } from 'vue'
|
|
38
|
+
import SnackbarVue from '../../misc/Snackbar.vue';
|
|
39
|
+
export default defineComponent({
|
|
34
40
|
name: 'QrCode',
|
|
35
|
-
props: {
|
|
36
|
-
url: { default: '' as string},
|
|
37
|
-
},
|
|
38
41
|
|
|
39
42
|
components: {
|
|
40
43
|
Snackbar,
|
|
41
|
-
QrcodeVue
|
|
44
|
+
QrcodeVue,
|
|
45
|
+
ClassicCheckbox
|
|
46
|
+
},
|
|
47
|
+
props: {
|
|
48
|
+
url: { default: '', type: String},
|
|
42
49
|
},
|
|
43
50
|
|
|
44
51
|
data() {
|
|
45
52
|
return {
|
|
46
53
|
size: 200 as number,
|
|
47
|
-
color: "#
|
|
54
|
+
color: "#000000" as string,
|
|
55
|
+
otherColor:"#000000" as string,
|
|
56
|
+
isNotBlack: false as boolean,
|
|
48
57
|
};
|
|
49
58
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
59
|
+
watch:{
|
|
60
|
+
isNotBlack(){
|
|
61
|
+
this.color = this.isNotBlack ? this.otherColor : "#000000";
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
created(){
|
|
65
|
+
this.initColor();
|
|
54
66
|
},
|
|
55
67
|
methods:{
|
|
56
68
|
download(): void{
|
|
57
69
|
const link = document.createElement('a');
|
|
58
70
|
link.download = 'qrcode.png';
|
|
59
71
|
const canvas = document.getElementsByClassName('myQrCode');
|
|
60
|
-
if(canvas && canvas.length > 0 && canvas[0]
|
|
61
|
-
link.href = (canvas[0]
|
|
72
|
+
if(canvas && canvas.length > 0 && canvas[0]){
|
|
73
|
+
link.href = (canvas[0] as HTMLCanvasElement).toDataURL();
|
|
62
74
|
link.click();
|
|
63
|
-
(this.$refs.snackbar as
|
|
75
|
+
(this.$refs.snackbar as InstanceType<typeof SnackbarVue>).open(this.$t('Download started'));
|
|
64
76
|
}
|
|
65
77
|
},
|
|
66
78
|
async initColor(): Promise<void> {
|
|
67
|
-
if
|
|
79
|
+
if(state.generalParameters.podcastmaker && state.generalParameters.podcastmakerColor){
|
|
80
|
+
this.otherColor = state.generalParameters.podcastmakerColor;
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (!state.generalParameters.authenticated) return;
|
|
68
84
|
let data;
|
|
69
|
-
if(this.$store.state.organisation
|
|
85
|
+
if(this.$store.state.organisation?.attributes && Object.keys(this.$store.state.organisation.attributes).length > 1){
|
|
70
86
|
data = this.$store.state.organisation.attributes;
|
|
71
87
|
}else{
|
|
72
|
-
data= await
|
|
73
|
-
this.$store.state,
|
|
74
|
-
state.generalParameters.organisationId
|
|
75
|
-
);
|
|
88
|
+
data= await octopusApi.fetchData<{[key:string]:string}>(0, 'organisation/attributes/'+state.generalParameters.organisationId);
|
|
76
89
|
}
|
|
77
90
|
if (Object.prototype.hasOwnProperty.call(data,'COLOR')) {
|
|
78
|
-
this.
|
|
91
|
+
this.otherColor = data.COLOR;
|
|
79
92
|
}
|
|
80
93
|
},
|
|
81
94
|
}
|
|
82
|
-
})
|
|
83
|
-
</script>
|
|
95
|
+
})
|
|
96
|
+
</script>
|
|
@@ -1,317 +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
|
-
:aria-label="$t('Downloading')"
|
|
45
|
-
>
|
|
46
|
-
<div class="saooti-download-bounty"></div>
|
|
47
|
-
</a>
|
|
48
|
-
<a
|
|
49
|
-
rel="noopener"
|
|
50
|
-
target="_blank"
|
|
51
|
-
:href="facebookURL"
|
|
52
|
-
:class="[
|
|
53
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-facebook share-btn mb-2',
|
|
54
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
55
|
-
]"
|
|
56
|
-
title="Facebook"
|
|
57
|
-
aria-label="Facebook"
|
|
58
|
-
>
|
|
59
|
-
<span class="saooti-facebook-bounty" v-if="!bigRound"></span>
|
|
60
|
-
<div class="saooti-facebook-bounty" v-else></div>
|
|
61
|
-
</a>
|
|
62
|
-
<a
|
|
63
|
-
rel="noopener"
|
|
64
|
-
target="_blank"
|
|
65
|
-
:class="[
|
|
66
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-twitter share-btn mb-2',
|
|
67
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
68
|
-
]"
|
|
69
|
-
:href="twitterURL"
|
|
70
|
-
title="Twitter"
|
|
71
|
-
aria-label="Twitter"
|
|
72
|
-
>
|
|
73
|
-
<span class="saooti-twitter-bounty" v-if="!bigRound"></span>
|
|
74
|
-
<div class="saooti-twitter-bounty" v-else></div>
|
|
75
|
-
</a>
|
|
76
|
-
<a
|
|
77
|
-
rel="noopener"
|
|
78
|
-
target="_blank"
|
|
79
|
-
:class="[
|
|
80
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-linkedin share-btn mb-2',
|
|
81
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
82
|
-
]"
|
|
83
|
-
:href="linkedinURL"
|
|
84
|
-
title="Linkedin"
|
|
85
|
-
aria-label="Linkedin"
|
|
86
|
-
>
|
|
87
|
-
<span class="saooti-linkedin1" v-if="!bigRound"></span>
|
|
88
|
-
<div class="saooti-linkedin1" v-else></div>
|
|
89
|
-
</a>
|
|
90
|
-
<a
|
|
91
|
-
rel="noopener"
|
|
92
|
-
target="_blank"
|
|
93
|
-
:class="[
|
|
94
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-rss share-btn mb-2',
|
|
95
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
96
|
-
]"
|
|
97
|
-
@click.prevent="openPopup()"
|
|
98
|
-
:href="rssUrl"
|
|
99
|
-
:title="$t('Subscribe to this emission')"
|
|
100
|
-
aria-label="RSS"
|
|
101
|
-
v-if="''!==rssUrl"
|
|
102
|
-
>
|
|
103
|
-
<span class="saooti-rss-bounty" v-if="!bigRound"></span>
|
|
104
|
-
<div class="saooti-rss-bounty" v-else></div>
|
|
105
|
-
</a>
|
|
106
|
-
<a
|
|
107
|
-
rel="noopener"
|
|
108
|
-
target="_blank"
|
|
109
|
-
:class="[
|
|
110
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-rss share-btn mb-2',
|
|
111
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
112
|
-
]"
|
|
113
|
-
aria-label="copy"
|
|
114
|
-
:title="$t('Copy this page URL')"
|
|
115
|
-
@click="onCopyCode(urlPage,afterCopy)"
|
|
116
|
-
>
|
|
117
|
-
<span class="saooti-link" v-if="!bigRound"></span>
|
|
118
|
-
<div class="saooti-link" v-else></div>
|
|
119
|
-
</a>
|
|
120
|
-
<a
|
|
121
|
-
rel="noopener"
|
|
122
|
-
target="_blank"
|
|
123
|
-
v-if="podcast"
|
|
124
|
-
:class="[
|
|
125
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-rss share-btn mb-2',
|
|
126
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
127
|
-
]"
|
|
128
|
-
:aria-label="$t('Share newsletter')"
|
|
129
|
-
@click="newsletter = true"
|
|
130
|
-
:title="$t('Share newsletter')"
|
|
131
|
-
>
|
|
132
|
-
<span class="saooti-newsletter" v-if="!bigRound"></span>
|
|
133
|
-
<div class="saooti-newsletter" v-else></div>
|
|
134
|
-
</a>
|
|
135
|
-
<a
|
|
136
|
-
rel="noopener"
|
|
137
|
-
target="_blank"
|
|
138
|
-
v-if="podcast || emission"
|
|
139
|
-
:class="[
|
|
140
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-rss share-btn mb-2',
|
|
141
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
142
|
-
]"
|
|
143
|
-
:aria-label="$t('Share QR Code')"
|
|
144
|
-
@click="qrCode = true"
|
|
145
|
-
:title="$t('Share QR Code')"
|
|
146
|
-
>
|
|
147
|
-
<span class="saooti-qrcode" v-if="!bigRound"></span>
|
|
148
|
-
<div class="saooti-qrcode" v-else></div>
|
|
149
|
-
</a>
|
|
150
|
-
<a
|
|
151
|
-
rel="noopener"
|
|
152
|
-
target="_blank"
|
|
153
|
-
:href="whatsappURL"
|
|
154
|
-
:class="[
|
|
155
|
-
bigRound ? 'btn btn-bigRound' : 'btn btn-whatsapp share-btn mb-2',
|
|
156
|
-
verticalDisplay ? '' : 'mr-2 ml-2',
|
|
157
|
-
]"
|
|
158
|
-
aria-label="Whatsapp"
|
|
159
|
-
title="Whatsapp"
|
|
160
|
-
v-if="isMobile"
|
|
161
|
-
>
|
|
162
|
-
<span class="saooti-Whatsapp" v-if="!bigRound">
|
|
163
|
-
<div class="path1"></div>
|
|
164
|
-
<div class="path2"></div>
|
|
165
|
-
<div class="path3"></div>
|
|
166
|
-
</span>
|
|
167
|
-
<div class="saooti-Whatsapp" v-else>
|
|
168
|
-
<div class="path1"></div>
|
|
169
|
-
<div class="path2"></div>
|
|
170
|
-
<div class="path3"></div>
|
|
171
|
-
</div>
|
|
172
|
-
</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
|
+
/>
|
|
173
49
|
</div>
|
|
174
|
-
<ClipboardModal
|
|
175
|
-
v-if="dataRSSSave"
|
|
176
|
-
:closable="true"
|
|
177
|
-
@close="closeModal()"
|
|
178
|
-
:link="rssUrl"
|
|
179
|
-
:emission="emission"
|
|
180
|
-
:title="$t('RSS Link')"
|
|
181
|
-
/>
|
|
182
|
-
<NewsletterModal
|
|
183
|
-
v-if="newsletter"
|
|
184
|
-
:closable="true"
|
|
185
|
-
:podcast="podcast"
|
|
186
|
-
@close="newsletter = false"
|
|
187
|
-
/>
|
|
188
|
-
<QrCodeModal
|
|
189
|
-
v-if="qrCode"
|
|
190
|
-
:closable="true"
|
|
191
|
-
:podcast="podcast"
|
|
192
|
-
:emission="emission"
|
|
193
|
-
@close="qrCode = false"
|
|
194
|
-
/>
|
|
195
|
-
<Snackbar ref="snackbar" position="bottom-left"></Snackbar>
|
|
196
50
|
</div>
|
|
197
51
|
</template>
|
|
198
52
|
|
|
199
|
-
<style lang="scss">
|
|
200
|
-
.share-button-page {
|
|
201
|
-
.saooti-Whatsapp{
|
|
202
|
-
width: 25px;
|
|
203
|
-
height: 25px;
|
|
204
|
-
}
|
|
205
|
-
@media (max-width: 960px) {
|
|
206
|
-
.flex-column {
|
|
207
|
-
flex-direction: row !important;
|
|
208
|
-
}
|
|
209
|
-
.btn {
|
|
210
|
-
margin-right: 0.5rem;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
@media (max-width: 450px) {
|
|
214
|
-
.flex-column {
|
|
215
|
-
flex-direction: row !important;
|
|
216
|
-
flex-wrap: wrap;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
</style>
|
|
221
|
-
|
|
222
53
|
<script lang="ts">
|
|
223
|
-
import { Emission } from '@/store/class/emission';
|
|
224
|
-
import { Podcast } from '@/store/class/podcast';
|
|
54
|
+
import { Emission } from '@/store/class/general/emission';
|
|
55
|
+
import { Podcast } from '@/store/class/general/podcast';
|
|
225
56
|
import { state } from '../../../store/paramStore';
|
|
226
|
-
import Snackbar from '../../misc/Snackbar.vue';
|
|
227
57
|
import { displayMethods } from '../../mixins/functions';
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
organisationId: { default: undefined as string|undefined},
|
|
234
|
-
bigRound: { default: false as boolean},
|
|
235
|
-
audioUrl: { default: undefined as string|undefined},
|
|
236
|
-
notExclusive: { default: true as boolean},
|
|
237
|
-
},
|
|
238
|
-
|
|
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';
|
|
62
|
+
export default defineComponent({
|
|
239
63
|
components: {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
QrCodeModal: () => import('../../misc/modal/QrCodeModal.vue'),
|
|
243
|
-
Snackbar,
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
data() {
|
|
247
|
-
return {
|
|
248
|
-
facebookURL: `https://www.facebook.com/sharer/sharer.php?u=${window.location.href}` as string,
|
|
249
|
-
twitterURL: `https://twitter.com/intent/tweet?text=${window.location.href}` as string,
|
|
250
|
-
linkedinURL: `https://www.linkedin.com/sharing/share-offsite/?url=${window.location.href}` as string,
|
|
251
|
-
whatsappURL: `whatsapp://send?text=${window.location.href}` as string,
|
|
252
|
-
dataRSSSave: false as boolean,
|
|
253
|
-
newsletter: false as boolean,
|
|
254
|
-
isMobile: false as boolean,
|
|
255
|
-
qrCode: false as boolean
|
|
256
|
-
};
|
|
64
|
+
ShareButtonsIntern,
|
|
65
|
+
Popover,
|
|
257
66
|
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
67
|
+
mixins: [displayMethods],
|
|
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},
|
|
261
75
|
},
|
|
262
|
-
|
|
263
76
|
computed: {
|
|
264
|
-
urlPage(): string{
|
|
265
|
-
return window.location.href;
|
|
266
|
-
},
|
|
267
|
-
verticalDisplay(): boolean {
|
|
268
|
-
return (
|
|
269
|
-
!this.authenticated &&
|
|
270
|
-
!this.participantId &&
|
|
271
|
-
!this.organisationId &&
|
|
272
|
-
!this.notExclusive
|
|
273
|
-
);
|
|
274
|
-
},
|
|
275
77
|
authenticated(): boolean {
|
|
276
|
-
return state.generalParameters.authenticated;
|
|
277
|
-
},
|
|
278
|
-
rssUrl(): string {
|
|
279
|
-
if (this.emission)
|
|
280
|
-
return (
|
|
281
|
-
state.generalParameters.ApiUri +
|
|
282
|
-
'rss/emission/' +
|
|
283
|
-
this.emission.emissionId + '.rss'
|
|
284
|
-
);
|
|
285
|
-
if (this.organisationId)
|
|
286
|
-
return (
|
|
287
|
-
state.generalParameters.ApiUri +
|
|
288
|
-
'rss/productor/' +
|
|
289
|
-
this.organisationId + '.rss'
|
|
290
|
-
);
|
|
291
|
-
if (this.participantId)
|
|
292
|
-
return (
|
|
293
|
-
state.generalParameters.ApiUri +
|
|
294
|
-
'rss/participant/' +
|
|
295
|
-
this.participantId + '.rss'
|
|
296
|
-
);
|
|
297
|
-
return '';
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
methods: {
|
|
301
|
-
openPopup(): void {
|
|
302
|
-
this.dataRSSSave = !this.dataRSSSave;
|
|
303
|
-
},
|
|
304
|
-
closeModal(): void {
|
|
305
|
-
this.dataRSSSave = false;
|
|
306
|
-
},
|
|
307
|
-
afterCopy(): void{
|
|
308
|
-
(this.$refs.snackbar as any).open(this.$t('Link in clipboard'));
|
|
78
|
+
return (state.generalParameters.authenticated as boolean);
|
|
309
79
|
},
|
|
310
|
-
checkIfDeviceMobile(): boolean{
|
|
311
|
-
let check = false;
|
|
312
|
-
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent);
|
|
313
|
-
return check;
|
|
314
|
-
}
|
|
315
80
|
},
|
|
316
|
-
})
|
|
81
|
+
})
|
|
317
82
|
</script>
|