@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,151 +1,114 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<li
|
|
3
|
-
class="mt-3 emission-item-container shadow-element"
|
|
4
3
|
v-if="editRight || activePlaylist"
|
|
4
|
+
class="emission-item-container shadow-element"
|
|
5
5
|
>
|
|
6
6
|
<router-link
|
|
7
7
|
:to="{
|
|
8
8
|
name: 'playlist',
|
|
9
9
|
params: { playlistId: playlist.playlistId },
|
|
10
|
-
query: { productor:
|
|
10
|
+
query: { productor: $store.state.filter.organisationId },
|
|
11
11
|
}"
|
|
12
|
-
:
|
|
13
|
-
class="text-dark"
|
|
12
|
+
:title="$t('Playlist')"
|
|
13
|
+
class="d-flex flex-grow-1 text-dark"
|
|
14
14
|
>
|
|
15
|
-
<
|
|
15
|
+
<img
|
|
16
|
+
v-lazy="playlist.imageUrl"
|
|
17
|
+
:title="$t('Playlist name image', {name:name})"
|
|
18
|
+
:alt="$t('Playlist name image', {name:name})"
|
|
16
19
|
class="img-box"
|
|
17
|
-
:style="{
|
|
18
|
-
'background-image':
|
|
19
|
-
'url(\'' + playlist.imageUrl + '?dummy=' + dummyParam + '\')',
|
|
20
|
-
}"
|
|
21
|
-
></div>
|
|
22
|
-
</router-link>
|
|
23
|
-
<div class="emission-item-text">
|
|
24
|
-
<router-link
|
|
25
|
-
:to="{
|
|
26
|
-
name: 'playlist',
|
|
27
|
-
params: { playlistId: playlist.playlistId },
|
|
28
|
-
query: { productor: this.$store.state.filter.organisationId },
|
|
29
|
-
}"
|
|
30
|
-
class="text-dark"
|
|
31
20
|
>
|
|
21
|
+
<div class="emission-item-text">
|
|
32
22
|
<div class="emission-name">
|
|
33
23
|
<img
|
|
24
|
+
v-if="!activePlaylist && !isPodcastmaker"
|
|
34
25
|
class="icon-caution"
|
|
35
26
|
src="/img/caution.png"
|
|
36
|
-
v-if="!activePlaylist && !isPodcastmaker"
|
|
37
27
|
:title="$t('Playlist have not podcasts')"
|
|
38
|
-
|
|
28
|
+
:alt="$t('Playlist have not podcasts')"
|
|
29
|
+
>{{ name }}
|
|
39
30
|
</div>
|
|
40
31
|
<div
|
|
41
|
-
|
|
32
|
+
ref="descriptionPlaylistContainer"
|
|
42
33
|
class="emission-description html-wysiwyg-content"
|
|
43
34
|
>
|
|
35
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
44
36
|
<div
|
|
45
|
-
|
|
37
|
+
ref="descriptionPlaylist"
|
|
46
38
|
v-html="urlify(description)"
|
|
47
|
-
|
|
39
|
+
/>
|
|
40
|
+
<!-- eslint-enable -->
|
|
48
41
|
</div>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</
|
|
63
|
-
</
|
|
64
|
-
</
|
|
42
|
+
<div class="flex-grow-1" />
|
|
43
|
+
<router-link
|
|
44
|
+
v-if="!isPodcastmaker && playlist.organisation"
|
|
45
|
+
:to="{
|
|
46
|
+
name: 'productor',
|
|
47
|
+
params: { productorId: playlist.organisation.id },
|
|
48
|
+
query: { productor: $store.state.filter.organisationId },
|
|
49
|
+
}"
|
|
50
|
+
class="text-dark"
|
|
51
|
+
>
|
|
52
|
+
<div class="emission-producer primary-darker">
|
|
53
|
+
© {{ playlist.organisation.name }}
|
|
54
|
+
</div>
|
|
55
|
+
</router-link>
|
|
56
|
+
</div>
|
|
57
|
+
</router-link>
|
|
65
58
|
</li>
|
|
66
59
|
</template>
|
|
67
60
|
|
|
68
|
-
<style lang="scss"></style>
|
|
69
|
-
|
|
70
61
|
<script lang="ts">
|
|
62
|
+
import { Playlist } from '@/store/class/general/playlist';
|
|
71
63
|
import { state } from '../../../store/paramStore';
|
|
72
64
|
import { displayMethods } from '../../mixins/functions';
|
|
73
|
-
/* import octopusApi from "@saooti/octopus-api"; */
|
|
74
65
|
import { defineComponent } from 'vue'
|
|
75
66
|
export default defineComponent({
|
|
76
67
|
name: 'PlaylistItem',
|
|
77
68
|
|
|
78
|
-
props: ['playlist'],
|
|
79
|
-
emits: ['playlistNotVisible'],
|
|
80
|
-
|
|
81
69
|
mixins: [displayMethods],
|
|
82
70
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
'description-playlist-' + this.playlist.playlistId
|
|
86
|
-
);
|
|
87
|
-
let playlistDescContainer:any = document.getElementById(
|
|
88
|
-
'description-playlist-container-' + this.playlist.playlistId
|
|
89
|
-
);
|
|
90
|
-
if (
|
|
91
|
-
null !== playlistDesc &&
|
|
92
|
-
playlistDesc.clientHeight > playlistDescContainer.clientHeight
|
|
93
|
-
) {
|
|
94
|
-
playlistDescContainer.classList.add('after-emission-description');
|
|
95
|
-
}
|
|
96
|
-
if (this.editRight || this.activePlaylist) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
this.$emit('playlistNotVisible');
|
|
71
|
+
props: {
|
|
72
|
+
playlist: { default: ()=>({}), type: Object as ()=>Playlist},
|
|
100
73
|
},
|
|
101
74
|
|
|
102
75
|
data() {
|
|
103
76
|
return {
|
|
104
|
-
dummyParam: new Date().getTime().toString(),
|
|
77
|
+
dummyParam: new Date().getTime().toString() as string,
|
|
105
78
|
};
|
|
106
79
|
},
|
|
107
|
-
|
|
80
|
+
|
|
108
81
|
computed: {
|
|
109
|
-
isPodcastmaker() {
|
|
110
|
-
return state.generalParameters.podcastmaker;
|
|
82
|
+
isPodcastmaker(): boolean {
|
|
83
|
+
return (state.generalParameters.podcastmaker as boolean);
|
|
111
84
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return '' + this.playlist.publisher.organisation.name;
|
|
85
|
+
organisation(): string {
|
|
86
|
+
return this.playlist?.publisher?.organisation?.name ??'';
|
|
115
87
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
let description;
|
|
119
|
-
description = this.playlist.description || '';
|
|
120
|
-
if (state.generalParameters.isIE11)
|
|
121
|
-
return description.substring(0, 50) + '...';
|
|
122
|
-
return description;
|
|
88
|
+
description(): string {
|
|
89
|
+
return this.playlist.description ?? '';
|
|
123
90
|
},
|
|
124
|
-
|
|
125
|
-
name():string {
|
|
126
|
-
if (state.generalParameters.isIE11)
|
|
127
|
-
return this.playlist.title.substring(0, 50) + '...';
|
|
91
|
+
name(): string {
|
|
128
92
|
return this.playlist.title;
|
|
129
93
|
},
|
|
130
|
-
|
|
131
|
-
organisationId() {
|
|
94
|
+
organisationId(): string|undefined {
|
|
132
95
|
return state.generalParameters.organisationId;
|
|
133
96
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
this.organisationId === this.playlist.organisation.id) ||
|
|
139
|
-
state.generalParameters.isAdmin
|
|
140
|
-
)
|
|
141
|
-
return true;
|
|
142
|
-
return false;
|
|
97
|
+
editRight(): boolean {
|
|
98
|
+
return (true===state.generalParameters.isPlaylist &&
|
|
99
|
+
this.organisationId === this.playlist.organisation?.id) ||
|
|
100
|
+
true == state.generalParameters.isAdmin;
|
|
143
101
|
},
|
|
144
|
-
activePlaylist():boolean {
|
|
102
|
+
activePlaylist(): boolean {
|
|
145
103
|
return 0 !== Object.keys(this.playlist.podcasts).length;
|
|
146
104
|
},
|
|
147
105
|
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
106
|
+
mounted() {
|
|
107
|
+
const playlistDesc = (this.$refs.descriptionPlaylist as HTMLElement);
|
|
108
|
+
const playlistDescContainer = (this.$refs.descriptionPlaylistContainer as HTMLElement);
|
|
109
|
+
if (playlistDesc?.clientHeight > playlistDescContainer?.clientHeight) {
|
|
110
|
+
playlistDescContainer.classList.add('after-emission-description');
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
})
|
|
114
|
+
</script>
|
|
@@ -1,142 +1,149 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</button>
|
|
29
|
-
</div>
|
|
2
|
+
<ListPaginate
|
|
3
|
+
id="playlistListPaginate"
|
|
4
|
+
v-model:first="dfirst"
|
|
5
|
+
v-model:rowsPerPage="dsize"
|
|
6
|
+
v-model:isMobile="isMobile"
|
|
7
|
+
:text-count="displayCount > 1 ? `${$t('Number playlists', { nb: displayCount })} ${$t('sort by score')}`: undefined"
|
|
8
|
+
:total-count="totalCount"
|
|
9
|
+
:loading="loading"
|
|
10
|
+
:loading-text="loading?$t('Loading content ...'):undefined"
|
|
11
|
+
>
|
|
12
|
+
<template #list>
|
|
13
|
+
<ul
|
|
14
|
+
class="emission-list two-emissions"
|
|
15
|
+
>
|
|
16
|
+
<template
|
|
17
|
+
v-for="p in displayArray"
|
|
18
|
+
:key="p.playlistId"
|
|
19
|
+
>
|
|
20
|
+
<PlaylistItem
|
|
21
|
+
v-if="0!==p.playlistId"
|
|
22
|
+
:playlist="p"
|
|
23
|
+
/>
|
|
24
|
+
</template>
|
|
25
|
+
</ul>
|
|
26
|
+
</template>
|
|
27
|
+
</ListPaginate>
|
|
30
28
|
</template>
|
|
31
29
|
|
|
32
|
-
<style lang="scss"></style>
|
|
33
|
-
|
|
34
30
|
<script lang="ts">
|
|
35
|
-
|
|
31
|
+
import ListPaginate from '../list/ListPaginate.vue';
|
|
32
|
+
import { handle403 } from '../../mixins/handle403';
|
|
33
|
+
import octopusApi from '@saooti/octopus-api';
|
|
36
34
|
import PlaylistItem from './PlaylistItem.vue';
|
|
37
|
-
import {
|
|
38
|
-
|
|
35
|
+
import { emptyPlaylistData } from '@/store/typeAppStore';
|
|
36
|
+
import { Playlist } from '@/store/class/general/playlist';
|
|
39
37
|
import { defineComponent } from 'vue'
|
|
38
|
+
import { AxiosError } from 'axios';
|
|
40
39
|
export default defineComponent({
|
|
41
40
|
name: 'PlaylistList',
|
|
42
41
|
|
|
43
|
-
props: ['first', 'size', 'query', 'organisationId'],
|
|
44
|
-
|
|
45
42
|
components: {
|
|
46
43
|
PlaylistItem,
|
|
44
|
+
ListPaginate
|
|
47
45
|
},
|
|
48
46
|
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
mixins: [handle403],
|
|
48
|
+
|
|
49
|
+
props: {
|
|
50
|
+
first: { default: 0, type: Number },
|
|
51
|
+
size: { default: 30, type: Number },
|
|
52
|
+
query: { default: undefined, type: String},
|
|
53
|
+
organisationId: { default: undefined, type: String},
|
|
51
54
|
},
|
|
52
55
|
|
|
53
56
|
data() {
|
|
54
57
|
return {
|
|
55
|
-
loading: true,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
inFetching: false,
|
|
58
|
+
loading: true as boolean,
|
|
59
|
+
dfirst: this.first as number,
|
|
60
|
+
dsize: this.size as number,
|
|
61
|
+
totalCount: 0 as number,
|
|
62
|
+
displayCount: 0 as number,
|
|
63
|
+
playlists: [] as Array<Playlist>,
|
|
64
|
+
isMobile: false as boolean,
|
|
63
65
|
};
|
|
64
66
|
},
|
|
65
67
|
|
|
68
|
+
|
|
66
69
|
computed: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return
|
|
72
|
-
|
|
73
|
-
changed():
|
|
70
|
+
displayArray(): Array<Playlist>{
|
|
71
|
+
if(this.isMobile){
|
|
72
|
+
return this.playlists;
|
|
73
|
+
}
|
|
74
|
+
return this.playlists.slice(this.dfirst, Math.min(this.dfirst + this.dsize,this.totalCount));
|
|
75
|
+
},
|
|
76
|
+
changed(): string {
|
|
74
77
|
return `${this.first}|${this.size}|${this.organisationId}|${this.query}`;
|
|
75
78
|
},
|
|
76
|
-
|
|
77
|
-
return this
|
|
79
|
+
sort(): string {
|
|
80
|
+
return !this.query ?'NAME': 'SCORE';
|
|
78
81
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return 'SCORE';
|
|
82
|
+
organisation(): string|undefined {
|
|
83
|
+
return this.organisationId ?? this.$store.state.filter.organisationId;
|
|
82
84
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
},
|
|
86
|
+
watch: {
|
|
87
|
+
changed(): void {
|
|
88
|
+
this.reloadList();
|
|
87
89
|
},
|
|
90
|
+
dsize():void{
|
|
91
|
+
this.reloadList();
|
|
92
|
+
},
|
|
93
|
+
dfirst(): void{
|
|
94
|
+
if(!this.playlists[this.dfirst] || 0===this.playlists[this.dfirst].playlistId){
|
|
95
|
+
this.fetchContent(false);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
88
98
|
},
|
|
89
99
|
|
|
100
|
+
mounted() {
|
|
101
|
+
this.fetchContent(true);
|
|
102
|
+
},
|
|
90
103
|
methods: {
|
|
91
|
-
|
|
92
|
-
this.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
let param = {
|
|
104
|
+
reloadList(){
|
|
105
|
+
this.dfirst = 0;
|
|
106
|
+
this.fetchContent(true);
|
|
107
|
+
},
|
|
108
|
+
async fetchContent(reset: boolean): Promise<void> {
|
|
109
|
+
this.loading = true;
|
|
110
|
+
const param = {
|
|
99
111
|
first: this.dfirst,
|
|
100
112
|
size: this.dsize,
|
|
101
113
|
query: this.query,
|
|
102
114
|
organisationId: this.organisation,
|
|
103
115
|
sort: this.sort,
|
|
104
116
|
};
|
|
105
|
-
|
|
106
|
-
|
|
117
|
+
try {
|
|
118
|
+
const data = await octopusApi.fetchDataWithParams<{count: number;result:Array<Playlist>;sort: string;}>(0, 'playlist/search',param, true);
|
|
119
|
+
this.afterFetching(reset, data);
|
|
120
|
+
} catch (error) {
|
|
121
|
+
this.handle403((error as AxiosError));
|
|
122
|
+
}
|
|
107
123
|
},
|
|
108
|
-
|
|
109
|
-
afterFetching(reset: any, data:any) {
|
|
124
|
+
afterFetching(reset: boolean, data: {count: number, result: Array<Playlist>, sort: string}): void {
|
|
110
125
|
if (reset) {
|
|
111
126
|
this.playlists.length = 0;
|
|
112
|
-
this.dfirst = 0;
|
|
113
127
|
}
|
|
114
|
-
this.
|
|
115
|
-
|
|
128
|
+
if(this.dfirst > this.playlists.length){
|
|
129
|
+
for (let i = this.playlists.length-1, len = this.dfirst + this.dsize; i < len; i++) {
|
|
130
|
+
this.playlists.push(emptyPlaylistData());
|
|
131
|
+
}
|
|
132
|
+
}
|
|
116
133
|
this.displayCount = data.count;
|
|
117
|
-
|
|
134
|
+
const responsePlaylists = data.result.filter((e: Playlist | null) => {
|
|
118
135
|
if (null === e) {
|
|
119
136
|
this.displayCount--;
|
|
120
137
|
}
|
|
121
138
|
return null !== e;
|
|
122
139
|
});
|
|
123
|
-
this.
|
|
140
|
+
this.playlists = this.playlists.slice(0, this.dfirst).concat(responsePlaylists).concat(this.playlists.slice(this.dfirst+this.dsize, this.playlists.length));
|
|
124
141
|
this.totalCount = data.count;
|
|
125
|
-
this.
|
|
142
|
+
this.loading = false;
|
|
126
143
|
},
|
|
127
|
-
|
|
128
|
-
displayMore(event: { preventDefault: () => void; }) {
|
|
129
|
-
event.preventDefault();
|
|
144
|
+
displayMore(): void {
|
|
130
145
|
this.fetchContent(false);
|
|
131
146
|
},
|
|
132
147
|
},
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
changed: {
|
|
136
|
-
handler() {
|
|
137
|
-
this.fetchContent(true);
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
});
|
|
142
|
-
</script>
|
|
148
|
+
})
|
|
149
|
+
</script>
|