@saooti/octopus-sdk 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +261 -0
- package/index.d.ts +4 -0
- package/index.ts +55 -3
- package/package.json +53 -45
- package/public/config.ts +4 -0
- package/public/css/fonts/icomoon.eot +0 -0
- package/public/css/fonts/icomoon.svg +129 -0
- package/public/css/fonts/icomoon.ttf +0 -0
- package/public/css/fonts/icomoon.woff +0 -0
- package/public/css/fonts/style.css +186 -1224
- package/public/img/403.jpeg +0 -0
- package/public/img/404.svg +242 -0
- package/public/img/ACPM.png +0 -0
- package/public/img/ouest_france_logo.svg +12 -0
- package/src/App.vue +102 -31
- package/src/api/classicCrud.ts +34 -0
- package/src/api/initialize.ts +5 -2
- package/src/assets/bootstrap-diff.scss +197 -0
- package/src/assets/form.scss +77 -77
- package/src/assets/general.scss +284 -272
- package/src/assets/live.scss +39 -0
- package/src/assets/modal.scss +43 -50
- package/src/assets/multiselect.scss +522 -573
- package/src/assets/octopus-library.scss +18 -4
- package/src/assets/share.scss +243 -0
- package/src/assets/transition.scss +98 -2
- package/src/components/display/aggregator/RssSection.vue +3 -5
- package/src/components/display/categories/CategoryChooser.vue +151 -114
- package/src/components/display/categories/CategoryFilter.vue +162 -0
- package/src/components/display/categories/CategoryList.vue +149 -117
- package/src/components/display/comments/AddCommentModal.vue +103 -108
- package/src/components/display/comments/CommentBasicView.vue +95 -0
- package/src/components/display/comments/CommentInput.vue +195 -183
- package/src/components/display/comments/CommentItem.vue +170 -208
- package/src/components/display/comments/CommentList.vue +134 -228
- package/src/components/display/comments/CommentParentInfo.vue +28 -62
- package/src/components/display/comments/CommentPlayer.vue +53 -56
- package/src/components/display/comments/CommentSection.vue +52 -83
- package/src/components/display/edit/EditBox.vue +10 -4
- package/src/components/display/edit/EditCommentBox.vue +124 -38
- package/src/components/display/emission/EmissionChooser.vue +88 -108
- package/src/components/display/emission/EmissionInlineList.vue +156 -157
- package/src/components/display/emission/EmissionItem.vue +72 -226
- package/src/components/display/emission/EmissionList.vue +159 -201
- package/src/components/display/emission/EmissionPlayerItem.vue +203 -174
- package/src/components/display/filter/AdvancedSearch.vue +224 -432
- package/src/components/display/filter/CategoryFilter.vue +105 -0
- package/src/components/display/filter/MonetizableFilter.vue +18 -15
- package/src/components/display/filter/ProductorSearch.vue +153 -176
- package/src/components/display/filter/RubriqueChoice.vue +97 -0
- package/src/components/display/filter/RubriqueFilter.vue +232 -0
- package/src/components/display/list/ListPaginate.vue +145 -0
- package/src/components/display/list/Paginate.vue +218 -0
- package/src/components/display/live/CountDown.vue +31 -30
- package/src/components/display/live/LiveHorizontalList.vue +84 -62
- package/src/components/display/live/LiveItem.vue +161 -186
- package/src/components/display/live/LiveList.vue +184 -295
- package/src/components/display/organisation/OrganisationChooser.vue +124 -162
- package/src/components/display/organisation/OrganisationChooserLight.vue +53 -56
- package/src/components/display/participant/ParticipantItem.vue +91 -128
- package/src/components/display/participant/ParticipantList.vue +134 -121
- package/src/components/display/playlist/PlaylistItem.vue +60 -97
- package/src/components/display/playlist/PlaylistList.vue +99 -92
- package/src/components/display/playlist/PodcastList.vue +117 -132
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +191 -0
- package/src/components/display/podcasts/AnimatorsItem.vue +29 -37
- package/src/components/display/podcasts/ParticipantDescription.vue +82 -0
- package/src/components/display/podcasts/PodcastFilterList.vue +49 -102
- package/src/components/display/podcasts/PodcastImage.vue +208 -225
- package/src/components/display/podcasts/PodcastInlineList.vue +62 -355
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +240 -0
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +167 -0
- package/src/components/display/podcasts/PodcastItem.vue +94 -218
- package/src/components/display/podcasts/PodcastItemInfo.vue +166 -0
- package/src/components/display/podcasts/PodcastList.vue +127 -178
- package/src/components/display/podcasts/PodcastModuleBox.vue +234 -0
- package/src/components/display/podcasts/PodcastPlayBar.vue +101 -0
- package/src/components/display/podcasts/PodcastSwiperList.vue +204 -0
- package/src/components/display/podcasts/TagList.vue +60 -38
- package/src/components/display/rubriques/RubriqueChooser.vue +144 -131
- package/src/components/display/rubriques/RubriqueList.vue +216 -0
- package/src/components/display/sharing/PlayerParameters.vue +111 -153
- package/src/components/display/sharing/QrCode.vue +96 -0
- package/src/components/display/sharing/ShareButtons.vue +63 -233
- package/src/components/display/sharing/ShareButtonsIntern.vue +225 -0
- package/src/components/display/sharing/ShareDistribution.vue +102 -166
- package/src/components/display/sharing/SharePlayer.vue +189 -353
- package/src/components/display/sharing/SharePlayerColors.vue +78 -0
- package/src/components/display/sharing/SharePlayerTypes.vue +112 -0
- package/src/components/display/sharing/SplitButton.vue +42 -0
- package/src/components/display/sharing/SubscribeButtons.vue +65 -118
- package/src/components/display/studio/RecordingItemButton.vue +3 -5
- package/src/components/form/ClassicCheckbox.vue +66 -0
- package/src/components/form/ClassicLoading.vue +28 -0
- package/src/components/form/ClassicRadio.vue +66 -0
- package/src/components/form/ClassicSearch.vue +86 -0
- package/src/components/form/ClassicSelect.vue +65 -0
- package/src/components/misc/ErrorMessage.vue +27 -18
- package/src/components/misc/Footer.vue +151 -108
- package/src/components/misc/HomeDropdown.vue +95 -154
- package/src/components/misc/LeftMenu.vue +137 -206
- package/src/components/misc/Popover.vue +118 -0
- package/src/components/misc/Snackbar.vue +73 -37
- package/src/components/misc/TopBar.vue +211 -314
- package/src/components/misc/modal/ClipboardModal.vue +34 -47
- package/src/components/misc/modal/MessageModal.vue +74 -53
- package/src/components/misc/modal/NewsletterModal.vue +272 -224
- package/src/components/misc/modal/QrCodeModal.vue +58 -0
- package/src/components/misc/modal/ShareModalPlayer.vue +140 -74
- package/src/components/misc/player/Player.vue +146 -0
- package/src/components/misc/player/PlayerCompact.vue +154 -0
- package/src/components/misc/player/PlayerLarge.vue +166 -0
- package/src/components/misc/player/PlayerProgressBar.vue +112 -0
- package/src/components/misc/player/PlayerTimeline.vue +61 -0
- package/src/components/mixins/functions.ts +21 -18
- package/src/components/mixins/handle403.ts +17 -0
- package/src/components/mixins/init.ts +24 -0
- package/src/components/mixins/orgaComputed.ts +15 -0
- package/src/components/mixins/organisationFilter.ts +41 -0
- package/src/components/mixins/player/playerComment.ts +98 -0
- package/src/components/mixins/player/playerDisplay.ts +113 -0
- package/src/components/mixins/player/playerLive.ts +111 -0
- package/src/components/mixins/player/playerLogic.ts +225 -0
- package/src/components/mixins/tagOfMixins.ts +19 -0
- package/src/components/pages/Category.vue +24 -28
- package/src/components/pages/Emission.vue +144 -177
- package/src/components/pages/Emissions.vue +94 -110
- package/src/components/pages/Error403Page.vue +60 -0
- package/src/components/pages/Home.vue +74 -21
- package/src/components/pages/Lives.vue +53 -58
- package/src/components/pages/PageNotFound.vue +55 -0
- package/src/components/pages/Participant.vue +113 -129
- package/src/components/pages/Participants.vue +25 -41
- package/src/components/pages/Playlist.vue +86 -86
- package/src/components/pages/Playlists.vue +33 -52
- package/src/components/pages/Podcast.vue +206 -478
- package/src/components/pages/Podcasts.vue +112 -156
- package/src/components/pages/Rubrique.vue +21 -27
- package/src/components/pages/Search.vue +37 -94
- package/src/helper/dom.ts +2 -2
- package/src/helper/duration.ts +18 -8
- package/src/helper/useEventListener.ts +18 -0
- package/src/i18n.ts +36 -0
- package/src/locale/de.ts +309 -0
- package/src/locale/educationen.ts +14 -0
- package/src/locale/en.ts +316 -1
- package/src/locale/es.ts +309 -0
- package/src/locale/fr.ts +47 -15
- package/src/locale/it.ts +307 -0
- package/src/locale/messages.ts +11 -2
- package/src/locale/sl.ts +309 -0
- package/src/main.ts +64 -55
- package/src/router/router.ts +192 -159
- package/src/sass/_variables.scss +10 -8
- package/src/shims-tsx.d.ts +15 -0
- package/src/shims-vue-recaptcha-v3.d.ts +9 -0
- package/src/shims-vue.d.ts +5 -6
- package/src/store/AppStore.ts +41 -173
- package/src/store/class/adserver/adserverConfig.ts +9 -0
- package/src/store/class/adserver/adserverOtherEmission.ts +13 -0
- package/src/store/class/adserver/adserverTiming.ts +10 -0
- package/src/store/class/cartouchier/cartouche.ts +15 -0
- package/src/store/class/cartouchier/cartouchier.ts +9 -0
- package/src/store/class/conference/conference.ts +35 -0
- package/src/store/class/conference/conferenceMessage.ts +10 -0
- package/src/store/class/conference/conferenceParticipant.ts +18 -0
- package/src/store/class/conference/pad.ts +15 -0
- package/src/store/class/conference/studioCall.ts +7 -0
- package/src/store/class/contract/contract.ts +7 -0
- package/src/store/class/contract/contractOrganisation.ts +7 -0
- package/src/store/class/ftp/ftpEmission.ts +41 -0
- package/src/store/class/ftp/ftpParam.ts +12 -0
- package/src/store/class/ftp/testFtpEmission.ts +5 -0
- package/src/store/class/general/audioView.ts +21 -0
- package/src/store/class/general/category.ts +10 -0
- package/src/store/class/general/comment.ts +16 -0
- package/src/store/class/general/customPlayer.ts +9 -0
- package/src/store/class/general/emission.ts +23 -0
- package/src/store/class/general/fetchParam.ts +3 -0
- package/src/store/class/general/initState.ts +25 -0
- package/src/store/class/general/interfacePageable.ts +16 -0
- package/src/store/class/general/ituneCategory.ts +5 -0
- package/src/store/class/general/media.ts +14 -0
- package/src/store/class/general/organisation.ts +20 -0
- package/src/store/class/general/pageable.ts +13 -0
- package/src/store/class/general/participant.ts +12 -0
- package/src/store/class/general/player.ts +14 -0
- package/src/store/class/general/playlist.ts +13 -0
- package/src/store/class/general/podcast.ts +43 -0
- package/src/store/class/general/sortPageable.ts +5 -0
- package/src/store/class/general/soundcastCategory.ts +8 -0
- package/src/store/class/ouestFrance/ofTag.ts +36 -0
- package/src/store/class/ouestFrance/ofTagInfo.ts +9 -0
- package/src/store/class/ouestFrance/ofTagPage.ts +7 -0
- package/src/store/class/ouestFrance/ofTagSeo.ts +7 -0
- package/src/store/class/ouestFrance/ofTagVente.ts +6 -0
- package/src/store/class/ouestFrance/ofTagWithParents.ts +26 -0
- package/src/store/class/rss/aggregator.ts +28 -0
- package/src/store/class/rss/rssEmission.ts +14 -0
- package/src/store/class/rss/rssInfo.ts +8 -0
- package/src/store/class/rubrique/rubriquage.ts +10 -0
- package/src/store/class/rubrique/rubriquageFilter.ts +6 -0
- package/src/store/class/rubrique/rubrique.ts +9 -0
- package/src/store/class/stat/statArrayIncome.ts +6 -0
- package/src/store/class/stat/statArrayObject.ts +34 -0
- package/src/store/class/stat/statGraph.ts +7 -0
- package/src/store/class/user/person.ts +15 -0
- package/src/store/class/user/profile.ts +12 -0
- package/src/store/class/user/userKeycloak.ts +24 -0
- package/src/store/paramStore.ts +222 -217
- package/src/store/typeAppStore.ts +186 -235
- package/src/vuex-shim.d.ts +8 -0
- package/tsconfig.json +4 -0
- package/vue.config.js +16 -0
- package/public/css/fonts/saooti-ui.eot +0 -0
- package/public/css/fonts/saooti-ui.svg +0 -829
- package/public/css/fonts/saooti-ui.ttf +0 -0
- package/public/css/fonts/saooti-ui.woff +0 -0
- package/public/css/fonts/stitcher-logo.svg +0 -83
- package/public/img/ACPM.PNG +0 -0
- package/src/api/comments.ts +0 -7
- package/src/api/emissions.ts +0 -7
- package/src/api/podcasts.ts +0 -7
- package/src/api/profile.ts +0 -8
- package/src/api/studio.ts +0 -1
- package/src/assets/bootstrap_scss/_alert.scss +0 -51
- package/src/assets/bootstrap_scss/_badge.scss +0 -54
- package/src/assets/bootstrap_scss/_breadcrumb.scss +0 -42
- package/src/assets/bootstrap_scss/_button-group.scss +0 -164
- package/src/assets/bootstrap_scss/_buttons.scss +0 -291
- package/src/assets/bootstrap_scss/_card.scss +0 -278
- package/src/assets/bootstrap_scss/_carousel.scss +0 -197
- package/src/assets/bootstrap_scss/_close.scss +0 -41
- package/src/assets/bootstrap_scss/_code.scss +0 -48
- package/src/assets/bootstrap_scss/_custom-forms.scss +0 -522
- package/src/assets/bootstrap_scss/_dropdown.scss +0 -201
- package/src/assets/bootstrap_scss/_forms.scss +0 -352
- package/src/assets/bootstrap_scss/_functions.scss +0 -134
- package/src/assets/bootstrap_scss/_grid.scss +0 -69
- package/src/assets/bootstrap_scss/_images.scss +0 -42
- package/src/assets/bootstrap_scss/_input-group.scss +0 -191
- package/src/assets/bootstrap_scss/_jumbotron.scss +0 -17
- package/src/assets/bootstrap_scss/_list-group.scss +0 -158
- package/src/assets/bootstrap_scss/_media.scss +0 -8
- package/src/assets/bootstrap_scss/_mixins.scss +0 -47
- package/src/assets/bootstrap_scss/_modal.scss +0 -243
- package/src/assets/bootstrap_scss/_nav.scss +0 -120
- package/src/assets/bootstrap_scss/_navbar.scss +0 -324
- package/src/assets/bootstrap_scss/_pagination.scss +0 -74
- package/src/assets/bootstrap_scss/_popover.scss +0 -170
- package/src/assets/bootstrap_scss/_print.scss +0 -141
- package/src/assets/bootstrap_scss/_progress.scss +0 -46
- package/src/assets/bootstrap_scss/_reboot.scss +0 -482
- package/src/assets/bootstrap_scss/_root.scss +0 -20
- package/src/assets/bootstrap_scss/_spinners.scss +0 -55
- package/src/assets/bootstrap_scss/_tables.scss +0 -185
- package/src/assets/bootstrap_scss/_toasts.scss +0 -44
- package/src/assets/bootstrap_scss/_tooltip.scss +0 -115
- package/src/assets/bootstrap_scss/_transitions.scss +0 -20
- package/src/assets/bootstrap_scss/_type.scss +0 -125
- package/src/assets/bootstrap_scss/_utilities.scss +0 -17
- package/src/assets/bootstrap_scss/_variables.scss +0 -1145
- package/src/assets/bootstrap_scss/bootstrap-grid.scss +0 -29
- package/src/assets/bootstrap_scss/bootstrap-reboot.scss +0 -12
- package/src/assets/bootstrap_scss/bootstrap.scss +0 -44
- package/src/assets/bootstrap_scss/mixins/_alert.scss +0 -13
- package/src/assets/bootstrap_scss/mixins/_background-variant.scss +0 -22
- package/src/assets/bootstrap_scss/mixins/_badge.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_border-radius.scss +0 -63
- package/src/assets/bootstrap_scss/mixins/_box-shadow.scss +0 -20
- package/src/assets/bootstrap_scss/mixins/_breakpoints.scss +0 -123
- package/src/assets/bootstrap_scss/mixins/_buttons.scss +0 -110
- package/src/assets/bootstrap_scss/mixins/_caret.scss +0 -62
- package/src/assets/bootstrap_scss/mixins/_clearfix.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_deprecate.scss +0 -10
- package/src/assets/bootstrap_scss/mixins/_float.scss +0 -14
- package/src/assets/bootstrap_scss/mixins/_forms.scss +0 -177
- package/src/assets/bootstrap_scss/mixins/_gradients.scss +0 -45
- package/src/assets/bootstrap_scss/mixins/_grid-framework.scss +0 -71
- package/src/assets/bootstrap_scss/mixins/_grid.scss +0 -69
- package/src/assets/bootstrap_scss/mixins/_hover.scss +0 -37
- package/src/assets/bootstrap_scss/mixins/_image.scss +0 -36
- package/src/assets/bootstrap_scss/mixins/_list-group.scss +0 -21
- package/src/assets/bootstrap_scss/mixins/_lists.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_nav-divider.scss +0 -11
- package/src/assets/bootstrap_scss/mixins/_pagination.scss +0 -22
- package/src/assets/bootstrap_scss/mixins/_reset-text.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_resize.scss +0 -6
- package/src/assets/bootstrap_scss/mixins/_screen-reader.scss +0 -34
- package/src/assets/bootstrap_scss/mixins/_size.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_table-row.scss +0 -39
- package/src/assets/bootstrap_scss/mixins/_text-emphasis.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_text-hide.scss +0 -11
- package/src/assets/bootstrap_scss/mixins/_text-truncate.scss +0 -8
- package/src/assets/bootstrap_scss/mixins/_transition.scss +0 -16
- package/src/assets/bootstrap_scss/mixins/_visibility.scss +0 -8
- package/src/assets/bootstrap_scss/utilities/_align.scss +0 -8
- package/src/assets/bootstrap_scss/utilities/_background.scss +0 -19
- package/src/assets/bootstrap_scss/utilities/_borders.scss +0 -75
- package/src/assets/bootstrap_scss/utilities/_clearfix.scss +0 -3
- package/src/assets/bootstrap_scss/utilities/_display.scss +0 -26
- package/src/assets/bootstrap_scss/utilities/_embed.scss +0 -39
- package/src/assets/bootstrap_scss/utilities/_flex.scss +0 -51
- package/src/assets/bootstrap_scss/utilities/_float.scss +0 -11
- package/src/assets/bootstrap_scss/utilities/_overflow.scss +0 -5
- package/src/assets/bootstrap_scss/utilities/_position.scss +0 -32
- package/src/assets/bootstrap_scss/utilities/_screenreaders.scss +0 -11
- package/src/assets/bootstrap_scss/utilities/_shadows.scss +0 -6
- package/src/assets/bootstrap_scss/utilities/_sizing.scss +0 -20
- package/src/assets/bootstrap_scss/utilities/_spacing.scss +0 -73
- package/src/assets/bootstrap_scss/utilities/_stretched-link.scss +0 -19
- package/src/assets/bootstrap_scss/utilities/_text.scss +0 -72
- package/src/assets/bootstrap_scss/utilities/_visibility.scss +0 -13
- package/src/assets/bootstrap_scss/vendor/_rfs.scss +0 -204
- package/src/components/misc/Player.vue +0 -792
- package/src/shims-vuex.d.ts +0 -7
- package/src/views/Home.vue +0 -18
|
@@ -1,278 +1,124 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<li
|
|
3
|
-
class="mt-3"
|
|
4
|
-
:class="
|
|
5
|
-
lightItems
|
|
6
|
-
? 'noList emission-light-max-size'
|
|
7
|
-
: 'emission-item-container shadow-element'
|
|
8
|
-
"
|
|
9
|
-
v-if="activeEmission || editRight"
|
|
3
|
+
class="mt-3 emission-item-container shadow-element"
|
|
10
4
|
>
|
|
11
5
|
<router-link
|
|
12
6
|
:to="{
|
|
13
7
|
name: 'emission',
|
|
14
8
|
params: { emissionId: emission.emissionId },
|
|
15
|
-
query: { productor:
|
|
9
|
+
query: { productor: filterOrga },
|
|
16
10
|
}"
|
|
17
|
-
:
|
|
18
|
-
class="text-dark"
|
|
11
|
+
:title="$t('Emission')"
|
|
12
|
+
class="d-flex flex-grow-1 text-dark"
|
|
19
13
|
>
|
|
20
|
-
<
|
|
14
|
+
<img
|
|
15
|
+
v-lazy="emission.imageUrl"
|
|
21
16
|
class="img-box"
|
|
22
|
-
:
|
|
23
|
-
|
|
24
|
-
></div>
|
|
25
|
-
<div class="d-flex" v-else>
|
|
26
|
-
<div
|
|
27
|
-
class="img-box-light flex-shrink"
|
|
28
|
-
:style="{ 'background-image': 'url(\'' + emission.imageUrl + '\')' }"
|
|
29
|
-
></div>
|
|
30
|
-
<div class="emission-light-title">{{ name }}</div>
|
|
31
|
-
</div>
|
|
32
|
-
</router-link>
|
|
33
|
-
<div class="emission-item-text" :class="lightItems ? 'p-0' : ''">
|
|
34
|
-
<router-link
|
|
35
|
-
:to="{
|
|
36
|
-
name: 'emission',
|
|
37
|
-
params: { emissionId: emission.emissionId },
|
|
38
|
-
query: { productor: this.$store.state.filter.organisationId },
|
|
39
|
-
}"
|
|
40
|
-
class="text-dark"
|
|
17
|
+
:title="$t('Emission name image', {name:emission.name})"
|
|
18
|
+
:alt="$t('Emission name image', {name:emission.name})"
|
|
41
19
|
>
|
|
42
|
-
|
|
20
|
+
<div class="emission-item-text">
|
|
21
|
+
<div
|
|
22
|
+
class="emission-name"
|
|
23
|
+
>
|
|
43
24
|
<img
|
|
25
|
+
v-if="!activeEmission && !isPodcastmaker && editRight"
|
|
44
26
|
class="icon-caution"
|
|
45
27
|
src="/img/caution.png"
|
|
46
|
-
v-if="!activeEmission && !isPodcastmaker && editRight"
|
|
47
28
|
:title="$t('Emission have not podcasts')"
|
|
48
|
-
|
|
29
|
+
:alt="$t('Emission have not podcasts')"
|
|
30
|
+
>{{ emission.name }}
|
|
49
31
|
</div>
|
|
50
32
|
<div
|
|
51
|
-
|
|
52
|
-
class="emission-description
|
|
53
|
-
:class="lightItems ? 'emission-small-description' : ''"
|
|
33
|
+
ref="descriptionEmissionContainer"
|
|
34
|
+
class="emission-description htms-wysiwyg-content"
|
|
54
35
|
>
|
|
36
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
55
37
|
<div
|
|
56
|
-
|
|
57
|
-
v-html="urlify(description)"
|
|
58
|
-
|
|
38
|
+
ref="descriptionEmission"
|
|
39
|
+
v-html="urlify(emission.description|| '')"
|
|
40
|
+
/>
|
|
41
|
+
<!-- eslint-enable -->
|
|
59
42
|
</div>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
</div>
|
|
43
|
+
<div class="flex-grow-1" />
|
|
44
|
+
<router-link
|
|
45
|
+
v-if="!isPodcastmaker"
|
|
46
|
+
:to="{
|
|
47
|
+
name: 'productor',
|
|
48
|
+
params: { productorId: emission.orga.id },
|
|
49
|
+
query: { productor: filterOrga },
|
|
50
|
+
}"
|
|
51
|
+
>
|
|
52
|
+
<div class="emission-producer">
|
|
53
|
+
© {{ emission.orga.name }}
|
|
54
|
+
</div>
|
|
55
|
+
</router-link>
|
|
56
|
+
</div>
|
|
57
|
+
</router-link>
|
|
76
58
|
</li>
|
|
77
59
|
</template>
|
|
78
60
|
|
|
79
|
-
<style lang="scss">
|
|
80
|
-
.emission-item-container {
|
|
81
|
-
list-style: none;
|
|
82
|
-
background: #fff;
|
|
83
|
-
border-radius: 2rem;
|
|
84
|
-
display: flex;
|
|
85
|
-
width: 100%;
|
|
86
|
-
margin: 1rem 0;
|
|
87
|
-
.img-box {
|
|
88
|
-
border-radius: 2rem !important;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
.emission-light-max-size {
|
|
92
|
-
width: 300px;
|
|
93
|
-
border-bottom: 1px solid #ddd;
|
|
94
|
-
}
|
|
95
|
-
.emission-light-title {
|
|
96
|
-
color: #333 !important;
|
|
97
|
-
align-self: flex-end;
|
|
98
|
-
text-transform: none;
|
|
99
|
-
font-size: 1.5em;
|
|
100
|
-
font-weight: normal;
|
|
101
|
-
white-space: nowrap;
|
|
102
|
-
overflow: hidden;
|
|
103
|
-
text-overflow: ellipsis;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.emission-item-text {
|
|
107
|
-
padding: 1rem;
|
|
108
|
-
display: flex;
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
max-height: 13rem;
|
|
111
|
-
|
|
112
|
-
.emission-name {
|
|
113
|
-
font-size: 0.9rem;
|
|
114
|
-
font-weight: 600;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
display: -webkit-box;
|
|
117
|
-
-webkit-line-clamp: 2;
|
|
118
|
-
-webkit-box-orient: vertical;
|
|
119
|
-
word-break: break-word;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.emission-description {
|
|
123
|
-
overflow: hidden;
|
|
124
|
-
margin-top: 0.5em;
|
|
125
|
-
word-break: break-word;
|
|
126
|
-
max-height: 7rem;
|
|
127
|
-
position: relative;
|
|
128
|
-
&.after-emission-description:after {
|
|
129
|
-
content: '...';
|
|
130
|
-
position: absolute;
|
|
131
|
-
padding-left: 1rem;
|
|
132
|
-
right: 0;
|
|
133
|
-
bottom: 0;
|
|
134
|
-
width: 100%;
|
|
135
|
-
font-size: 1rem;
|
|
136
|
-
font-weight: bolder;
|
|
137
|
-
text-align: center;
|
|
138
|
-
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 40%);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.emission-small-description {
|
|
143
|
-
-webkit-line-clamp: 2;
|
|
144
|
-
border-top: 1px solid #ddd;
|
|
145
|
-
word-break: break-word;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.emission-producer {
|
|
149
|
-
font-weight: 300;
|
|
150
|
-
font-size: 0.6rem;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
button.btn.btn-primary.share-btn.m-3 {
|
|
155
|
-
font-size: 1rem;
|
|
156
|
-
width: 2.5rem;
|
|
157
|
-
height: 2.5rem !important;
|
|
158
|
-
margin: 0 0.8rem 0 0 !important;
|
|
159
|
-
}
|
|
160
|
-
/** PHONES*/
|
|
161
|
-
@media (max-width: 680px) {
|
|
162
|
-
.emission-item-container {
|
|
163
|
-
flex-wrap: wrap;
|
|
164
|
-
width: auto;
|
|
165
|
-
margin: 0;
|
|
166
|
-
padding: 1rem;
|
|
167
|
-
justify-content: center;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@media (max-width: 450px) {
|
|
172
|
-
.emission-item-text {
|
|
173
|
-
padding: 0.5rem 0;
|
|
174
|
-
text-align: center;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
</style>
|
|
178
|
-
|
|
179
61
|
<script lang="ts">
|
|
62
|
+
import { orgaComputed } from '../../mixins/orgaComputed';
|
|
63
|
+
import { Emission } from '@/store/class/general/emission';
|
|
180
64
|
import { state } from '../../../store/paramStore';
|
|
181
|
-
|
|
65
|
+
import octopusApi from '@saooti/octopus-api';
|
|
182
66
|
import { displayMethods } from '../../mixins/functions';
|
|
183
67
|
import { defineComponent } from 'vue'
|
|
68
|
+
import { Podcast } from '@/store/class/general/podcast';
|
|
184
69
|
export default defineComponent({
|
|
185
70
|
name: 'EmissionItem',
|
|
186
71
|
|
|
187
|
-
|
|
188
|
-
emits: ['emissionNotVisible'],
|
|
72
|
+
mixins: [displayMethods, orgaComputed],
|
|
189
73
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
created() {
|
|
193
|
-
this.hasPodcast();
|
|
194
|
-
},
|
|
195
|
-
mounted() {
|
|
196
|
-
let emissionDesc = document.getElementById(
|
|
197
|
-
'description-emission-' + this.emission.emissionId
|
|
198
|
-
);
|
|
199
|
-
let emissionDescContainer:any = document.getElementById(
|
|
200
|
-
'description-emission-container-' + this.emission.emissionId
|
|
201
|
-
);
|
|
202
|
-
if (
|
|
203
|
-
null !== emissionDesc &&
|
|
204
|
-
emissionDesc.clientHeight > emissionDescContainer.clientHeight
|
|
205
|
-
) {
|
|
206
|
-
emissionDescContainer.classList.add('after-emission-description');
|
|
207
|
-
}
|
|
74
|
+
props: {
|
|
75
|
+
emission: { default: ()=>({}), type: Object as ()=> Emission},
|
|
208
76
|
},
|
|
209
77
|
|
|
210
78
|
data() {
|
|
211
79
|
return {
|
|
212
|
-
activeEmission: true,
|
|
80
|
+
activeEmission: true as boolean,
|
|
213
81
|
};
|
|
214
82
|
},
|
|
215
|
-
|
|
83
|
+
|
|
216
84
|
computed: {
|
|
217
|
-
isPodcastmaker() {
|
|
218
|
-
return state.generalParameters.podcastmaker;
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
organisation():string {
|
|
222
|
-
return '' + this.emission.publisher.organisation.name;
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
lightItems() {
|
|
226
|
-
return state.emissionsPage.lightItems;
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
description():string {
|
|
230
|
-
let description;
|
|
231
|
-
description = this.emission.description || '';
|
|
232
|
-
if (state.generalParameters.isIE11)
|
|
233
|
-
return description.substring(0, 50) + '...';
|
|
234
|
-
return description;
|
|
85
|
+
isPodcastmaker(): boolean {
|
|
86
|
+
return (state.generalParameters.podcastmaker as boolean);
|
|
235
87
|
},
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if (state.generalParameters.isIE11)
|
|
239
|
-
return this.emission.name.substring(0, 50) + '...';
|
|
240
|
-
return this.emission.name;
|
|
88
|
+
organisation(): string {
|
|
89
|
+
return this.emission?.publisher?.organisation?.name ?? '';
|
|
241
90
|
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
authenticated():boolean {
|
|
248
|
-
return state.generalParameters.authenticated;
|
|
249
|
-
},
|
|
250
|
-
|
|
251
|
-
editRight() {
|
|
252
|
-
if (
|
|
253
|
-
(this.authenticated && this.organisationId === this.emission.orga.id) ||
|
|
254
|
-
state.generalParameters.isAdmin
|
|
255
|
-
)
|
|
256
|
-
return true;
|
|
257
|
-
return false;
|
|
91
|
+
editRight(): boolean {
|
|
92
|
+
return (true === this.authenticated && this.myOrganisationId === this.emission.orga.id) ||
|
|
93
|
+
true === state.generalParameters.isAdmin
|
|
258
94
|
},
|
|
259
95
|
},
|
|
260
96
|
|
|
97
|
+
created() {
|
|
98
|
+
if(!this.editRight)return;
|
|
99
|
+
this.hasPodcast();
|
|
100
|
+
},
|
|
101
|
+
mounted() {
|
|
102
|
+
const emissionDesc = (this.$refs.descriptionEmission as HTMLElement);
|
|
103
|
+
const emissionDescContainer = (this.$refs.descriptionEmissionContainer as HTMLElement);
|
|
104
|
+
if (
|
|
105
|
+
null !== emissionDesc && null !== emissionDescContainer &&
|
|
106
|
+
emissionDesc.clientHeight > emissionDescContainer.clientHeight
|
|
107
|
+
) {
|
|
108
|
+
emissionDescContainer.classList.add('after-emission-description');
|
|
109
|
+
}
|
|
110
|
+
},
|
|
261
111
|
methods: {
|
|
262
|
-
async hasPodcast() {
|
|
263
|
-
const data = await octopusApi.
|
|
112
|
+
async hasPodcast(): Promise<void> {
|
|
113
|
+
const data = await octopusApi.fetchDataWithParams<{count: number;result:Array<Podcast>;sort: string;}>(0, 'podcast/search',{
|
|
264
114
|
emissionId: this.emission.emissionId,
|
|
265
115
|
first: 0,
|
|
266
116
|
size: 0,
|
|
267
|
-
});
|
|
117
|
+
}, true);
|
|
268
118
|
if (0 === data.count) {
|
|
269
119
|
this.activeEmission = false;
|
|
270
120
|
}
|
|
271
|
-
if (this.editRight || this.activeEmission) {
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
this.$emit('emissionNotVisible');
|
|
275
121
|
},
|
|
276
122
|
},
|
|
277
|
-
})
|
|
278
|
-
</script>
|
|
123
|
+
})
|
|
124
|
+
</script>
|