@saooti/octopus-sdk 37.0.5 → 37.0.7
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 +2 -2
- package/index.html +1 -0
- package/index.ts +21 -21
- package/package.json +26 -20
- package/public/css/fonts/icomoon.eot +0 -0
- package/public/css/fonts/icomoon.svg +1 -1
- package/public/css/fonts/icomoon.ttf +0 -0
- package/public/css/fonts/icomoon.woff +0 -0
- package/public/css/fonts/montserrat/Montserrat-Black.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-BlackItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Bold.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-BoldItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ExtraBold.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ExtraBoldItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ExtraLight.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ExtraLightItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Italic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Light.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-LightItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Medium.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-MediumItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Regular.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-SemiBold.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-SemiBoldItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Thin.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ThinItalic.ttf +0 -0
- package/public/css/fonts/montserrat/style.css +28 -0
- package/public/css/fonts/style.css +5 -5
- package/src/App.vue +69 -60
- package/src/api/classicCrud.ts +12 -12
- package/src/api/initialize.ts +1 -1
- package/src/assets/bootstrap.scss +9 -0
- package/src/assets/general.scss +1 -1
- package/src/assets/share.scss +1 -1
- package/src/components/display/aggregator/RssSection.vue +3 -3
- package/src/components/display/categories/CategoryChooser.vue +73 -60
- package/src/components/display/categories/CategoryFilter.vue +134 -90
- package/src/components/display/categories/CategoryList.vue +76 -62
- package/src/components/display/comments/AddCommentModal.vue +44 -44
- package/src/components/display/comments/CommentBasicView.vue +38 -30
- package/src/components/display/comments/CommentInput.vue +122 -110
- package/src/components/display/comments/CommentItem.vue +144 -102
- package/src/components/display/comments/CommentList.vue +117 -85
- package/src/components/display/comments/CommentParentInfo.vue +18 -15
- package/src/components/display/comments/CommentPlayer.vue +39 -41
- package/src/components/display/comments/CommentSection.vue +68 -53
- package/src/components/display/edit/EditBox.vue +7 -7
- package/src/components/display/edit/EditBoxRadio.vue +3 -4
- package/src/components/display/edit/EditCommentBox.vue +34 -36
- package/src/components/display/emission/EmissionInlineList.vue +75 -63
- package/src/components/display/emission/EmissionItem.vue +47 -35
- package/src/components/display/emission/EmissionList.vue +111 -83
- package/src/components/display/emission/EmissionPlayerItem.vue +89 -89
- package/src/components/display/filter/AdvancedSearch.vue +81 -73
- package/src/components/display/filter/CategorySearchFilter.vue +27 -25
- package/src/components/display/filter/DateFilter.vue +38 -38
- package/src/components/display/filter/MonetizableFilter.vue +16 -14
- package/src/components/display/filter/ProductorSearch.vue +55 -47
- package/src/components/display/filter/RubriqueChoice.vue +42 -27
- package/src/components/display/filter/RubriqueFilter.vue +130 -85
- package/src/components/display/filter/SearchOrder.vue +16 -11
- package/src/components/display/list/ListPaginate.vue +72 -70
- package/src/components/display/list/PaginateParams.vue +29 -30
- package/src/components/display/list/PaginateSection.vue +210 -0
- package/src/components/display/list/SwiperList.vue +28 -32
- package/src/components/display/live/CountDown.vue +12 -14
- package/src/components/display/live/LiveHorizontalList.vue +60 -50
- package/src/components/display/live/LiveItem.vue +42 -26
- package/src/components/display/live/LiveList.vue +92 -65
- package/src/components/display/live/RadioCurrently.vue +47 -42
- package/src/components/display/live/RadioImage.vue +40 -42
- package/src/components/display/live/RadioItem.vue +15 -22
- package/src/components/display/live/RadioList.vue +24 -21
- package/src/components/display/live/RadioPlanning.vue +105 -68
- package/src/components/display/organisation/OrganisationChooser.vue +58 -42
- package/src/components/display/organisation/OrganisationChooserLight.vue +27 -19
- package/src/components/display/participant/ParticipantItem.vue +89 -76
- package/src/components/display/participant/ParticipantList.vue +90 -60
- package/src/components/display/playlist/PlaylistItem.vue +32 -35
- package/src/components/display/playlist/PlaylistList.vue +70 -52
- package/src/components/display/playlist/PodcastList.vue +61 -50
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +47 -38
- package/src/components/display/podcasts/AnimatorsItem.vue +17 -15
- package/src/components/display/podcasts/ParticipantDescription.vue +21 -22
- package/src/components/display/podcasts/PodcastFilterList.vue +28 -26
- package/src/components/display/podcasts/PodcastImage.vue +129 -138
- package/src/components/display/podcasts/PodcastInlineList.vue +33 -29
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +91 -71
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +94 -85
- package/src/components/display/podcasts/PodcastItem.vue +96 -90
- package/src/components/display/podcasts/PodcastItemInfo.vue +63 -65
- package/src/components/display/podcasts/PodcastList.vue +115 -84
- package/src/components/display/podcasts/PodcastModuleBox.vue +95 -104
- package/src/components/display/podcasts/PodcastPlayBar.vue +45 -32
- package/src/components/display/podcasts/PodcastSwiperList.vue +65 -55
- package/src/components/display/podcasts/TagList.vue +33 -37
- package/src/components/display/rubriques/RubriqueChooser.vue +70 -51
- package/src/components/display/rubriques/RubriqueList.vue +117 -89
- package/src/components/display/sharing/PlayerParameters.vue +45 -42
- package/src/components/display/sharing/QrCode.vue +52 -46
- package/src/components/display/sharing/ShareButtons.vue +25 -27
- package/src/components/display/sharing/ShareButtonsIntern.vue +182 -155
- package/src/components/display/sharing/ShareDistribution.vue +101 -67
- package/src/components/display/sharing/SharePlayer.vue +207 -127
- package/src/components/display/sharing/SharePlayerColors.vue +15 -15
- package/src/components/display/sharing/SharePlayerRadio.vue +62 -39
- package/src/components/display/sharing/SharePlayerTypes.vue +93 -55
- package/src/components/display/sharing/SubscribeButtons.vue +83 -32
- package/src/components/display/studio/RecordingItemButton.vue +3 -3
- package/src/components/form/ClassicCheckbox.vue +32 -31
- package/src/components/form/ClassicDatePicker.vue +47 -49
- package/src/components/form/ClassicInputText.vue +99 -98
- package/src/components/form/ClassicLoading.vue +11 -14
- package/src/components/form/ClassicMultiselect.vue +125 -126
- package/src/components/form/ClassicRadio.vue +15 -18
- package/src/components/form/ClassicSearch.vue +17 -23
- package/src/components/form/ClassicSelect.vue +35 -27
- package/src/components/form/{Wysiwyg.vue → ClassicWysiwyg.vue} +94 -109
- package/src/components/misc/AcpmImage.vue +26 -0
- package/src/components/misc/ClassicAccordion.vue +69 -0
- package/src/components/misc/ClassicNav.vue +117 -0
- package/src/components/misc/ClassicPopover.vue +212 -0
- package/src/components/misc/{Spinner.vue → ClassicSpinner.vue} +14 -15
- package/src/components/misc/ErrorMessage.vue +9 -17
- package/src/components/misc/FooterSection.vue +198 -0
- package/src/components/misc/HomeDropdown.vue +67 -64
- package/src/components/misc/LeftMenu.vue +115 -79
- package/src/components/misc/ProgressBar.vue +36 -32
- package/src/components/misc/SnackBar.vue +169 -0
- package/src/components/misc/TopBar.vue +161 -115
- package/src/components/misc/modal/ClassicModal.vue +99 -103
- package/src/components/misc/modal/ClipboardModal.vue +21 -23
- package/src/components/misc/modal/MessageModal.vue +22 -28
- package/src/components/misc/modal/NewsletterModal.vue +139 -113
- package/src/components/misc/modal/QrCodeModal.vue +14 -17
- package/src/components/misc/modal/ShareModalPlayer.vue +44 -60
- package/src/components/misc/player/PlayerCompact.vue +47 -62
- package/src/components/misc/player/{Player.vue → PlayerComponent.vue} +54 -46
- package/src/components/misc/player/PlayerLarge.vue +66 -62
- package/src/components/misc/player/PlayerProgressBar.vue +40 -30
- package/src/components/misc/player/PlayerTimeline.vue +32 -36
- package/src/components/misc/player/radio/RadioHistory.vue +62 -59
- package/src/components/misc/player/radio/RadioProgressBar.vue +44 -35
- package/src/components/mixins/cookies.ts +11 -10
- package/src/components/mixins/displayMethods.ts +5 -4
- package/src/components/mixins/handle403.ts +9 -9
- package/src/components/mixins/imageProxy.ts +14 -7
- package/src/components/mixins/init.ts +31 -16
- package/src/components/mixins/orgaComputed.ts +7 -7
- package/src/components/mixins/organisationFilter.ts +36 -22
- package/src/components/mixins/player/playerComment.ts +46 -37
- package/src/components/mixins/player/playerDisplay.ts +122 -87
- package/src/components/mixins/player/playerLive.ts +65 -43
- package/src/components/mixins/player/playerLogic.ts +133 -88
- package/src/components/mixins/player/playerTranscript.ts +48 -30
- package/src/components/mixins/radio/fetchRadioData.ts +40 -23
- package/src/components/mixins/selenium.ts +2 -2
- package/src/components/mixins/tagOfMixins.ts +11 -11
- package/src/components/pages/CategoryPage.vue +43 -0
- package/src/components/pages/{Emission.vue → EmissionPage.vue} +98 -67
- package/src/components/pages/{Emissions.vue → EmissionsPage.vue} +51 -44
- package/src/components/pages/Error403Page.vue +20 -19
- package/src/components/pages/HomePage.vue +144 -0
- package/src/components/pages/LivesPage.vue +66 -0
- package/src/components/pages/PageNotFound.vue +33 -22
- package/src/components/pages/{Participant.vue → ParticipantPage.vue} +63 -49
- package/src/components/pages/{Participants.vue → ParticipantsPage.vue} +9 -9
- package/src/components/pages/PlaylistPage.vue +175 -0
- package/src/components/pages/{Playlists.vue → PlaylistsPage.vue} +16 -14
- package/src/components/pages/PodcastPage.vue +365 -0
- package/src/components/pages/PodcastsPage.vue +152 -0
- package/src/components/pages/RadioPage.vue +131 -0
- package/src/components/pages/RubriquePage.vue +45 -0
- package/src/components/pages/{Search.vue → SearchPage.vue} +19 -19
- package/src/helper/dom.ts +1 -1
- package/src/helper/duration.ts +10 -4
- package/src/helper/useEventListener.ts +7 -8
- package/src/i18n.ts +31 -30
- package/src/locale/de.ts +263 -257
- package/src/locale/educationen.ts +13 -13
- package/src/locale/educationfr.ts +1 -1
- package/src/locale/en.ts +323 -324
- package/src/locale/es.ts +325 -318
- package/src/locale/fr.ts +330 -324
- package/src/locale/it.ts +332 -328
- package/src/locale/messages.ts +9 -9
- package/src/locale/sl.ts +315 -319
- package/src/main.ts +28 -31
- package/src/router/router.ts +218 -198
- package/src/shims-tsx.d.ts +1 -1
- package/src/shims-vue.d.ts +1 -1
- package/src/stores/ApiStore.ts +44 -44
- package/src/stores/AuthStore.ts +24 -16
- package/src/stores/CommentStore.ts +13 -11
- package/src/stores/FilterStore.ts +25 -15
- package/src/stores/GeneralStore.ts +15 -15
- package/src/stores/ParamSdkStore.ts +179 -137
- package/src/stores/PlayerStore.ts +139 -125
- package/src/stores/class/adserver/adserverConfig.ts +1 -1
- package/src/stores/class/adserver/adserverOtherEmission.ts +9 -9
- package/src/stores/class/cartouchier/cartouche.ts +4 -4
- package/src/stores/class/cartouchier/cartouchier.ts +2 -2
- package/src/stores/class/conference/conference.ts +10 -9
- package/src/stores/class/conference/conferenceMessage.ts +2 -2
- package/src/stores/class/conference/conferenceParticipant.ts +1 -1
- package/src/stores/class/conference/studioCall.ts +6 -6
- package/src/stores/class/contract/contractOrganisation.ts +5 -5
- package/src/stores/class/ftp/ftpEmission.ts +9 -9
- package/src/stores/class/ftp/testFtpEmission.ts +4 -4
- package/src/stores/class/general/audioView.ts +19 -19
- package/src/stores/class/general/category.ts +1 -1
- package/src/stores/class/general/classicSelectType.ts +2 -3
- package/src/stores/class/general/customPlayer.ts +8 -8
- package/src/stores/class/general/emission.ts +20 -21
- package/src/stores/class/general/fetchParam.ts +8 -2
- package/src/stores/class/general/initState.ts +31 -31
- package/src/stores/class/general/interfacePageable.ts +13 -13
- package/src/stores/class/general/ituneCategory.ts +4 -4
- package/src/stores/class/general/listReturn.ts +12 -12
- package/src/stores/class/general/media.ts +7 -7
- package/src/stores/class/general/organisation.ts +9 -10
- package/src/stores/class/general/pageable.ts +10 -10
- package/src/stores/class/general/participant.ts +7 -7
- package/src/stores/class/general/player.ts +30 -28
- package/src/stores/class/general/playlist.ts +17 -19
- package/src/stores/class/general/podcast.ts +19 -19
- package/src/stores/class/general/sortPageable.ts +4 -4
- package/src/stores/class/general/soundcastCategory.ts +7 -7
- package/src/stores/class/ouestFrance/ofTag.ts +34 -34
- package/src/stores/class/ouestFrance/ofTagInfo.ts +9 -9
- package/src/stores/class/ouestFrance/ofTagPage.ts +7 -7
- package/src/stores/class/ouestFrance/ofTagSeo.ts +7 -7
- package/src/stores/class/ouestFrance/ofTagVente.ts +6 -6
- package/src/stores/class/ouestFrance/ofTagWithParents.ts +20 -20
- package/src/stores/class/radio/canal.ts +4 -4
- package/src/stores/class/radio/live.ts +6 -6
- package/src/stores/class/radio/mix.ts +16 -16
- package/src/stores/class/radio/playlistMedia.ts +7 -7
- package/src/stores/class/radio/recurrence.ts +54 -54
- package/src/stores/class/rss/rssEmission.ts +13 -13
- package/src/stores/class/rss/rssInfo.ts +7 -7
- package/src/stores/class/rubrique/rubriquage.ts +2 -2
- package/src/stores/class/rubrique/rubrique.ts +1 -1
- package/src/stores/class/stat/statArrayIncome.ts +5 -5
- package/src/stores/class/stat/statArrayObject.ts +26 -26
- package/src/stores/class/stat/statGraph.ts +6 -6
- package/src/stores/class/user/person.ts +4 -2
- package/src/stores/class/user/profile.ts +4 -2
- package/src/stores/class/user/userKeycloak.ts +4 -5
- package/src/components/display/list/Paginate.vue +0 -181
- package/src/components/misc/Accordion.vue +0 -78
- package/src/components/misc/Footer.vue +0 -165
- package/src/components/misc/Nav.vue +0 -119
- package/src/components/misc/Popover.vue +0 -193
- package/src/components/misc/Snackbar.vue +0 -168
- package/src/components/pages/Category.vue +0 -41
- package/src/components/pages/Home.vue +0 -125
- package/src/components/pages/Lives.vue +0 -64
- package/src/components/pages/Playlist.vue +0 -164
- package/src/components/pages/Podcast.vue +0 -307
- package/src/components/pages/Podcasts.vue +0 -146
- package/src/components/pages/Radio.vue +0 -122
- package/src/components/pages/Rubrique.vue +0 -42
|
@@ -1,41 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="podcast-item-container"
|
|
4
|
-
:class="[
|
|
5
|
-
podcastBorderBottom ? 'border-bottom' : '',
|
|
6
|
-
]"
|
|
4
|
+
:class="[podcastBorderBottom ? 'border-bottom' : '']"
|
|
7
5
|
:data-pubdate="displayDate"
|
|
8
6
|
:data-count="podcast.downloadCount"
|
|
9
7
|
>
|
|
10
8
|
<PodcastImage
|
|
11
9
|
:podcast="podcast"
|
|
12
|
-
:hide-play="
|
|
13
|
-
|
|
10
|
+
:hide-play="
|
|
11
|
+
!podcastItemDescription ||
|
|
12
|
+
(podcastItemDescription && (!hoverDesc || !description))
|
|
13
|
+
"
|
|
14
|
+
:display-description="0 !== description.length && podcastItemDescription"
|
|
14
15
|
:arrow-direction="arrowDirection"
|
|
15
16
|
:fetch-conference="fetchConference"
|
|
16
|
-
@
|
|
17
|
-
@
|
|
17
|
+
@hide-description="hideDescription"
|
|
18
|
+
@show-description="showDescription"
|
|
18
19
|
/>
|
|
19
20
|
<div
|
|
20
21
|
v-if="podcastItemDescription && hoverDesc"
|
|
21
22
|
ref="descriptionPodcastContainer"
|
|
22
23
|
class="description-podcast-item html-wysiwyg-content"
|
|
23
24
|
:class="[
|
|
24
|
-
hoverDesc && ''!==description ? 'visible' : 'invisible',
|
|
25
|
+
hoverDesc && '' !== description ? 'visible' : 'invisible',
|
|
25
26
|
isDescriptionBig ? 'after-podcast-description' : '',
|
|
26
27
|
]"
|
|
27
28
|
>
|
|
28
29
|
<!-- eslint-disable vue/no-v-html -->
|
|
29
|
-
<div
|
|
30
|
-
|
|
31
|
-
v-html="description"
|
|
32
|
-
/>
|
|
33
|
-
<!-- eslint-enable -->
|
|
30
|
+
<div ref="descriptionPodcast" v-html="description" />
|
|
31
|
+
<!-- eslint-enable -->
|
|
34
32
|
</div>
|
|
35
|
-
<div
|
|
36
|
-
@mouseenter="showDescription"
|
|
37
|
-
@mouseleave="hideDescription"
|
|
38
|
-
>
|
|
33
|
+
<div @mouseenter="showDescription" @mouseleave="hideDescription">
|
|
39
34
|
<PodcastItemInfo
|
|
40
35
|
:podcast-id="podcast.podcastId"
|
|
41
36
|
:title="podcast.title"
|
|
@@ -50,129 +45,140 @@
|
|
|
50
45
|
</template>
|
|
51
46
|
|
|
52
47
|
<script lang="ts">
|
|
53
|
-
import PodcastItemInfo from
|
|
54
|
-
import PodcastImage from
|
|
55
|
-
import { state } from
|
|
56
|
-
import dayjs from
|
|
57
|
-
import { Podcast } from
|
|
58
|
-
import { defineComponent } from
|
|
59
|
-
import { Conference } from
|
|
48
|
+
import PodcastItemInfo from "./PodcastItemInfo.vue";
|
|
49
|
+
import PodcastImage from "./PodcastImage.vue";
|
|
50
|
+
import { state } from "../../../stores/ParamSdkStore";
|
|
51
|
+
import dayjs from "dayjs";
|
|
52
|
+
import { Podcast } from "@/stores/class/general/podcast";
|
|
53
|
+
import { defineComponent } from "vue";
|
|
54
|
+
import { Conference } from "@/stores/class/conference/conference";
|
|
60
55
|
export default defineComponent({
|
|
61
|
-
name:
|
|
62
|
-
|
|
56
|
+
name: "PodcastItem",
|
|
57
|
+
|
|
63
58
|
components: {
|
|
64
59
|
PodcastItemInfo,
|
|
65
60
|
PodcastImage,
|
|
66
61
|
},
|
|
67
62
|
|
|
68
63
|
props: {
|
|
69
|
-
podcast: { default: ()=>({}), type: Object as ()=> Podcast},
|
|
70
|
-
fetchConference: { default: undefined, type: Object as ()=>Conference},
|
|
64
|
+
podcast: { default: () => ({}), type: Object as () => Podcast },
|
|
65
|
+
fetchConference: { default: undefined, type: Object as () => Conference },
|
|
71
66
|
},
|
|
72
67
|
|
|
73
68
|
data() {
|
|
74
69
|
return {
|
|
75
|
-
firstDisplayDesc
|
|
70
|
+
firstDisplayDesc: false as boolean,
|
|
76
71
|
hoverDesc: false as boolean,
|
|
77
|
-
arrowDirection:
|
|
72
|
+
arrowDirection: "up" as string,
|
|
78
73
|
isDescriptionBig: false as boolean,
|
|
79
74
|
};
|
|
80
75
|
},
|
|
81
76
|
|
|
82
77
|
computed: {
|
|
83
78
|
podcastBorderBottom(): boolean {
|
|
84
|
-
return
|
|
79
|
+
return state.podcastsPage.podcastBorderBottom as boolean;
|
|
85
80
|
},
|
|
86
81
|
podcastItemDescription(): boolean {
|
|
87
|
-
return
|
|
82
|
+
return state.podcastPage.podcastItemDescription as boolean;
|
|
88
83
|
},
|
|
89
84
|
displayDate(): string {
|
|
90
85
|
return dayjs(this.podcast.pubDate).format();
|
|
91
86
|
},
|
|
92
87
|
description(): string {
|
|
93
|
-
return this.podcast.description ??
|
|
88
|
+
return this.podcast.description ?? "";
|
|
94
89
|
},
|
|
95
90
|
},
|
|
96
91
|
|
|
97
92
|
methods: {
|
|
98
|
-
initDescription():void{
|
|
99
|
-
if(this.firstDisplayDesc){
|
|
100
|
-
|
|
101
|
-
|
|
93
|
+
initDescription(): void {
|
|
94
|
+
if (this.firstDisplayDesc) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const podcastDesc = this.$refs.descriptionPodcast as HTMLElement;
|
|
98
|
+
const podcastDescContainer = this.$refs
|
|
99
|
+
.descriptionPodcastContainer as HTMLElement;
|
|
102
100
|
if (podcastDesc?.clientHeight > podcastDescContainer?.clientHeight) {
|
|
103
101
|
this.isDescriptionBig = true;
|
|
104
102
|
}
|
|
105
|
-
this.firstDisplayDesc=true;
|
|
103
|
+
this.firstDisplayDesc = true;
|
|
106
104
|
},
|
|
107
105
|
showDescription(): void {
|
|
108
|
-
if(!this.podcastItemDescription){
|
|
109
|
-
|
|
106
|
+
if (!this.podcastItemDescription) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.arrowDirection = "down";
|
|
110
110
|
this.hoverDesc = true;
|
|
111
111
|
this.$nextTick(() => {
|
|
112
112
|
this.initDescription();
|
|
113
113
|
});
|
|
114
114
|
},
|
|
115
115
|
hideDescription(): void {
|
|
116
|
-
if(!this.podcastItemDescription){
|
|
117
|
-
|
|
116
|
+
if (!this.podcastItemDescription) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
this.arrowDirection = "up";
|
|
118
120
|
this.hoverDesc = false;
|
|
119
121
|
},
|
|
120
122
|
},
|
|
121
|
-
})
|
|
123
|
+
});
|
|
122
124
|
</script>
|
|
123
125
|
|
|
124
126
|
<style lang="scss">
|
|
125
|
-
@import
|
|
126
|
-
.octopus-app{
|
|
127
|
-
.podcast-item-container {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
width: $octopus-item-podcast-size;
|
|
132
|
-
height: 20.5rem;
|
|
133
|
-
overflow: hidden;
|
|
134
|
-
display: flex;
|
|
135
|
-
flex-direction: column;
|
|
136
|
-
text-align: left;
|
|
137
|
-
background: #fff;
|
|
138
|
-
flex-shrink: 0;
|
|
139
|
-
border: 2px solid #eee;
|
|
140
|
-
|
|
141
|
-
.description-podcast-item {
|
|
142
|
-
padding: 1rem;
|
|
143
|
-
color: #333;
|
|
144
|
-
background-color: rgba(255, 255, 255, 0.92);
|
|
145
|
-
height: $octopus-item-podcast-size;
|
|
146
|
-
overflow: hidden;
|
|
147
|
-
text-overflow: ellipsis;
|
|
148
|
-
font-size: 0.9em;
|
|
149
|
-
position: absolute;
|
|
127
|
+
@import "@scss/_variables.scss";
|
|
128
|
+
.octopus-app {
|
|
129
|
+
.podcast-item-container {
|
|
130
|
+
border-radius: $octopus-borderradius;
|
|
131
|
+
list-style: none;
|
|
132
|
+
position: relative;
|
|
150
133
|
width: $octopus-item-podcast-size;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
134
|
+
height: 20.5rem;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
text-align: left;
|
|
139
|
+
background: #fff;
|
|
140
|
+
flex-shrink: 0;
|
|
141
|
+
border: 2px solid #eee;
|
|
142
|
+
|
|
143
|
+
.description-podcast-item {
|
|
144
|
+
padding: 1rem;
|
|
145
|
+
color: #333;
|
|
146
|
+
background-color: rgba(255, 255, 255, 0.92);
|
|
147
|
+
height: $octopus-item-podcast-size;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
text-overflow: ellipsis;
|
|
150
|
+
font-size: 0.9em;
|
|
154
151
|
position: absolute;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
152
|
+
width: $octopus-item-podcast-size;
|
|
153
|
+
word-break: break-word;
|
|
154
|
+
&.after-podcast-description:after {
|
|
155
|
+
content: "...";
|
|
156
|
+
position: absolute;
|
|
157
|
+
padding-left: 1rem;
|
|
158
|
+
right: 0;
|
|
159
|
+
bottom: 0;
|
|
160
|
+
width: 100%;
|
|
161
|
+
font-size: 1rem;
|
|
162
|
+
font-weight: bolder;
|
|
163
|
+
text-align: center;
|
|
164
|
+
background: linear-gradient(
|
|
165
|
+
to bottom,
|
|
166
|
+
rgba(255, 255, 255, 0),
|
|
167
|
+
#fff 40%
|
|
168
|
+
);
|
|
169
|
+
}
|
|
163
170
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
@media (max-width: 450px) {
|
|
169
|
-
width: $octopus-mobile-item-size;
|
|
170
|
-
height: 18.8rem;
|
|
171
|
-
.description-podcast-item{
|
|
172
|
-
height: $octopus-mobile-item-size;
|
|
171
|
+
@media (max-width: 960px) {
|
|
172
|
+
margin: 0.5rem !important;
|
|
173
|
+
}
|
|
174
|
+
@media (max-width: 450px) {
|
|
173
175
|
width: $octopus-mobile-item-size;
|
|
176
|
+
height: 18.8rem;
|
|
177
|
+
.description-podcast-item {
|
|
178
|
+
height: $octopus-mobile-item-size;
|
|
179
|
+
width: $octopus-mobile-item-size;
|
|
180
|
+
}
|
|
174
181
|
}
|
|
175
182
|
}
|
|
176
183
|
}
|
|
177
|
-
|
|
178
|
-
</style>
|
|
184
|
+
</style>
|
|
@@ -1,100 +1,98 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
:to="{
|
|
7
|
-
name: 'podcast',
|
|
8
|
-
params: { podcastId: podcastId },
|
|
9
|
-
query: { productor: filterOrgaId },
|
|
10
|
-
}"
|
|
11
|
-
class="text-dark flex-grow-1 title-podcast-item"
|
|
12
|
-
>
|
|
13
|
-
{{ title }}
|
|
14
|
-
</router-link>
|
|
15
|
-
<PodcastPlayBar
|
|
16
|
-
:podcast-id="podcastId"
|
|
17
|
-
:duration="duration"
|
|
18
|
-
class="mx-2"
|
|
19
|
-
/>
|
|
20
|
-
|
|
21
|
-
<div class="mx-2 d-flex align-items-center justify-content-between mt-2">
|
|
22
|
-
<div
|
|
23
|
-
v-if="isPodcastmaker"
|
|
24
|
-
class="useless-div-for-podcastmaker"
|
|
25
|
-
/>
|
|
26
|
-
<AnimatorsItem
|
|
27
|
-
v-if="animators && 0!==animators.length"
|
|
28
|
-
class="w-0 flex-grow-1"
|
|
29
|
-
:animator="animators[0]"
|
|
30
|
-
/>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="text-secondary h6 ms-2">
|
|
4
|
+
{{ date }}
|
|
5
|
+
</div>
|
|
31
6
|
<router-link
|
|
32
|
-
v-if="!isPodcastmaker"
|
|
33
7
|
:to="{
|
|
34
|
-
name: '
|
|
35
|
-
params: {
|
|
8
|
+
name: 'podcast',
|
|
9
|
+
params: { podcastId: podcastId },
|
|
36
10
|
query: { productor: filterOrgaId },
|
|
37
11
|
}"
|
|
38
|
-
class="text-dark
|
|
12
|
+
class="text-dark flex-grow-1 title-podcast-item"
|
|
39
13
|
>
|
|
40
|
-
{{
|
|
14
|
+
{{ title }}
|
|
41
15
|
</router-link>
|
|
16
|
+
<PodcastPlayBar :podcast-id="podcastId" :duration="duration" class="mx-2" />
|
|
17
|
+
|
|
18
|
+
<div class="mx-2 d-flex align-items-center justify-content-between mt-2">
|
|
19
|
+
<div v-if="isPodcastmaker" class="useless-div-for-podcastmaker" />
|
|
20
|
+
<AnimatorsItem
|
|
21
|
+
v-if="animators && 0 !== animators.length"
|
|
22
|
+
class="w-0 flex-grow-1"
|
|
23
|
+
:animator="animators[0]"
|
|
24
|
+
/>
|
|
25
|
+
<router-link
|
|
26
|
+
v-if="!isPodcastmaker"
|
|
27
|
+
:to="{
|
|
28
|
+
name: 'productor',
|
|
29
|
+
params: { productorId: podcastOrganisationId },
|
|
30
|
+
query: { productor: filterOrgaId },
|
|
31
|
+
}"
|
|
32
|
+
class="text-dark producer-podcast-item"
|
|
33
|
+
>
|
|
34
|
+
{{ "© " + orgaNameDisplay }}
|
|
35
|
+
</router-link>
|
|
36
|
+
</div>
|
|
42
37
|
</div>
|
|
43
38
|
</template>
|
|
44
39
|
|
|
45
40
|
<script lang="ts">
|
|
46
|
-
import AnimatorsItem from
|
|
47
|
-
import { state } from
|
|
48
|
-
import { orgaComputed } from
|
|
49
|
-
import dayjs from
|
|
50
|
-
import PodcastPlayBar from
|
|
51
|
-
import { defineComponent } from
|
|
52
|
-
import { Participant } from
|
|
41
|
+
import AnimatorsItem from "./AnimatorsItem.vue";
|
|
42
|
+
import { state } from "../../../stores/ParamSdkStore";
|
|
43
|
+
import { orgaComputed } from "../../mixins/orgaComputed";
|
|
44
|
+
import dayjs from "dayjs";
|
|
45
|
+
import PodcastPlayBar from "./PodcastPlayBar.vue";
|
|
46
|
+
import { defineComponent } from "vue";
|
|
47
|
+
import { Participant } from "@/stores/class/general/participant";
|
|
53
48
|
export default defineComponent({
|
|
54
|
-
name:
|
|
55
|
-
|
|
49
|
+
name: "PodcastItemInfo",
|
|
50
|
+
|
|
56
51
|
components: {
|
|
57
52
|
AnimatorsItem,
|
|
58
|
-
PodcastPlayBar
|
|
53
|
+
PodcastPlayBar,
|
|
59
54
|
},
|
|
60
55
|
|
|
61
|
-
mixins:[orgaComputed],
|
|
56
|
+
mixins: [orgaComputed],
|
|
62
57
|
|
|
63
58
|
props: {
|
|
64
|
-
podcastId: { default: undefined, type: Number},
|
|
65
|
-
title: { default: "", type: String},
|
|
66
|
-
pubDate: { default: "", type: String},
|
|
67
|
-
podcastOrganisationId: { default: "", type: String},
|
|
68
|
-
podcastOrganisationName: { default: "", type: String},
|
|
69
|
-
duration: { default: 0, type: Number},
|
|
70
|
-
animators: { default: undefined, type: Object as ()=> Array<Participant>},
|
|
59
|
+
podcastId: { default: undefined, type: Number },
|
|
60
|
+
title: { default: "", type: String },
|
|
61
|
+
pubDate: { default: "", type: String },
|
|
62
|
+
podcastOrganisationId: { default: "", type: String },
|
|
63
|
+
podcastOrganisationName: { default: "", type: String },
|
|
64
|
+
duration: { default: 0, type: Number },
|
|
65
|
+
animators: { default: undefined, type: Object as () => Array<Participant> },
|
|
71
66
|
},
|
|
72
|
-
|
|
67
|
+
|
|
73
68
|
computed: {
|
|
74
69
|
isPodcastmaker(): boolean {
|
|
75
|
-
return
|
|
70
|
+
return state.generalParameters.podcastmaker as boolean;
|
|
76
71
|
},
|
|
77
72
|
date(): string {
|
|
78
|
-
return dayjs(this.pubDate).format(
|
|
73
|
+
return dayjs(this.pubDate).format("D MMMM YYYY, HH[h]mm");
|
|
79
74
|
},
|
|
80
75
|
editRight(): boolean {
|
|
81
|
-
return (
|
|
82
|
-
true===
|
|
76
|
+
return (
|
|
77
|
+
(true === this.authenticated &&
|
|
78
|
+
this.myOrganisationId === this.podcastOrganisationId) ||
|
|
79
|
+
true === state.generalParameters.isAdmin
|
|
80
|
+
);
|
|
83
81
|
},
|
|
84
|
-
orgaNameDisplay():string{
|
|
85
|
-
if(this.podcastOrganisationName.length > 30){
|
|
86
|
-
return this.podcastOrganisationName.substring(0, 30) +
|
|
82
|
+
orgaNameDisplay(): string {
|
|
83
|
+
if (this.podcastOrganisationName.length > 30) {
|
|
84
|
+
return this.podcastOrganisationName.substring(0, 30) + "...";
|
|
87
85
|
}
|
|
88
86
|
return this.podcastOrganisationName;
|
|
89
|
-
}
|
|
87
|
+
},
|
|
90
88
|
},
|
|
91
|
-
})
|
|
89
|
+
});
|
|
92
90
|
</script>
|
|
93
91
|
|
|
94
92
|
<style lang="scss">
|
|
95
|
-
.octopus-app{
|
|
93
|
+
.octopus-app {
|
|
96
94
|
.title-podcast-item {
|
|
97
|
-
font-weight:
|
|
95
|
+
font-weight: 700;
|
|
98
96
|
margin: 0.25rem 0.5rem 0.5rem;
|
|
99
97
|
overflow: hidden;
|
|
100
98
|
display: -webkit-box;
|
|
@@ -113,4 +111,4 @@ export default defineComponent({
|
|
|
113
111
|
flex-shrink: 0;
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
|
-
</style>
|
|
114
|
+
</style>
|