@saooti/octopus-sdk 40.2.19 → 41.0.0
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/index.ts +2 -1
- package/package.json +4 -3
- package/src/App.vue +71 -95
- package/src/components/composable/player/usePlayerLive.ts +13 -4
- package/src/components/composable/player/usePlayerLogic.ts +6 -6
- package/src/components/composable/player/usePlayerVast.ts +7 -7
- package/src/components/composable/podcasts/usePodcastView.ts +3 -3
- package/src/components/composable/route/useAdvancedParamInit.ts +1 -1
- package/src/components/composable/route/useRouteUpdateParams.ts +4 -4
- package/src/components/composable/route/useSimplePageParam.ts +15 -8
- package/src/components/composable/useInit.ts +2 -2
- package/src/components/composable/useMetaTitleWatch.ts +2 -2
- package/src/components/display/accessibility/AccessibilityModal.vue +56 -68
- package/src/components/display/categories/CategoryChooser.vue +144 -145
- package/src/components/display/categories/CategoryFilter.vue +172 -198
- package/src/components/display/categories/CategoryList.vue +122 -147
- package/src/components/display/comments/CommentInput.vue +100 -122
- package/src/components/display/comments/CommentList.vue +169 -191
- package/src/components/display/comments/CommentName.vue +35 -45
- package/src/components/display/comments/CommentParentInfo.vue +28 -34
- package/src/components/display/comments/CommentPlayer.vue +38 -50
- package/src/components/display/comments/CommentSection.vue +85 -103
- package/src/components/display/comments/item/CommentBasicView.vue +48 -61
- package/src/components/display/comments/item/CommentItem.vue +104 -115
- package/src/components/display/comments/item/CommentMoreActions.vue +174 -189
- package/src/components/display/comments/item/CommentMoreActionsAdmin.vue +1 -3
- package/src/components/display/comments/like/LikeButton.vue +36 -41
- package/src/components/display/comments/like/LikeSection.vue +128 -136
- package/src/components/display/comments/modal/CheckIdentityModal.vue +35 -40
- package/src/components/display/comments/modal/EditCommentModal.vue +72 -78
- package/src/components/display/comments/modal/RecaptchaModal.vue +58 -63
- package/src/components/display/comments/modal/ReportAbuseModal.vue +59 -66
- package/src/components/display/edit/EditBox.vue +9 -8
- package/src/components/display/edit/EditBoxRadio.vue +1 -5
- package/src/components/display/emission/EmissionInlineList.vue +82 -97
- package/src/components/display/emission/EmissionItem.vue +57 -69
- package/src/components/display/emission/EmissionList.vue +189 -218
- package/src/components/display/emission/EmissionPlayerItem.vue +47 -64
- package/src/components/display/emission/EmissionPresentationItem.vue +44 -54
- package/src/components/display/emission/EmissionPresentationList.vue +51 -61
- package/src/components/display/filter/AdvancedSearch.vue +151 -176
- package/src/components/display/filter/CategorySearchFilter.vue +43 -46
- package/src/components/display/filter/DateFilter.vue +76 -91
- package/src/components/display/filter/MonetizableFilter.vue +27 -30
- package/src/components/display/filter/ProductorSearch.vue +87 -90
- package/src/components/display/filter/RubriqueChoice.vue +58 -63
- package/src/components/display/filter/RubriqueFilter.vue +154 -169
- package/src/components/display/filter/SearchOrder.vue +35 -35
- package/src/components/display/list/ListPaginate.vue +72 -93
- package/src/components/display/list/PaginateParams.vue +36 -40
- package/src/components/display/list/PaginateSection.vue +113 -124
- package/src/components/display/list/SwiperList.vue +97 -109
- package/src/components/display/live/CountDown.vue +15 -9
- package/src/components/display/live/CountdownOctopus.vue +16 -10
- package/src/components/display/live/LiveHorizontalList.vue +95 -103
- package/src/components/display/live/LiveItem.vue +64 -73
- package/src/components/display/live/LiveList.vue +125 -137
- package/src/components/display/live/RadioCurrently.vue +66 -73
- package/src/components/display/live/RadioImage.vue +39 -50
- package/src/components/display/live/RadioItem.vue +9 -14
- package/src/components/display/live/RadioList.vue +39 -53
- package/src/components/display/live/RadioPlanning.vue +210 -222
- package/src/components/display/organisation/OrganisationChooser.vue +116 -122
- package/src/components/display/organisation/OrganisationChooserLight.vue +44 -52
- package/src/components/display/participant/ParticipantInlineList.vue +42 -58
- package/src/components/display/participant/ParticipantItem.vue +66 -74
- package/src/components/display/participant/ParticipantList.vue +116 -141
- package/src/components/display/playlist/PlaylistItem.vue +33 -46
- package/src/components/display/playlist/PlaylistList.vue +115 -144
- package/src/components/display/playlist/PodcastList.vue +90 -103
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +58 -70
- package/src/components/display/podcastmaker/PodcastmakerHeader.vue +21 -22
- package/src/components/display/podcasts/AnimatorsItem.vue +15 -16
- package/src/components/display/podcasts/DownloadPodcastButton.vue +21 -29
- package/src/components/display/podcasts/ParticipantDescription.vue +22 -24
- package/src/components/display/podcasts/PodcastFilterList.vue +62 -56
- package/src/components/display/podcasts/PodcastImage.vue +96 -99
- package/src/components/display/podcasts/PodcastInlineList.vue +30 -28
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +107 -114
- package/src/components/display/podcasts/PodcastIsPlaying.vue +4 -12
- package/src/components/display/podcasts/PodcastItem.vue +48 -63
- package/src/components/display/podcasts/PodcastItemInfo.vue +19 -35
- package/src/components/display/podcasts/PodcastList.vue +182 -206
- package/src/components/display/podcasts/PodcastModuleBox.vue +100 -137
- package/src/components/display/podcasts/PodcastPlannedSpinner.vue +4 -6
- package/src/components/display/podcasts/PodcastPlayBar.vue +50 -61
- package/src/components/display/podcasts/PodcastPlayBasicButton.vue +38 -41
- package/src/components/display/podcasts/PodcastPlayButton.vue +164 -175
- package/src/components/display/podcasts/PodcastRawTranscript.vue +69 -80
- package/src/components/display/podcasts/PodcastRubriqueList.vue +35 -38
- package/src/components/display/podcasts/PodcastSwiperList.vue +100 -110
- package/src/components/display/podcasts/TagList.vue +48 -50
- package/src/components/display/podcasts/VideoModuleBox.vue +13 -24
- package/src/components/display/rubriques/RubriqueChooser.vue +135 -140
- package/src/components/display/rubriques/RubriqueList.vue +140 -160
- package/src/components/display/sharing/ChooseEpisodesNumber.vue +34 -33
- package/src/components/display/sharing/FormatSwitch.vue +16 -11
- package/src/components/display/sharing/PlayerAnonymousModal.vue +24 -27
- package/src/components/display/sharing/PlayerCommonParameters.vue +20 -13
- package/src/components/display/sharing/PlayerParameters.vue +69 -71
- package/src/components/display/sharing/QrCode.vue +55 -67
- package/src/components/display/sharing/ShareAnonymous.vue +160 -178
- package/src/components/display/sharing/ShareDistribution.vue +103 -117
- package/src/components/display/sharing/ShareNewsletter.vue +154 -161
- package/src/components/display/sharing/SharePlayer.vue +273 -295
- package/src/components/display/sharing/SharePlayerColors.vue +25 -16
- package/src/components/display/sharing/SharePlayerRadio.vue +61 -69
- package/src/components/display/sharing/SharePlayerTypes.vue +176 -176
- package/src/components/display/sharing/ShareSocialsButtons.vue +63 -75
- package/src/components/display/sharing/SubscribeButtons.vue +184 -207
- package/src/components/display/studio/RecordingItemButton.vue +1 -4
- package/src/components/form/ClassicCheckbox.vue +26 -30
- package/src/components/form/ClassicContentEditable.vue +37 -33
- package/src/components/form/ClassicCopyButton.vue +40 -44
- package/src/components/form/ClassicDatePicker.vue +114 -114
- package/src/components/form/ClassicEmojiPicker.vue +20 -28
- package/src/components/form/ClassicInputText.vue +116 -120
- package/src/components/form/ClassicLoading.vue +7 -12
- package/src/components/form/ClassicMultiselect.vue +115 -117
- package/src/components/form/ClassicRadio.vue +21 -16
- package/src/components/form/ClassicRadioLabel.vue +23 -22
- package/src/components/form/ClassicSearch.vue +24 -19
- package/src/components/form/ClassicSelect.vue +47 -38
- package/src/components/form/ClassicWysiwyg.vue +116 -123
- package/src/components/icons/AmazonMusicIcon.vue +7 -10
- package/src/components/icons/ApplePodcastIcon.vue +7 -11
- package/src/components/icons/BlueSkyIcon.vue +8 -11
- package/src/components/icons/DeezerIcon.vue +8 -11
- package/src/components/icons/EditFtpIcon.vue +8 -11
- package/src/components/icons/IHeartIcon.vue +8 -11
- package/src/components/icons/PlayVideoIcon.vue +7 -10
- package/src/components/icons/PlayerFmIcon.vue +7 -10
- package/src/components/icons/PocketCastIcon.vue +8 -11
- package/src/components/icons/PodcastAddictIcon.vue +7 -10
- package/src/components/icons/RadiolineIcon.vue +8 -11
- package/src/components/icons/TuninIcon.vue +8 -11
- package/src/components/icons/XIcon.vue +7 -10
- package/src/components/misc/AcpmImage.vue +6 -7
- package/src/components/misc/ClassicAccordion.vue +26 -31
- package/src/components/misc/ClassicLazy.vue +86 -90
- package/src/components/misc/ClassicNav.vue +16 -20
- package/src/components/misc/ClassicPopover.vue +271 -282
- package/src/components/misc/ClassicSpinner.vue +5 -27
- package/src/components/misc/ErrorMessage.vue +11 -12
- package/src/components/misc/FooterGarSection.vue +33 -41
- package/src/components/misc/FooterSection.vue +94 -131
- package/src/components/misc/HomeDropdown.vue +83 -105
- package/src/components/misc/MobileMenu.vue +101 -111
- package/src/components/misc/ProgressBar.vue +53 -62
- package/src/components/misc/TopBar.vue +98 -120
- package/src/components/misc/TopBarMainContent.vue +114 -133
- package/src/components/misc/modal/ClassicModal.vue +40 -33
- package/src/components/misc/modal/ClassicModalInBody.vue +34 -28
- package/src/components/misc/modal/ClipboardModal.vue +27 -30
- package/src/components/misc/modal/ContractPreviewModal.vue +64 -62
- package/src/components/misc/modal/MessageModal.vue +50 -47
- package/src/components/misc/modal/NewsletterModal.vue +30 -31
- package/src/components/misc/modal/QrCodeModal.vue +21 -21
- package/src/components/misc/modal/ShareModalPlayer.vue +43 -52
- package/src/components/misc/player/PlayerCompact.vue +6 -4
- package/src/components/misc/player/PlayerComponent.vue +8 -9
- package/src/components/misc/player/PlayerLarge.vue +9 -8
- package/src/components/misc/player/ads/AdsProgressBar.vue +8 -11
- package/src/components/misc/player/ads/AdsSkipButton.vue +24 -30
- package/src/components/misc/player/chaptering/ChapteringModal.vue +44 -54
- package/src/components/misc/player/chaptering/PlayerChaptering.vue +50 -62
- package/src/components/misc/player/elements/PlayerImage.vue +51 -57
- package/src/components/misc/player/elements/PlayerPlayButton.vue +81 -92
- package/src/components/misc/player/elements/PlayerSpeedButton.vue +23 -27
- package/src/components/misc/player/elements/PlayerTitle.vue +85 -111
- package/src/components/misc/player/progressbar/PlayerProgressBar.vue +18 -29
- package/src/components/misc/player/progressbar/PodcastProgressBar.vue +45 -56
- package/src/components/misc/player/radio/RadioHistory.vue +80 -99
- package/src/components/misc/player/radio/RadioProgressBar.vue +43 -54
- package/src/components/misc/player/video/PlayerVideo.vue +27 -40
- package/src/components/misc/player/video/PlayerVideoDigiteka.vue +32 -37
- package/src/components/misc/player/video/PlayerVideoHls.vue +199 -198
- package/src/components/misc/player/video/PlayerYoutubeEmbed.vue +10 -12
- package/src/components/pages/CategoryPage.vue +28 -33
- package/src/components/pages/EmissionPage.vue +113 -132
- package/src/components/pages/EmissionsPage.vue +2 -0
- package/src/components/pages/Error403Page.vue +21 -20
- package/src/components/pages/HomePage.vue +91 -100
- package/src/components/pages/LivesPage.vue +35 -37
- package/src/components/pages/MapPage.vue +209 -241
- package/src/components/pages/PageLogout.vue +8 -11
- package/src/components/pages/PageNotFound.vue +9 -5
- package/src/components/pages/ParticipantPage.vue +96 -110
- package/src/components/pages/ParticipantsPage.vue +3 -0
- package/src/components/pages/PlaylistPage.vue +112 -117
- package/src/components/pages/PlaylistsPage.vue +9 -2
- package/src/components/pages/PodcastPage.vue +224 -238
- package/src/components/pages/PodcastsPage.vue +9 -2
- package/src/components/pages/RadioPage.vue +56 -70
- package/src/components/pages/RubriquePage.vue +7 -3
- package/src/components/pages/SearchPage.vue +31 -36
- package/src/components/pages/TagPage.vue +11 -9
- package/src/components/pages/VideoPage.vue +14 -11
- package/src/helper/displayHelper.ts +1 -1
- package/src/helper/loadScript.ts +4 -4
- package/src/i18n.ts +2 -2
- package/src/main.ts +1 -1
- package/src/router/router.ts +17 -4
- package/src/stores/AuthStore.ts +12 -12
- package/src/stores/FilterStore.ts +1 -1
- package/src/stores/VastStore.ts +2 -2
- package/src/stores/class/general/player.ts +1 -0
- package/public/css/fonts/icomoon.eot +0 -0
- package/public/css/fonts/icomoon.svg +0 -113
- package/public/css/fonts/icomoon.ttf +0 -0
- package/public/css/fonts/icomoon.woff +0 -0
- package/public/css/fonts/icomoon.woff2 +0 -0
- package/public/css/fonts/style.css +0 -352
- package/sonarqube-scanner.js +0 -10
|
@@ -15,41 +15,43 @@
|
|
|
15
15
|
:query="query"
|
|
16
16
|
:last-three-months="lastThreeMonths"
|
|
17
17
|
:title-tag="titleTag"
|
|
18
|
-
@update:is-arrow="
|
|
18
|
+
@update:is-arrow="updateArrow($event)"
|
|
19
19
|
/>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
|
-
<script lang="ts">
|
|
23
|
-
import { defineAsyncComponent
|
|
22
|
+
<script setup lang="ts">
|
|
23
|
+
import { defineAsyncComponent } from "vue";
|
|
24
24
|
const PodcastSwiperList = defineAsyncComponent(
|
|
25
25
|
() => import("./PodcastSwiperList.vue"),
|
|
26
26
|
);
|
|
27
|
-
export default defineComponent({
|
|
28
|
-
name: "PodcastInlineList",
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
28
|
+
//Props
|
|
29
|
+
defineProps({
|
|
30
|
+
organisationId: { default: () => [], type: Array as () => Array<string> },
|
|
31
|
+
emissionId: { default: undefined, type: Number },
|
|
32
|
+
iabId: { default: undefined, type: Number },
|
|
33
|
+
title: { default: "", type: String },
|
|
34
|
+
href: { default: undefined, type: String },
|
|
35
|
+
buttonText: { default: undefined, type: String },
|
|
36
|
+
isArrow: { default: false, type: Boolean },
|
|
37
|
+
requirePopularSort: { default: undefined, type: Boolean },
|
|
38
|
+
buttonPlus: { default: false, type: Boolean },
|
|
39
|
+
rubriqueId: { default: () => [], type: Array as () => Array<number> },
|
|
40
|
+
rubriquageId: { default: () => [], type: Array as () => Array<number> },
|
|
41
|
+
noRubriquageId: { default: () => [], type: Array as () => Array<number> },
|
|
42
|
+
query: { default: undefined, type: String },
|
|
43
|
+
podcastId: { default: undefined, type: Number },
|
|
44
|
+
lastThreeMonths: { default: false, type: Boolean },
|
|
45
|
+
titleTag: { default: "h2", type: String },
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
//Emits
|
|
49
|
+
const emit = defineEmits(["update:isArrow"]);
|
|
50
|
+
|
|
51
|
+
//Methods
|
|
52
|
+
function updateArrow(value: boolean){
|
|
53
|
+
emit("update:isArrow", value);
|
|
54
|
+
}
|
|
53
55
|
</script>
|
|
54
56
|
<style lang="scss">
|
|
55
57
|
.octopus-app .loading-size {
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
:class="{ active: !popularSort }"
|
|
13
13
|
@click="sortChrono()"
|
|
14
14
|
>
|
|
15
|
-
{{
|
|
15
|
+
{{ t("Last added") }}
|
|
16
16
|
</button>
|
|
17
17
|
<button
|
|
18
18
|
class="btn btn-underline"
|
|
19
19
|
:class="{ active: popularSort }"
|
|
20
20
|
@click="sortPopular()"
|
|
21
21
|
>
|
|
22
|
-
{{
|
|
22
|
+
{{ t("Most popular") }}
|
|
23
23
|
</button>
|
|
24
24
|
</div>
|
|
25
25
|
<div v-if="displayArrow" class="hide-phone">
|
|
26
26
|
<button
|
|
27
27
|
class="btn admin-button m-1"
|
|
28
28
|
:class="{ disabled: !previousAvailable }"
|
|
29
|
-
:title="
|
|
29
|
+
:title="t('Display previous')"
|
|
30
30
|
@click="displayPrevious()"
|
|
31
31
|
>
|
|
32
32
|
<ChevronLeftIcon :size="30" />
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<button
|
|
35
35
|
class="btn admin-button m-1"
|
|
36
36
|
:class="{ disabled: !nextAvailable }"
|
|
37
|
-
:title="
|
|
37
|
+
:title="t('Display next')"
|
|
38
38
|
@click="displayNext()"
|
|
39
39
|
>
|
|
40
40
|
<ChevronRightIcon :size="30" />
|
|
@@ -54,129 +54,122 @@
|
|
|
54
54
|
</div>
|
|
55
55
|
</template>
|
|
56
56
|
|
|
57
|
-
<script lang="ts">
|
|
57
|
+
<script setup lang="ts">
|
|
58
58
|
import PlusIcon from "vue-material-design-icons/Plus.vue";
|
|
59
59
|
import ChevronLeftIcon from "vue-material-design-icons/ChevronLeft.vue";
|
|
60
60
|
import ChevronRightIcon from "vue-material-design-icons/ChevronRight.vue";
|
|
61
61
|
import { useRubriquesFilterComputed } from "../../composable/route/useRubriquesFilterComputed";
|
|
62
62
|
import { useRubriquesFilterParam } from "../../composable/route/useRubriquesFilterParam";
|
|
63
63
|
import { RubriquageFilter } from "@/stores/class/rubrique/rubriquageFilter";
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
64
|
+
import { computed } from "vue";
|
|
65
|
+
import { useRoute, useRouter } from "vue-router";
|
|
66
66
|
import { useFilterStore } from "../../../stores/FilterStore";
|
|
67
|
-
import { mapState } from "pinia";
|
|
68
67
|
import { Rubrique } from "@/stores/class/rubrique/rubrique";
|
|
69
|
-
|
|
70
|
-
name: "PodcastInlineListTemplate",
|
|
71
|
-
components: {
|
|
72
|
-
ChevronLeftIcon,
|
|
73
|
-
ChevronRightIcon,
|
|
74
|
-
PlusIcon,
|
|
75
|
-
},
|
|
68
|
+
import { useI18n } from "vue-i18n";
|
|
76
69
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
setup(){
|
|
94
|
-
const { returnRubriquesFilter } = useRubriquesFilterParam();
|
|
95
|
-
const { rubriqueQueryParam } = useRubriquesFilterComputed();
|
|
96
|
-
return { returnRubriquesFilter, rubriqueQueryParam }
|
|
97
|
-
},
|
|
98
|
-
data() {
|
|
99
|
-
return {};
|
|
100
|
-
},
|
|
70
|
+
//Props
|
|
71
|
+
const props = defineProps({
|
|
72
|
+
displayArrow: { default: true, type: Boolean },
|
|
73
|
+
previousAvailable: { default: false, type: Boolean },
|
|
74
|
+
nextAvailable: { default: false, type: Boolean },
|
|
75
|
+
popularSort: { default: false, type: Boolean },
|
|
76
|
+
buttonText: { default: undefined, type: String },
|
|
77
|
+
buttonPlus: { default: false, type: Boolean },
|
|
78
|
+
title: { default: "", type: String },
|
|
79
|
+
href: { default: undefined, type: String },
|
|
80
|
+
iabId: { default: undefined, type: Number },
|
|
81
|
+
rubriqueId: { default: () => [], type: Array as () => Array<number> },
|
|
82
|
+
noRubriquageId: { default: () => [], type: Array as () => Array<number> },
|
|
83
|
+
podcastId: { default: undefined, type: Number },
|
|
84
|
+
titleTag: { default: "h2", type: String },
|
|
85
|
+
})
|
|
101
86
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
refTo(): string | RouteLocationRaw {
|
|
105
|
-
if (this.href) return this.href;
|
|
106
|
-
if (this.iabId) {
|
|
107
|
-
return {
|
|
108
|
-
name: "category",
|
|
109
|
-
params: { iabId: this.iabId },
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
return {
|
|
113
|
-
name: "podcasts",
|
|
114
|
-
query: {
|
|
115
|
-
iabId: this.filterIab?.id,
|
|
116
|
-
rubriquesId: this.rubriqueQueryParam,
|
|
117
|
-
productor: this.filterOrgaId
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
},
|
|
121
|
-
},
|
|
87
|
+
//Emits
|
|
88
|
+
const emit = defineEmits(["sortChrono", "sortPopular", "displayPrevious", "displayNext"]);
|
|
122
89
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (this.filterRubriquage.length) {
|
|
148
|
-
for (let i = 0, len = this.filterRubriquage.length; i < len; i++) {
|
|
149
|
-
const rubriqueChosen = this.filterRubriquage[i].rubriques.find(
|
|
150
|
-
(element: Rubrique) => element.rubriqueId === rubriqueChosenId,
|
|
151
|
-
);
|
|
152
|
-
if (rubriqueChosen) {
|
|
153
|
-
filterToAdd = {
|
|
154
|
-
rubriquageId: this.filterRubriquage[i].rubriquageId ?? 0,
|
|
155
|
-
rubriqueId: rubriqueChosenId,
|
|
156
|
-
nameRubriquage: this.filterRubriquage[i].title,
|
|
157
|
-
nameRubrique: rubriqueChosen.name,
|
|
158
|
-
};
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
if(!filterToAdd){return;}
|
|
164
|
-
const queries = this.returnRubriquesFilter((a) => {
|
|
165
|
-
const indexRubriquage = a.findIndex(filter => filter.rubriquageId === filterToAdd.rubriquageId);
|
|
166
|
-
if (indexRubriquage === -1) {
|
|
167
|
-
a.push(filterToAdd);
|
|
168
|
-
} else {
|
|
169
|
-
a[indexRubriquage] = filterToAdd;
|
|
170
|
-
}
|
|
171
|
-
return a;
|
|
172
|
-
})
|
|
173
|
-
this.$router.push({
|
|
174
|
-
name: "podcasts",
|
|
175
|
-
query: {...this.$route.query, ...queries}
|
|
176
|
-
});
|
|
90
|
+
//Composables
|
|
91
|
+
const { t } = useI18n();
|
|
92
|
+
const { returnRubriquesFilter } = useRubriquesFilterParam();
|
|
93
|
+
const { rubriqueQueryParam } = useRubriquesFilterComputed();
|
|
94
|
+
const filterStore = useFilterStore();
|
|
95
|
+
const router = useRouter();
|
|
96
|
+
const route = useRoute();
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
//Computed
|
|
100
|
+
const refTo = computed(() => {
|
|
101
|
+
if (props.href) return props.href;
|
|
102
|
+
if (props.iabId) {
|
|
103
|
+
return {
|
|
104
|
+
name: "category",
|
|
105
|
+
params: { iabId: props.iabId },
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
name: "podcasts",
|
|
110
|
+
query: {
|
|
111
|
+
iabId: filterStore.filterIab?.id,
|
|
112
|
+
rubriquesId: rubriqueQueryParam.value,
|
|
113
|
+
productor: filterStore.filterOrgaId
|
|
177
114
|
},
|
|
178
|
-
}
|
|
115
|
+
};
|
|
179
116
|
});
|
|
117
|
+
|
|
118
|
+
//Methods
|
|
119
|
+
function sortChrono(): void {
|
|
120
|
+
emit("sortChrono");
|
|
121
|
+
}
|
|
122
|
+
function sortPopular(): void {
|
|
123
|
+
emit("sortPopular");
|
|
124
|
+
}
|
|
125
|
+
function displayPrevious(): void {
|
|
126
|
+
emit("displayPrevious");
|
|
127
|
+
}
|
|
128
|
+
function displayNext(): void {
|
|
129
|
+
emit("displayNext");
|
|
130
|
+
}
|
|
131
|
+
function handleSeeMoreButton(event: { preventDefault: () => void }) {
|
|
132
|
+
if (props.href ||
|
|
133
|
+
!props.rubriqueId ||
|
|
134
|
+
0 === props.rubriqueId.length ||
|
|
135
|
+
props.noRubriquageId.length
|
|
136
|
+
) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
event.preventDefault();
|
|
140
|
+
const rubriqueChosenId = props.rubriqueId.at(-1);
|
|
141
|
+
let filterToAdd: RubriquageFilter|undefined;
|
|
142
|
+
if (filterStore.filterRubriquage.length) {
|
|
143
|
+
for (let i = 0, len = filterStore.filterRubriquage.length; i < len; i++) {
|
|
144
|
+
const rubriqueChosen = filterStore.filterRubriquage[i].rubriques.find(
|
|
145
|
+
(element: Rubrique) => element.rubriqueId === rubriqueChosenId,
|
|
146
|
+
);
|
|
147
|
+
if (rubriqueChosen) {
|
|
148
|
+
filterToAdd = {
|
|
149
|
+
rubriquageId: filterStore.filterRubriquage[i].rubriquageId ?? 0,
|
|
150
|
+
rubriqueId: rubriqueChosenId,
|
|
151
|
+
nameRubriquage: filterStore.filterRubriquage[i].title,
|
|
152
|
+
nameRubrique: rubriqueChosen.name,
|
|
153
|
+
};
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if(!filterToAdd){return;}
|
|
159
|
+
const queries = returnRubriquesFilter((a) => {
|
|
160
|
+
const indexRubriquage = a.findIndex(filter => filter.rubriquageId === filterToAdd.rubriquageId);
|
|
161
|
+
if (indexRubriquage === -1) {
|
|
162
|
+
a.push(filterToAdd);
|
|
163
|
+
} else {
|
|
164
|
+
a[indexRubriquage] = filterToAdd;
|
|
165
|
+
}
|
|
166
|
+
return a;
|
|
167
|
+
})
|
|
168
|
+
router.push({
|
|
169
|
+
name: "podcasts",
|
|
170
|
+
query: {...route.query, ...queries}
|
|
171
|
+
});
|
|
172
|
+
}
|
|
180
173
|
</script>
|
|
181
174
|
<style lang="scss">
|
|
182
175
|
.octopus-app .podcast-inline-container {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
:class="'PLAYING' === playerStatus ? 'play-animation' : ''"
|
|
3
|
+
:class="'PLAYING' === playerStore.playerStatus ? 'play-animation' : ''"
|
|
4
4
|
class="bloc-paddle mx-1"
|
|
5
5
|
>
|
|
6
6
|
<span class="paddle1" />
|
|
@@ -9,16 +9,8 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<script lang="ts">
|
|
12
|
+
<script setup lang="ts">
|
|
13
13
|
import { usePlayerStore } from "../../../stores/PlayerStore";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export default defineComponent({
|
|
17
|
-
name: "PodcastIsPlaying",
|
|
18
|
-
computed: {
|
|
19
|
-
...mapState(usePlayerStore, [
|
|
20
|
-
"playerStatus",
|
|
21
|
-
])
|
|
22
|
-
},
|
|
23
|
-
});
|
|
14
|
+
|
|
15
|
+
const playerStore = usePlayerStore();
|
|
24
16
|
</script>
|
|
@@ -37,80 +37,65 @@
|
|
|
37
37
|
</article>
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
|
-
<script lang="ts">
|
|
40
|
+
<script setup lang="ts">
|
|
41
41
|
import debounce from '../../../helper/debounceHelper';
|
|
42
42
|
import PodcastItemInfo from "./PodcastItemInfo.vue";
|
|
43
43
|
import PodcastImage from "./PodcastImage.vue";
|
|
44
44
|
import dayjs from "dayjs";
|
|
45
45
|
import { Podcast } from "@/stores/class/general/podcast";
|
|
46
|
-
import {
|
|
46
|
+
import { computed, nextTick, onBeforeMount, ref, Ref, useTemplateRef } from "vue";
|
|
47
47
|
import { Conference } from "@/stores/class/conference/conference";
|
|
48
|
-
export default defineComponent({
|
|
49
|
-
name: "PodcastItem",
|
|
50
48
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
49
|
+
//Props
|
|
50
|
+
const props = defineProps({
|
|
51
|
+
podcast: { default: () => ({}), type: Object as () => Podcast },
|
|
52
|
+
fetchConference: { default: undefined, type: Object as () => Conference },
|
|
53
|
+
})
|
|
55
54
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
//Data
|
|
56
|
+
const isMobile = ref(false);
|
|
57
|
+
const firstDisplayDesc = ref(false);
|
|
58
|
+
const hoverDesc = ref(false);
|
|
59
|
+
const arrowDirection = ref("up");
|
|
60
|
+
const isDescriptionBig = ref(false);
|
|
61
|
+
const debounceShowDescriptionEvent: Ref< undefined | (() => void)> = ref(undefined);
|
|
62
|
+
const debounceHideDescriptionEvent: Ref< undefined | (() => void)> = ref(undefined);
|
|
63
|
+
const descriptionPodcastRef = useTemplateRef('descriptionPodcast');
|
|
64
|
+
const descriptionPodcastContainerRef = useTemplateRef('descriptionPodcastContainer');
|
|
60
65
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
hoverDesc: false as boolean,
|
|
65
|
-
arrowDirection: "up" as string,
|
|
66
|
-
isDescriptionBig: false as boolean,
|
|
67
|
-
debounceShowDescriptionEvent: undefined as undefined | (() => void),
|
|
68
|
-
debounceHideDescriptionEvent: undefined as undefined | (() => void),
|
|
69
|
-
};
|
|
70
|
-
},
|
|
66
|
+
//Computed
|
|
67
|
+
const displayDate = computed(() => dayjs(props.podcast.pubDate).format());
|
|
68
|
+
const description = computed(() => props.podcast.description ?? "");
|
|
71
69
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return this.podcast.description ?? "";
|
|
78
|
-
},
|
|
79
|
-
isMobile(): boolean {
|
|
80
|
-
return window.matchMedia("(hover: none)").matches;
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
created() {
|
|
84
|
-
this.debounceShowDescriptionEvent = debounce(this.showDescription, 100);
|
|
85
|
-
this.debounceHideDescriptionEvent = debounce(this.hideDescription, 100);
|
|
86
|
-
},
|
|
70
|
+
onBeforeMount(()=>{
|
|
71
|
+
isMobile.value = window.matchMedia("(hover: none)").matches;
|
|
72
|
+
debounceShowDescriptionEvent.value = debounce(showDescription, 100);
|
|
73
|
+
debounceHideDescriptionEvent.value = debounce(hideDescription, 100);
|
|
74
|
+
})
|
|
87
75
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
});
|
|
76
|
+
//Methods
|
|
77
|
+
function initDescription(): void {
|
|
78
|
+
if (firstDisplayDesc.value) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const podcastDesc = descriptionPodcastRef?.value as HTMLElement;
|
|
82
|
+
const podcastDescContainer = descriptionPodcastContainerRef?.value as HTMLElement;
|
|
83
|
+
if (podcastDesc?.clientHeight > podcastDescContainer?.clientHeight) {
|
|
84
|
+
isDescriptionBig.value = true;
|
|
85
|
+
}
|
|
86
|
+
firstDisplayDesc.value = true;
|
|
87
|
+
}
|
|
88
|
+
function showDescription(): void {
|
|
89
|
+
arrowDirection.value = "down";
|
|
90
|
+
hoverDesc.value = true;
|
|
91
|
+
nextTick(() => {
|
|
92
|
+
initDescription();
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function hideDescription(): void {
|
|
96
|
+
arrowDirection.value = "up";
|
|
97
|
+
hoverDesc.value = false;
|
|
98
|
+
}
|
|
114
99
|
</script>
|
|
115
100
|
|
|
116
101
|
<style lang="scss">
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
params: { podcastId: podcast.podcastId },
|
|
12
12
|
}"
|
|
13
13
|
class="text-dark flex-grow-1 title-podcast-item basic-line-clamp three-line"
|
|
14
|
-
:title="
|
|
14
|
+
:title="t('Episode name page', { name: podcast.title })"
|
|
15
15
|
>
|
|
16
16
|
{{ podcast.title }}
|
|
17
17
|
</router-link>
|
|
18
18
|
<PodcastPlayBar
|
|
19
|
-
v-if="
|
|
19
|
+
v-if="state.emissionsPage.progressBar"
|
|
20
20
|
:display-buton-play="true"
|
|
21
21
|
:podcast="podcast"
|
|
22
22
|
class="me-2"
|
|
@@ -43,50 +43,34 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
|
-
<script lang="ts">
|
|
46
|
+
<script setup lang="ts">
|
|
47
47
|
import AnimatorsItem from "./AnimatorsItem.vue";
|
|
48
48
|
import {useOrgaComputed} from "../../composable/useOrgaComputed";
|
|
49
49
|
import dayjs from "dayjs";
|
|
50
|
-
import {
|
|
50
|
+
import { computed, defineAsyncComponent } from "vue";
|
|
51
51
|
import { Podcast } from "@/stores/class/general/podcast";
|
|
52
52
|
import { state } from "../../../stores/ParamSdkStore";
|
|
53
|
+
import { useI18n } from "vue-i18n";
|
|
53
54
|
const PodcastPlayBar = defineAsyncComponent(
|
|
54
55
|
() => import("./PodcastPlayBar.vue"),
|
|
55
56
|
);
|
|
56
|
-
export default defineComponent({
|
|
57
|
-
name: "PodcastItemInfo",
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
//Props
|
|
59
|
+
const props = defineProps({
|
|
60
|
+
podcast: { default: () => ({}), type: Object as () => Podcast },
|
|
61
|
+
})
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
//Composables
|
|
64
|
+
const { t } = useI18n();
|
|
65
|
+
const { isPodcastmaker } = useOrgaComputed();
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return state.emissionsPage.progressBar as boolean;
|
|
76
|
-
},
|
|
77
|
-
date(): string {
|
|
78
|
-
return dayjs(this.podcast.pubDate).format("D MMMM YYYY");
|
|
79
|
-
},
|
|
80
|
-
editRight(): boolean {
|
|
81
|
-
return this.isEditRights(this.podcast.organisation.id);
|
|
82
|
-
},
|
|
83
|
-
orgaNameDisplay(): string {
|
|
84
|
-
if (this.podcast.organisation.name.length > 30) {
|
|
85
|
-
return this.podcast.organisation.name.substring(0, 30) + "...";
|
|
86
|
-
}
|
|
87
|
-
return this.podcast.organisation.name;
|
|
88
|
-
},
|
|
89
|
-
},
|
|
67
|
+
//Computed
|
|
68
|
+
const date = computed(() => dayjs(props.podcast.pubDate).format("D MMMM YYYY"));
|
|
69
|
+
const orgaNameDisplay = computed(() =>{
|
|
70
|
+
if (props.podcast.organisation.name.length > 30) {
|
|
71
|
+
return props.podcast.organisation.name.substring(0, 30) + "...";
|
|
72
|
+
}
|
|
73
|
+
return props.podcast.organisation.name;
|
|
90
74
|
});
|
|
91
75
|
</script>
|
|
92
76
|
|