@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,110 +1,117 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div
|
|
4
|
-
|
|
2
|
+
<div class="page-box">
|
|
3
|
+
<div
|
|
4
|
+
v-if="loaded && !error"
|
|
5
|
+
>
|
|
6
|
+
<h1>{{ $t('Emission') }}</h1>
|
|
5
7
|
<div class="d-flex">
|
|
6
|
-
<div class="d-flex flex-column flex-grow">
|
|
8
|
+
<div class="d-flex flex-column flex-grow-1">
|
|
7
9
|
<EditBox
|
|
10
|
+
v-if="editRight && pageParameters.isEditBox"
|
|
8
11
|
:emission="emission"
|
|
9
|
-
:
|
|
10
|
-
:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
></EditBox>
|
|
12
|
+
:rss-emission="rssEmission"
|
|
13
|
+
:ftp-emission="ftpEmission"
|
|
14
|
+
@isUpdated="getEmissionDetails"
|
|
15
|
+
/>
|
|
14
16
|
<div class="module-box">
|
|
15
|
-
<h2
|
|
16
|
-
|
|
17
|
+
<h2>
|
|
18
|
+
{{ name }}
|
|
19
|
+
</h2>
|
|
17
20
|
<div class="mb-5 mt-3 descriptionText">
|
|
18
21
|
<img
|
|
19
|
-
|
|
22
|
+
v-lazy="imageUrl"
|
|
20
23
|
:alt="$t('Emission name image', { name: name })"
|
|
21
|
-
class="img-box shadow-element float-
|
|
22
|
-
|
|
24
|
+
class="img-box shadow-element float-start me-3 mb-3"
|
|
25
|
+
>
|
|
26
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
27
|
+
<p
|
|
28
|
+
class="html-wysiwyg-content"
|
|
29
|
+
v-html="urlify(description)"
|
|
23
30
|
/>
|
|
24
|
-
|
|
31
|
+
<!-- eslint-enable -->
|
|
25
32
|
</div>
|
|
26
|
-
<ShareButtons
|
|
27
|
-
:emission="emission"
|
|
28
|
-
:bigRound="true"
|
|
29
|
-
v-if="isRssButton"
|
|
30
|
-
></ShareButtons>
|
|
31
33
|
</div>
|
|
32
34
|
<SubscribeButtons
|
|
35
|
+
v-if="pageParameters.isShareButtons && countLink >= 1"
|
|
33
36
|
:emission="emission"
|
|
34
|
-
|
|
35
|
-
></SubscribeButtons>
|
|
37
|
+
/>
|
|
36
38
|
</div>
|
|
37
|
-
<div class="d-flex flex-column
|
|
39
|
+
<div class="d-flex flex-column flex-grow-mobile">
|
|
38
40
|
<SharePlayer
|
|
41
|
+
v-if="pageParameters.isSharePlayer && (authenticated || notExclusive)"
|
|
39
42
|
:emission="emission"
|
|
40
43
|
:exclusive="exclusive"
|
|
41
|
-
:
|
|
42
|
-
:
|
|
43
|
-
:
|
|
44
|
-
|
|
45
|
-
></SharePlayer>
|
|
44
|
+
:not-exclusive="notExclusive"
|
|
45
|
+
:organisation-id="myOrganisationId"
|
|
46
|
+
:is-education="isEducation"
|
|
47
|
+
/>
|
|
46
48
|
<ShareButtons
|
|
49
|
+
v-if="pageParameters.isShareButtons"
|
|
47
50
|
:emission="emission"
|
|
48
|
-
:
|
|
49
|
-
|
|
50
|
-
></ShareButtons>
|
|
51
|
+
:not-exclusive="notExclusive"
|
|
52
|
+
/>
|
|
51
53
|
</div>
|
|
52
54
|
</div>
|
|
53
55
|
<div v-if="editRight">
|
|
54
56
|
<ShareDistribution
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
v-if="pageParameters.isShareDistribution"
|
|
58
|
+
:emission-id="emissionId"
|
|
59
|
+
/>
|
|
58
60
|
</div>
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
:emissionId="emissionId"
|
|
72
|
-
@fetch="fetch"
|
|
73
|
-
v-else
|
|
74
|
-
/>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="d-flex justify-content-center" v-if="!loaded">
|
|
77
|
-
<div class="spinner-border mr-3"></div>
|
|
78
|
-
<h3 class="mt-2">{{ $t('Loading content ...') }}</h3>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="text-center" v-if="error">
|
|
81
|
-
<h3>{{ $t("Emission doesn't exist") }}</h3>
|
|
61
|
+
<template v-if="pageParameters.isDisplayPodcasts">
|
|
62
|
+
<LiveHorizontalList
|
|
63
|
+
v-if="!isPodcastmaker"
|
|
64
|
+
:emission-id="emissionId"
|
|
65
|
+
/>
|
|
66
|
+
<PodcastFilterList
|
|
67
|
+
:emission-id="emissionId"
|
|
68
|
+
:category-filter="false"
|
|
69
|
+
:edit-right="editRight"
|
|
70
|
+
:productor-id="emission.orga.id"
|
|
71
|
+
/>
|
|
72
|
+
</template>
|
|
82
73
|
</div>
|
|
74
|
+
<ClassicLoading
|
|
75
|
+
:loading-text="!loaded?$t('Loading content ...'):undefined"
|
|
76
|
+
:error-text="error?$t(`Emission doesn't exist`):undefined"
|
|
77
|
+
/>
|
|
83
78
|
</div>
|
|
84
79
|
</template>
|
|
85
|
-
|
|
80
|
+
|
|
86
81
|
<script lang="ts">
|
|
87
|
-
|
|
88
|
-
const octopusApi = require('@saooti/octopus-api');
|
|
82
|
+
import octopusApi from '@saooti/octopus-api';
|
|
89
83
|
import { state } from '../../store/paramStore';
|
|
90
84
|
import { displayMethods } from '../mixins/functions';
|
|
91
|
-
import {
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
import { orgaComputed } from '../mixins/orgaComputed';
|
|
86
|
+
import { handle403 } from '../mixins/handle403';
|
|
87
|
+
import { Emission } from '@/store/class/general/emission';
|
|
88
|
+
import ClassicLoading from '../form/ClassicLoading.vue';
|
|
89
|
+
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
90
|
+
import { AxiosError } from 'axios';
|
|
91
|
+
const PodcastFilterList = defineAsyncComponent(() => import('../display/podcasts/PodcastFilterList.vue'));
|
|
92
|
+
const SharePlayer = defineAsyncComponent(() => import('../display/sharing/SharePlayer.vue'));
|
|
93
|
+
const ShareButtons = defineAsyncComponent(() => import('../display/sharing/ShareButtons.vue'));
|
|
94
|
+
const ShareDistribution = defineAsyncComponent(() => import('../display/sharing/ShareDistribution.vue'));
|
|
95
|
+
const EditBox = defineAsyncComponent(() => import('@/components/display/edit/EditBox.vue'));
|
|
96
|
+
const SubscribeButtons = defineAsyncComponent(() => import('../display/sharing/SubscribeButtons.vue'));
|
|
97
|
+
const LiveHorizontalList = defineAsyncComponent(() => import('../display/live/LiveHorizontalList.vue'));
|
|
98
|
+
export default defineComponent({
|
|
94
99
|
components: {
|
|
95
|
-
PodcastFilterList
|
|
96
|
-
SharePlayer
|
|
97
|
-
ShareButtons
|
|
98
|
-
ShareDistribution
|
|
99
|
-
EditBox
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
PodcastFilterList,
|
|
101
|
+
SharePlayer,
|
|
102
|
+
ShareButtons,
|
|
103
|
+
ShareDistribution,
|
|
104
|
+
EditBox,
|
|
105
|
+
SubscribeButtons,
|
|
106
|
+
LiveHorizontalList,
|
|
107
|
+
ClassicLoading
|
|
103
108
|
},
|
|
109
|
+
mixins: [displayMethods, handle403, orgaComputed],
|
|
104
110
|
props: {
|
|
105
|
-
emissionId: { default: undefined
|
|
106
|
-
isEducation: { default: false
|
|
111
|
+
emissionId: { default: undefined, type: Number},
|
|
112
|
+
isEducation: { default: false, type: Boolean},
|
|
107
113
|
},
|
|
114
|
+
emits: ['emissionTitle'],
|
|
108
115
|
|
|
109
116
|
data() {
|
|
110
117
|
return {
|
|
@@ -116,125 +123,92 @@ export default displayMethods.extend({
|
|
|
116
123
|
ftpEmission: false as boolean,
|
|
117
124
|
exclusive: false as boolean,
|
|
118
125
|
notExclusive: false as boolean,
|
|
119
|
-
isReady: true as boolean,
|
|
120
126
|
dummyParam: new Date().getTime().toString() as string,
|
|
121
127
|
fetchLive: true as boolean,
|
|
122
128
|
};
|
|
123
129
|
},
|
|
124
|
-
|
|
125
|
-
mounted() {
|
|
126
|
-
this.getEmissionDetails();
|
|
127
|
-
},
|
|
128
130
|
|
|
129
131
|
computed: {
|
|
130
|
-
|
|
131
|
-
return
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
isShareButtons(): boolean {
|
|
140
|
-
return state.podcastPage.ShareButtons;
|
|
141
|
-
},
|
|
142
|
-
isSharePlayer(): boolean {
|
|
143
|
-
return state.podcastPage.SharePlayer;
|
|
144
|
-
},
|
|
145
|
-
isShareDistribution(): boolean {
|
|
146
|
-
return state.podcastPage.ShareDistribution;
|
|
147
|
-
},
|
|
148
|
-
isOuestFrance(): boolean {
|
|
149
|
-
return state.emissionPage.ouestFranceStyle;
|
|
150
|
-
},
|
|
151
|
-
isRssButton(): boolean {
|
|
152
|
-
return state.emissionPage.rssButton;
|
|
132
|
+
pageParameters(){
|
|
133
|
+
return {
|
|
134
|
+
isEditBox : (state.podcastPage.EditBox as boolean),
|
|
135
|
+
isShareButtons: (state.podcastPage.ShareButtons as boolean),
|
|
136
|
+
isSharePlayer: (state.podcastPage.SharePlayer as boolean),
|
|
137
|
+
isShareDistribution:(state.podcastPage.ShareDistribution as boolean),
|
|
138
|
+
isDisplayPodcasts:(state.emissionPage.isDisplayPodcasts as boolean),
|
|
139
|
+
};
|
|
153
140
|
},
|
|
154
141
|
isPodcastmaker(): boolean {
|
|
155
|
-
return state.generalParameters.podcastmaker;
|
|
142
|
+
return (state.generalParameters.podcastmaker as boolean);
|
|
156
143
|
},
|
|
157
144
|
rssUrl(): string {
|
|
158
|
-
return state.generalParameters.ApiUri
|
|
145
|
+
return `${state.generalParameters.ApiUri}rss/emission/${this.emissionId}`;
|
|
159
146
|
},
|
|
160
147
|
name(): string {
|
|
161
|
-
return this.emission
|
|
148
|
+
return this.emission?.name??'';
|
|
162
149
|
},
|
|
163
150
|
imageUrl(): string {
|
|
164
|
-
return this.emission
|
|
165
|
-
? this.emission.imageUrl + '?dummy=' + this.dummyParam
|
|
166
|
-
: '';
|
|
151
|
+
return this.emission? `${this.emission.imageUrl}?dummy=${this.dummyParam}`:'';
|
|
167
152
|
},
|
|
168
153
|
description(): string {
|
|
169
|
-
return this.emission
|
|
154
|
+
return this.emission?.description??'';
|
|
170
155
|
},
|
|
171
156
|
editRight(): boolean {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
state.generalParameters.isAdmin
|
|
175
|
-
)
|
|
176
|
-
return true;
|
|
177
|
-
return false;
|
|
157
|
+
return (true===this.authenticated && this.myOrganisationId === this.emission?.orga.id) ||
|
|
158
|
+
true===state.generalParameters.isAdmin
|
|
178
159
|
},
|
|
179
160
|
countLink(): number {
|
|
161
|
+
const platformShare = ['amazon','googlePodcasts','applePodcast', 'deezer', 'spotify', 'tunein',
|
|
162
|
+
'radioline', 'podcastAddict', 'playerFm', 'stitcher', 'pocketCasts'];
|
|
180
163
|
let count = 0;
|
|
181
|
-
|
|
182
|
-
if (undefined !== this.emission
|
|
183
|
-
if (undefined !== this.emission.annotations.applePodcast) count++;
|
|
184
|
-
if (undefined !== this.emission.annotations.deezer) count++;
|
|
185
|
-
if (undefined !== this.emission.annotations.spotify) count++;
|
|
186
|
-
if (undefined !== this.emission.annotations.tunein) count++;
|
|
187
|
-
if (undefined !== this.emission.annotations.radioline) count++;
|
|
188
|
-
if (undefined !== this.emission.annotations.podcastAddict) count++;
|
|
189
|
-
if (undefined !== this.emission.annotations.playerFm) count++;
|
|
190
|
-
if (undefined !== this.emission.annotations.stitcher) count++;
|
|
164
|
+
for (let i = 0, len = platformShare.length; i < len; i++) {
|
|
165
|
+
if (undefined !== this.emission?.annotations?.[platformShare[i]]) count++;
|
|
191
166
|
}
|
|
192
167
|
return count;
|
|
193
168
|
},
|
|
194
169
|
},
|
|
170
|
+
watch: {
|
|
171
|
+
emissionId: {
|
|
172
|
+
immediate: true,
|
|
173
|
+
handler() {
|
|
174
|
+
this.getEmissionDetails();
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
195
178
|
methods: {
|
|
179
|
+
initError():void{
|
|
180
|
+
this.error = true;
|
|
181
|
+
this.loaded = true;
|
|
182
|
+
},
|
|
183
|
+
handleAnnotations(){
|
|
184
|
+
if (!this.emission || !this.emission.annotations) return;
|
|
185
|
+
this.rssEmission = this.emission.annotations.RSS? true: false;
|
|
186
|
+
this.ftpEmission = this.emission.annotations.FTP? true: false;
|
|
187
|
+
if (this.emission.annotations.exclusive) {
|
|
188
|
+
this.exclusive ='true' === this.emission.annotations.exclusive;
|
|
189
|
+
this.exclusive =this.exclusive && this.myOrganisationId !== this.emission.orga.id;
|
|
190
|
+
}
|
|
191
|
+
if (this.emission.annotations.notExclusive) {
|
|
192
|
+
this.notExclusive ='true' === this.emission.annotations.notExclusive;
|
|
193
|
+
}
|
|
194
|
+
},
|
|
196
195
|
async getEmissionDetails(): Promise<void> {
|
|
196
|
+
this.loaded = false;
|
|
197
|
+
this.error = false;
|
|
197
198
|
try {
|
|
198
|
-
|
|
199
|
-
this.emission
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
if (!this.emission!.annotations) return;
|
|
203
|
-
if (this.emission!.annotations.RSS) {
|
|
204
|
-
this.rssEmission = true;
|
|
205
|
-
}
|
|
206
|
-
if (this.emission!.annotations.FTP) {
|
|
207
|
-
this.ftpEmission = true;
|
|
208
|
-
}
|
|
209
|
-
if (this.emission!.annotations.exclusive) {
|
|
210
|
-
this.exclusive =
|
|
211
|
-
'true' === this.emission!.annotations.exclusive ? true : false;
|
|
212
|
-
this.exclusive =
|
|
213
|
-
this.exclusive && this.organisationId !== this.emission!.orga.id;
|
|
199
|
+
this.emission = await octopusApi.fetchData<Emission>(0,'emission/'+this.emissionId);
|
|
200
|
+
if("PUBLIC"!==this.emission.orga.privacy && this.filterOrga!==this.emission.orga.id){
|
|
201
|
+
this.initError();
|
|
202
|
+
return;
|
|
214
203
|
}
|
|
215
|
-
|
|
216
|
-
this.notExclusive =
|
|
217
|
-
'true' === this.emission!.annotations.notExclusive ? true : false;
|
|
218
|
-
}
|
|
219
|
-
} catch {
|
|
220
|
-
this.error = true;
|
|
204
|
+
this.$emit('emissionTitle', this.name);
|
|
221
205
|
this.loaded = true;
|
|
206
|
+
this.handleAnnotations();
|
|
207
|
+
} catch(error) {
|
|
208
|
+
this.handle403((error as AxiosError));
|
|
209
|
+
this.initError();
|
|
222
210
|
}
|
|
223
211
|
},
|
|
224
|
-
fetch(/* podcasts */) {
|
|
225
|
-
// Interdire supression si podcast en process
|
|
226
|
-
/* let found = podcasts.find(element => element.processingStatus === 'PLANNED' ||element.processingStatus === 'PROCESSING');
|
|
227
|
-
if(found){
|
|
228
|
-
this.isReady = false;
|
|
229
|
-
} */
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
watch: {
|
|
233
|
-
emissionId(): void {
|
|
234
|
-
this.loaded = false;
|
|
235
|
-
this.error = false;
|
|
236
|
-
this.getEmissionDetails();
|
|
237
|
-
},
|
|
238
212
|
},
|
|
239
|
-
})
|
|
240
|
-
</script>
|
|
213
|
+
})
|
|
214
|
+
</script>
|
|
@@ -1,76 +1,73 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page-box">
|
|
3
|
-
<h1
|
|
4
|
-
<h1 v-else>{{ titlePage }}</h1>
|
|
3
|
+
<h1>{{ titleDisplay }}</h1>
|
|
5
4
|
<ProductorSearch
|
|
6
|
-
|
|
7
|
-
:
|
|
5
|
+
v-if="isProductorSearch"
|
|
6
|
+
v-model:organisationId="organisationId"
|
|
7
|
+
:search-pattern="searchPattern"
|
|
8
8
|
type="emission"
|
|
9
9
|
@updateOrganisationId="updateOrganisationId"
|
|
10
10
|
@updateSearchPattern="updateSearchPattern"
|
|
11
|
-
v-if="isProductorSearch"
|
|
12
11
|
/>
|
|
13
12
|
<AdvancedSearch
|
|
14
|
-
:
|
|
15
|
-
:
|
|
16
|
-
:
|
|
17
|
-
:
|
|
18
|
-
:
|
|
19
|
-
|
|
13
|
+
:is-education="isEducation"
|
|
14
|
+
:reset-rubriquage="resetRubriquage"
|
|
15
|
+
:is-emission="true"
|
|
16
|
+
:is-search-bar="isProductorSearch"
|
|
17
|
+
:sort-criteria="sortEmission"
|
|
18
|
+
:organisation-id="organisationId"
|
|
19
|
+
:include-hidden="includeHidden"
|
|
20
|
+
@updateCategory="iabId = $event"
|
|
20
21
|
@updateRubriquageFilter="updateRubriquageFilter"
|
|
21
|
-
@updateMonetization="
|
|
22
|
-
@updateFromDate="
|
|
23
|
-
@updateToDate="
|
|
24
|
-
@updateSortCriteria="
|
|
25
|
-
@includeHidden="
|
|
26
|
-
:organisationId="organisationId"
|
|
22
|
+
@updateMonetization="monetization = $event"
|
|
23
|
+
@updateFromDate="fromDate = $event"
|
|
24
|
+
@updateToDate="toDate = $event"
|
|
25
|
+
@updateSortCriteria="sortEmission = $event"
|
|
26
|
+
@includeHidden="includeHidden = $event"
|
|
27
27
|
/>
|
|
28
28
|
<EmissionList
|
|
29
|
-
:
|
|
29
|
+
:show-count="true"
|
|
30
30
|
:first="first"
|
|
31
31
|
:size="size"
|
|
32
32
|
:query="searchPattern"
|
|
33
|
-
:
|
|
33
|
+
:organisation-id="organisationId"
|
|
34
34
|
:monetization="monetization"
|
|
35
35
|
:before="toDate"
|
|
36
36
|
:after="fromDate"
|
|
37
37
|
:sort="sortEmission"
|
|
38
|
-
:
|
|
39
|
-
:
|
|
40
|
-
|
|
41
|
-
:
|
|
42
|
-
:
|
|
43
|
-
:noRubriquageId="noRubriquageId"
|
|
38
|
+
:include-hidden="includeHidden"
|
|
39
|
+
:iab-id="iabId"
|
|
40
|
+
:rubrique-id="rubriqueId"
|
|
41
|
+
:rubriquage-id="rubriquageId"
|
|
42
|
+
:no-rubriquage-id="noRubriquageId"
|
|
44
43
|
/>
|
|
45
44
|
</div>
|
|
46
45
|
</template>
|
|
47
|
-
|
|
46
|
+
|
|
48
47
|
<script lang="ts">
|
|
49
|
-
|
|
48
|
+
import { orgaComputed } from '../mixins/orgaComputed';
|
|
50
49
|
import EmissionList from '../display/emission/EmissionList.vue';
|
|
51
50
|
import AdvancedSearch from '../display/filter/AdvancedSearch.vue';
|
|
52
51
|
import { state } from '../../store/paramStore';
|
|
53
|
-
|
|
54
|
-
import
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export default Vue.extend({
|
|
52
|
+
import { RubriquageFilter } from '@/store/class/rubrique/rubriquageFilter';
|
|
53
|
+
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
54
|
+
const ProductorSearch = defineAsyncComponent(() => import('../display/filter/ProductorSearch.vue'));
|
|
55
|
+
export default defineComponent({
|
|
58
56
|
components: {
|
|
59
|
-
ProductorSearch
|
|
57
|
+
ProductorSearch,
|
|
60
58
|
EmissionList,
|
|
61
59
|
AdvancedSearch,
|
|
62
60
|
},
|
|
61
|
+
mixins:[orgaComputed],
|
|
63
62
|
props: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
productor: { default: undefined as string|undefined},
|
|
67
|
-
isEducation: { default: false as boolean},
|
|
63
|
+
productor: { default: undefined, type: String},
|
|
64
|
+
isEducation: { default: false, type: Boolean},
|
|
68
65
|
},
|
|
69
66
|
|
|
70
67
|
data() {
|
|
71
68
|
return {
|
|
72
69
|
first: 0 as number,
|
|
73
|
-
size:
|
|
70
|
+
size: 30 as number,
|
|
74
71
|
searchPattern: '' as string,
|
|
75
72
|
organisationId: undefined as string | undefined,
|
|
76
73
|
monetization: 'UNDEFINED' as string, // UNDEFINED, YES, NO
|
|
@@ -86,59 +83,36 @@ export default Vue.extend({
|
|
|
86
83
|
rubriqueId: [] as Array<number>,
|
|
87
84
|
};
|
|
88
85
|
},
|
|
89
|
-
|
|
90
|
-
created() {
|
|
91
|
-
if (this.firstRoute) {
|
|
92
|
-
this.first = this.firstRoute;
|
|
93
|
-
}
|
|
94
|
-
if (this.sizeRoute) {
|
|
95
|
-
this.size = this.sizeRoute;
|
|
96
|
-
}
|
|
97
|
-
if(this.categoryFilter){
|
|
98
|
-
this.iabId = this.categoryFilter.id;
|
|
99
|
-
}
|
|
100
|
-
if (this.productor) {
|
|
101
|
-
this.organisationId = this.productor;
|
|
102
|
-
} else if (this.$store.state.filter.organisationId) {
|
|
103
|
-
this.organisationId = this.$store.state.filter.organisationId;
|
|
104
|
-
}
|
|
105
|
-
if(this.rubriqueFilter.length){
|
|
106
|
-
this.updateRubriquageFilter(this.rubriqueFilter);
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
86
|
|
|
110
87
|
computed: {
|
|
111
|
-
|
|
112
|
-
return
|
|
88
|
+
titleDisplay(): string{
|
|
89
|
+
return state.emissionsPage.titlePage??this.$t('All emissions');
|
|
113
90
|
},
|
|
114
|
-
|
|
115
|
-
return
|
|
91
|
+
isProductorSearch(): boolean{
|
|
92
|
+
return (state.podcastsPage.ProductorSearch as boolean);
|
|
116
93
|
},
|
|
117
|
-
|
|
118
|
-
return
|
|
94
|
+
organisationRight(): boolean {
|
|
95
|
+
return (true===this.authenticated && this.myOrganisationId === this.organisationId) ||
|
|
96
|
+
true===state.generalParameters.isAdmin
|
|
119
97
|
},
|
|
120
|
-
|
|
121
|
-
return
|
|
122
|
-
},
|
|
123
|
-
titlePage(): string|undefined {
|
|
124
|
-
return state.emissionsPage.titlePage;
|
|
98
|
+
organisation(): string|undefined {
|
|
99
|
+
return this.organisationId??this.filterOrga;
|
|
125
100
|
},
|
|
126
101
|
},
|
|
102
|
+
|
|
103
|
+
created() {
|
|
104
|
+
this.initComponent();
|
|
105
|
+
},
|
|
127
106
|
methods: {
|
|
128
|
-
|
|
129
|
-
this.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
updateFromDate(value: string): void {
|
|
138
|
-
this.fromDate = value;
|
|
139
|
-
},
|
|
140
|
-
updateCategory(value: number|undefined){
|
|
141
|
-
this.iabId = value;
|
|
107
|
+
initComponent(): void{
|
|
108
|
+
this.iabId =this.$store.state.filter.iab?.id;
|
|
109
|
+
this.organisationId = this.productor?? this.filterOrga;
|
|
110
|
+
if (this.organisation && this.organisationRight) {
|
|
111
|
+
this.includeHidden = true;
|
|
112
|
+
}
|
|
113
|
+
if(this.$store.state.filter.rubriqueFilter.length){
|
|
114
|
+
this.updateRubriquageFilter(this.$store.state.filter.rubriqueFilter);
|
|
115
|
+
}
|
|
142
116
|
},
|
|
143
117
|
updateRubriquageFilter(value: Array<RubriquageFilter>){
|
|
144
118
|
const length = value.length;
|
|
@@ -166,16 +140,9 @@ export default Vue.extend({
|
|
|
166
140
|
this.organisationId = value;
|
|
167
141
|
},
|
|
168
142
|
updateSearchPattern(value: string): void {
|
|
169
|
-
|
|
170
|
-
this.sortEmission = 'SCORE';
|
|
171
|
-
} else {
|
|
172
|
-
this.sortEmission = 'LAST_PODCAST_DESC';
|
|
173
|
-
}
|
|
143
|
+
this.sortEmission = '' !== value ? 'SCORE' : 'LAST_PODCAST_DESC';
|
|
174
144
|
this.searchPattern = value;
|
|
175
145
|
},
|
|
176
|
-
updateMonetization(value: string): void {
|
|
177
|
-
this.monetization = value;
|
|
178
|
-
},
|
|
179
146
|
},
|
|
180
|
-
})
|
|
181
|
-
</script>
|
|
147
|
+
})
|
|
148
|
+
</script>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page-box page-box-absolute bg-white justify-content-evenly">
|
|
3
|
+
<div class="not-auth-content d-flex-column justify-content-between">
|
|
4
|
+
<div class="d-flex flex-column justify-content-around">
|
|
5
|
+
<img
|
|
6
|
+
class="logo-octopus"
|
|
7
|
+
src="/img/logo_octopus_final.svg"
|
|
8
|
+
:alt="$t('Logo of main page')"
|
|
9
|
+
>
|
|
10
|
+
<h2>{{ $t('You do not have the right to access this page' ) }}</h2>
|
|
11
|
+
</div>
|
|
12
|
+
<img
|
|
13
|
+
class="stop-octopus-img"
|
|
14
|
+
src="/img/403.jpeg"
|
|
15
|
+
:alt="$t('You do not have the right to access this page')"
|
|
16
|
+
>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<a
|
|
20
|
+
class="btn btn-primary"
|
|
21
|
+
:href="authenticated ?'/sso/logout':'/sso/login'"
|
|
22
|
+
>{{ authText }}</a>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script lang="ts">
|
|
27
|
+
import { state } from '../../store/paramStore';
|
|
28
|
+
import { defineComponent } from 'vue';
|
|
29
|
+
export default defineComponent({
|
|
30
|
+
name: 'Error403Page',
|
|
31
|
+
computed: {
|
|
32
|
+
authenticated(): boolean {
|
|
33
|
+
return (state.generalParameters.authenticated as boolean);
|
|
34
|
+
},
|
|
35
|
+
authText():string{
|
|
36
|
+
return this.authenticated ? this.$t('Logout') : this.$t('Login');
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
mounted() {
|
|
40
|
+
document.title = this.$store.state.general.metaTitle;
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
</script>
|
|
44
|
+
<style lang="scss">
|
|
45
|
+
.octopus-app .not-auth-content{
|
|
46
|
+
@media (max-width: 960px) {
|
|
47
|
+
align-items: center;
|
|
48
|
+
}
|
|
49
|
+
.stop-octopus-img{
|
|
50
|
+
width: 600px;
|
|
51
|
+
height: auto;
|
|
52
|
+
@media (max-width: 1400px) {
|
|
53
|
+
width: 400px;
|
|
54
|
+
}
|
|
55
|
+
@media (max-width: 450px) {
|
|
56
|
+
width: 80%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</style>
|