@saooti/octopus-sdk 37.0.6 → 37.0.8
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.ts +22 -22
- package/package.json +26 -22
- package/src/App.vue +69 -60
- package/src/api/classicCrud.ts +12 -12
- package/src/api/initialize.ts +1 -1
- package/src/assets/transition.scss +34 -22
- 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 +121 -106
- 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 +118 -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 -77
- 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 -131
- 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 +61 -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 +18 -18
- package/src/components/display/sharing/ShareButtonsIntern.vue +100 -78
- 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} +103 -118
- package/src/components/misc/AcpmImage.vue +6 -6
- package/src/components/misc/ClassicAccordion.vue +73 -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 +60 -60
- 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 +162 -116
- 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 +62 -61
- 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 +272 -257
- package/src/locale/educationen.ts +13 -13
- package/src/locale/educationfr.ts +1 -1
- package/src/locale/en.ts +332 -324
- package/src/locale/es.ts +334 -318
- package/src/locale/fr.ts +339 -324
- package/src/locale/it.ts +341 -328
- package/src/locale/messages.ts +9 -9
- package/src/locale/sl.ts +324 -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 +21 -15
- 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 -20
- 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 -9
- 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 -169
- 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
|
@@ -7,24 +7,18 @@
|
|
|
7
7
|
class="player-reduce-button btn bg-transparent text-light saooti-down"
|
|
8
8
|
@click="changePlayerLargeVersion"
|
|
9
9
|
/>
|
|
10
|
-
<router-link
|
|
11
|
-
v-if="isImage && podcastImage"
|
|
12
|
-
:to="podcastShareUrl"
|
|
13
|
-
>
|
|
10
|
+
<router-link v-if="isImage && podcastImage" :to="podcastShareUrl">
|
|
14
11
|
<img
|
|
15
|
-
v-lazy="proxyImageUrl(podcastImage,'200')"
|
|
12
|
+
v-lazy="proxyImageUrl(podcastImage, '200')"
|
|
16
13
|
width="200"
|
|
17
14
|
height="200"
|
|
18
15
|
:alt="$t('Podcast image')"
|
|
19
16
|
class="img-box"
|
|
20
|
-
|
|
17
|
+
/>
|
|
21
18
|
</router-link>
|
|
22
19
|
<div class="d-flex w-100 px-2 mt-2 text-center">
|
|
23
|
-
<div
|
|
24
|
-
|
|
25
|
-
class="text-warning mx-2"
|
|
26
|
-
>
|
|
27
|
-
{{ $t('Podcast play error') + ' - ' }}
|
|
20
|
+
<div v-if="playerError" class="text-warning mx-2">
|
|
21
|
+
{{ $t("Podcast play error") + " - " }}
|
|
28
22
|
</div>
|
|
29
23
|
<div class="flex-grow-1 text-truncate h3">
|
|
30
24
|
{{ podcastTitle }}
|
|
@@ -42,7 +36,7 @@
|
|
|
42
36
|
:duration-live-position="durationLivePosition"
|
|
43
37
|
:player-error="playerError"
|
|
44
38
|
:listen-time="listenTime"
|
|
45
|
-
@
|
|
39
|
+
@update-not-listen-time="$emit('update:notListenTime', $event)"
|
|
46
40
|
/>
|
|
47
41
|
<RadioProgressBar v-else />
|
|
48
42
|
<div class="d-flex justify-content-between">
|
|
@@ -51,9 +45,9 @@
|
|
|
51
45
|
</div>
|
|
52
46
|
<RadioHistory v-if="radioUrl" />
|
|
53
47
|
</div>
|
|
54
|
-
|
|
48
|
+
|
|
55
49
|
<div
|
|
56
|
-
v-if="''!=transcriptText"
|
|
50
|
+
v-if="'' != transcriptText"
|
|
57
51
|
class="flex-grow-1 d-flex align-items-center w-100"
|
|
58
52
|
>
|
|
59
53
|
<div class="flex-grow-1 p-1 text-center mx-3 transcript-bg rounded">
|
|
@@ -72,14 +66,12 @@
|
|
|
72
66
|
:class="{
|
|
73
67
|
'saooti-play': isPaused,
|
|
74
68
|
'saooti-pause': isPlaying,
|
|
75
|
-
''
|
|
69
|
+
'': !isPaused && !isPlaying,
|
|
76
70
|
}"
|
|
77
71
|
class="btn play-big-button-box text-light bg-primary"
|
|
78
72
|
@click="switchPausePlay"
|
|
79
73
|
>
|
|
80
|
-
<
|
|
81
|
-
v-if="!isPaused&&!isPlaying"
|
|
82
|
-
/>
|
|
74
|
+
<ClassicSpinner v-if="!isPaused && !isPlaying" />
|
|
83
75
|
</button>
|
|
84
76
|
<button
|
|
85
77
|
title="+15''"
|
|
@@ -87,79 +79,87 @@
|
|
|
87
79
|
@click="seekClick(15)"
|
|
88
80
|
/>
|
|
89
81
|
</div>
|
|
90
|
-
<PlayerTimeline
|
|
91
|
-
v-model:showTimeline="showTimeline"
|
|
92
|
-
:comments="comments"
|
|
93
|
-
/>
|
|
82
|
+
<PlayerTimeline v-model:showTimeline="showTimeline" :comments="comments" />
|
|
94
83
|
</div>
|
|
95
84
|
</template>
|
|
96
85
|
<script lang="ts">
|
|
97
|
-
import
|
|
98
|
-
import { playerDisplay } from
|
|
99
|
-
import imageProxy from
|
|
100
|
-
import PlayerTimeline from
|
|
101
|
-
import { defineAsyncComponent, defineComponent } from
|
|
102
|
-
import { CommentPodcast } from
|
|
103
|
-
const RadioProgressBar = defineAsyncComponent(
|
|
104
|
-
|
|
105
|
-
|
|
86
|
+
import ClassicSpinner from "../ClassicSpinner.vue";
|
|
87
|
+
import { playerDisplay } from "../../mixins/player/playerDisplay";
|
|
88
|
+
import imageProxy from "../../mixins/imageProxy";
|
|
89
|
+
import PlayerTimeline from "./PlayerTimeline.vue";
|
|
90
|
+
import { defineAsyncComponent, defineComponent } from "vue";
|
|
91
|
+
import { CommentPodcast } from "@/stores/class/general/comment";
|
|
92
|
+
const RadioProgressBar = defineAsyncComponent(
|
|
93
|
+
() => import("./radio/RadioProgressBar.vue"),
|
|
94
|
+
);
|
|
95
|
+
const RadioHistory = defineAsyncComponent(
|
|
96
|
+
() => import("./radio/RadioHistory.vue"),
|
|
97
|
+
);
|
|
98
|
+
const PlayerProgressBar = defineAsyncComponent(
|
|
99
|
+
() => import("./PlayerProgressBar.vue"),
|
|
100
|
+
);
|
|
106
101
|
export default defineComponent({
|
|
107
|
-
name:
|
|
102
|
+
name: "PlayerLarge",
|
|
108
103
|
|
|
109
104
|
components: {
|
|
110
105
|
PlayerProgressBar,
|
|
111
106
|
RadioProgressBar,
|
|
112
107
|
PlayerTimeline,
|
|
113
|
-
|
|
114
|
-
RadioHistory
|
|
108
|
+
ClassicSpinner,
|
|
109
|
+
RadioHistory,
|
|
115
110
|
},
|
|
116
|
-
|
|
111
|
+
mixins: [playerDisplay, imageProxy],
|
|
117
112
|
|
|
118
113
|
props: {
|
|
119
|
-
playerError: { default: false, type: Boolean},
|
|
120
|
-
notListenTime: { default: 0
|
|
121
|
-
comments: { default: ()=>[]
|
|
122
|
-
displayAlertBar: { default: false
|
|
123
|
-
percentLiveProgress: { default: 0
|
|
124
|
-
durationLivePosition: { default: 0
|
|
125
|
-
listenTime: { default: 0
|
|
114
|
+
playerError: { default: false, type: Boolean },
|
|
115
|
+
notListenTime: { default: 0, type: Number },
|
|
116
|
+
comments: { default: () => [], type: Array as () => Array<CommentPodcast> },
|
|
117
|
+
displayAlertBar: { default: false, type: Boolean },
|
|
118
|
+
percentLiveProgress: { default: 0, type: Number },
|
|
119
|
+
durationLivePosition: { default: 0, type: Number },
|
|
120
|
+
listenTime: { default: 0, type: Number },
|
|
126
121
|
},
|
|
127
122
|
|
|
128
|
-
emits: [
|
|
123
|
+
emits: ["stopPlayer", "update:notListenTime", "changePlayerLargeVersion"],
|
|
129
124
|
data() {
|
|
130
125
|
return {
|
|
131
126
|
showTimeline: false as boolean,
|
|
132
127
|
};
|
|
133
128
|
},
|
|
134
|
-
methods:{
|
|
135
|
-
stopPlayer(){
|
|
136
|
-
this.$emit(
|
|
129
|
+
methods: {
|
|
130
|
+
stopPlayer() {
|
|
131
|
+
this.$emit("stopPlayer");
|
|
137
132
|
},
|
|
138
|
-
changePlayerLargeVersion(){
|
|
139
|
-
this.$emit(
|
|
133
|
+
changePlayerLargeVersion() {
|
|
134
|
+
this.$emit("changePlayerLargeVersion");
|
|
140
135
|
},
|
|
141
|
-
seekClick(addTime: number):void{
|
|
142
|
-
const audioPlayer: HTMLAudioElement|null =
|
|
143
|
-
|
|
136
|
+
seekClick(addTime: number): void {
|
|
137
|
+
const audioPlayer: HTMLAudioElement | null =
|
|
138
|
+
document.querySelector("#audio-player");
|
|
139
|
+
if (!audioPlayer) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
144
142
|
const seekTo = audioPlayer.currentTime + addTime;
|
|
145
|
-
(
|
|
143
|
+
(
|
|
144
|
+
this.$refs.progressbar as InstanceType<typeof PlayerProgressBar>
|
|
145
|
+
).isSeekTo(audioPlayer, seekTo > 0 ? seekTo : 0);
|
|
146
146
|
},
|
|
147
|
-
}
|
|
148
|
-
})
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
149
|
</script>
|
|
150
150
|
|
|
151
151
|
<style lang="scss">
|
|
152
|
-
.octopus-app{
|
|
153
|
-
.player-container .img-box{
|
|
152
|
+
.octopus-app {
|
|
153
|
+
.player-container .img-box {
|
|
154
154
|
width: 10rem;
|
|
155
155
|
height: 10rem;
|
|
156
156
|
}
|
|
157
|
-
.player-reduce-button{
|
|
157
|
+
.player-reduce-button {
|
|
158
158
|
position: absolute;
|
|
159
159
|
right: 0;
|
|
160
160
|
font-size: 1.2rem !important;
|
|
161
161
|
}
|
|
162
|
-
.player-grow-large-content{
|
|
162
|
+
.player-grow-large-content {
|
|
163
163
|
width: 100%;
|
|
164
164
|
padding: 1rem 2rem;
|
|
165
165
|
@media (max-width: 960px) {
|
|
@@ -178,11 +178,12 @@ export default defineComponent({
|
|
|
178
178
|
flex-shrink: 0;
|
|
179
179
|
cursor: pointer;
|
|
180
180
|
}
|
|
181
|
-
.saooti-recule,
|
|
181
|
+
.saooti-recule,
|
|
182
|
+
.saooti-avance {
|
|
182
183
|
font-size: 2rem !important;
|
|
183
184
|
}
|
|
184
|
-
.transcript-bg{
|
|
185
|
+
.transcript-bg {
|
|
185
186
|
background: #3e3e3e;
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
|
-
</style>
|
|
189
|
+
</style>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="!playerError"
|
|
4
4
|
:main-progress="percentProgress"
|
|
5
5
|
:secondary-progress="percentLiveProgress"
|
|
6
|
-
:alert-bar="displayAlertBar?durationLivePosition:undefined"
|
|
6
|
+
:alert-bar="displayAlertBar ? durationLivePosition : undefined"
|
|
7
7
|
:class="classProgress"
|
|
8
8
|
@mouseup="seekTo"
|
|
9
9
|
/>
|
|
@@ -15,44 +15,55 @@
|
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script lang="ts">
|
|
18
|
-
import ProgressBar from
|
|
19
|
-
import { CommentPodcast } from
|
|
20
|
-
import { usePlayerStore } from
|
|
21
|
-
import { mapState } from
|
|
22
|
-
import { defineComponent, defineAsyncComponent } from
|
|
23
|
-
const CommentPlayer = defineAsyncComponent(
|
|
18
|
+
import ProgressBar from "../ProgressBar.vue";
|
|
19
|
+
import { CommentPodcast } from "@/stores/class/general/comment";
|
|
20
|
+
import { usePlayerStore } from "@/stores/PlayerStore";
|
|
21
|
+
import { mapState } from "pinia";
|
|
22
|
+
import { defineComponent, defineAsyncComponent } from "vue";
|
|
23
|
+
const CommentPlayer = defineAsyncComponent(
|
|
24
|
+
() => import("../../display/comments/CommentPlayer.vue"),
|
|
25
|
+
);
|
|
24
26
|
export default defineComponent({
|
|
25
|
-
name:
|
|
27
|
+
name: "PlayerProgressBar",
|
|
26
28
|
|
|
27
29
|
components: {
|
|
28
30
|
CommentPlayer,
|
|
29
|
-
ProgressBar
|
|
31
|
+
ProgressBar,
|
|
30
32
|
},
|
|
31
33
|
props: {
|
|
32
|
-
classProgress:{ default: "", type: String},
|
|
33
|
-
showTimeline: { default: false, type: Boolean},
|
|
34
|
-
comments: { default: ()=>[], type: Array as ()=>Array<CommentPodcast>},
|
|
35
|
-
displayAlertBar: { default: false, type: Boolean},
|
|
36
|
-
percentLiveProgress: { default: 0, type: Number},
|
|
37
|
-
durationLivePosition: { default: 0, type: Number},
|
|
38
|
-
playerError: { default: false, type: Boolean},
|
|
39
|
-
listenTime: { default: 0, type: Number},
|
|
34
|
+
classProgress: { default: "", type: String },
|
|
35
|
+
showTimeline: { default: false, type: Boolean },
|
|
36
|
+
comments: { default: () => [], type: Array as () => Array<CommentPodcast> },
|
|
37
|
+
displayAlertBar: { default: false, type: Boolean },
|
|
38
|
+
percentLiveProgress: { default: 0, type: Number },
|
|
39
|
+
durationLivePosition: { default: 0, type: Number },
|
|
40
|
+
playerError: { default: false, type: Boolean },
|
|
41
|
+
listenTime: { default: 0, type: Number },
|
|
40
42
|
},
|
|
41
|
-
emits: [
|
|
42
|
-
|
|
43
|
+
emits: ["updateNotListenTime"],
|
|
44
|
+
|
|
43
45
|
computed: {
|
|
44
|
-
...mapState(usePlayerStore, [
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
...mapState(usePlayerStore, [
|
|
47
|
+
"playerElapsed",
|
|
48
|
+
"playerTotal",
|
|
49
|
+
"playerPodcast",
|
|
50
|
+
"playerLive",
|
|
51
|
+
]),
|
|
52
|
+
percentProgress(): number {
|
|
53
|
+
if (!this.playerElapsed) {
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
47
56
|
return this.playerElapsed * 100;
|
|
48
57
|
},
|
|
49
58
|
},
|
|
50
59
|
|
|
51
|
-
|
|
52
60
|
methods: {
|
|
53
61
|
seekTo(event: MouseEvent): void {
|
|
54
|
-
const audioPlayer: HTMLAudioElement|null =
|
|
55
|
-
|
|
62
|
+
const audioPlayer: HTMLAudioElement | null =
|
|
63
|
+
document.querySelector("#audio-player");
|
|
64
|
+
if (!audioPlayer || null === event.currentTarget) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
56
67
|
const rect = (event.currentTarget as Element).getBoundingClientRect();
|
|
57
68
|
const barWidth = (event.currentTarget as Element).clientWidth;
|
|
58
69
|
const x = event.clientX - rect.left;
|
|
@@ -63,11 +74,10 @@ export default defineComponent({
|
|
|
63
74
|
},
|
|
64
75
|
isSeekTo(audioPlayer: HTMLAudioElement, seekTime: number): void {
|
|
65
76
|
if (this.playerPodcast || this.playerLive) {
|
|
66
|
-
this.$emit(
|
|
77
|
+
this.$emit("updateNotListenTime", seekTime - this.listenTime);
|
|
67
78
|
}
|
|
68
79
|
audioPlayer.currentTime = seekTime;
|
|
69
|
-
}
|
|
70
|
-
|
|
80
|
+
},
|
|
71
81
|
},
|
|
72
|
-
})
|
|
73
|
-
</script>
|
|
82
|
+
});
|
|
83
|
+
</script>
|
|
@@ -4,58 +4,54 @@
|
|
|
4
4
|
class="timeline-button"
|
|
5
5
|
@click="$emit('update:showTimeline', !showTimeline)"
|
|
6
6
|
>
|
|
7
|
-
<div
|
|
8
|
-
class="saooti-down"
|
|
9
|
-
:class="showTimeline ? '' : 'arrow-transform'"
|
|
10
|
-
/>
|
|
7
|
+
<div class="saooti-down" :class="showTimeline ? '' : 'arrow-transform'" />
|
|
11
8
|
<div>Timeline</div>
|
|
12
9
|
</div>
|
|
13
10
|
</template>
|
|
14
11
|
|
|
15
12
|
<script lang="ts">
|
|
16
|
-
import { state } from
|
|
17
|
-
import { defineComponent } from
|
|
18
|
-
import { CommentPodcast } from
|
|
13
|
+
import { state } from "../../../stores/ParamSdkStore";
|
|
14
|
+
import { defineComponent } from "vue";
|
|
15
|
+
import { CommentPodcast } from "@/stores/class/general/comment";
|
|
19
16
|
export default defineComponent({
|
|
20
|
-
name:
|
|
17
|
+
name: "PlayerTimeline",
|
|
21
18
|
|
|
22
19
|
props: {
|
|
23
|
-
showTimeline: { default: false, type: Boolean},
|
|
24
|
-
comments: { default: ()=>[], type: Array as ()=>Array<CommentPodcast>},
|
|
20
|
+
showTimeline: { default: false, type: Boolean },
|
|
21
|
+
comments: { default: () => [], type: Array as () => Array<CommentPodcast> },
|
|
25
22
|
},
|
|
26
|
-
emits:[
|
|
23
|
+
emits: ["update:showTimeline"],
|
|
27
24
|
|
|
28
25
|
computed: {
|
|
29
26
|
isPodcastmaker(): boolean {
|
|
30
|
-
return
|
|
27
|
+
return state.generalParameters.podcastmaker as boolean;
|
|
31
28
|
},
|
|
32
29
|
},
|
|
33
|
-
|
|
34
|
-
})
|
|
30
|
+
});
|
|
35
31
|
</script>
|
|
36
32
|
<style lang="scss">
|
|
37
|
-
@import
|
|
38
|
-
.octopus-app{
|
|
39
|
-
.player-container {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
33
|
+
@import "@scss/_variables.scss";
|
|
34
|
+
.octopus-app {
|
|
35
|
+
.player-container {
|
|
36
|
+
.timeline-button {
|
|
37
|
+
background: black;
|
|
38
|
+
padding: 0.1rem;
|
|
39
|
+
border-radius: 50%;
|
|
40
|
+
width: 70px;
|
|
41
|
+
height: 70px;
|
|
42
|
+
font-size: 0.7rem;
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
align-items: center;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
color: $octopus-primary-color;
|
|
50
|
+
margin-left: 0.5rem;
|
|
51
|
+
@media (max-width: 960px) {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
}
|
|
60
|
-
|
|
61
|
-
</style>
|
|
57
|
+
</style>
|
|
@@ -1,34 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
v-if="playerRadioHistory.length"
|
|
4
|
-
class="d-flex align-items-center mt-3"
|
|
5
|
-
>
|
|
2
|
+
<div v-if="playerRadioHistory.length" class="d-flex align-items-center mt-3">
|
|
6
3
|
<div class="fw-bold me-3">
|
|
7
|
-
{{ $t(
|
|
4
|
+
{{ $t("Previously") + ":" }}
|
|
8
5
|
</div>
|
|
9
6
|
<button
|
|
10
|
-
v-if="indexStart!==0"
|
|
7
|
+
v-if="indexStart !== 0"
|
|
11
8
|
class="btn btn-transparent text-light saooti-left"
|
|
12
9
|
@click="handleResize(0)"
|
|
13
10
|
/>
|
|
14
|
-
<div
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
>
|
|
18
|
-
<div
|
|
19
|
-
v-for="(pastItem, index) in playerRadioHistory"
|
|
11
|
+
<div ref="historyListContainer" class="history-list-container">
|
|
12
|
+
<div
|
|
13
|
+
v-for="(pastItem, index) in playerRadioHistory"
|
|
20
14
|
:key="pastItem.title"
|
|
21
15
|
:ref="'history' + index"
|
|
22
16
|
class="d-flex flex-shrink-0"
|
|
23
17
|
>
|
|
24
18
|
<div class="d-flex flex-shrink-0 align-items-end">
|
|
25
|
-
<span class="me-2 hour-past-item">{{
|
|
19
|
+
<span class="me-2 hour-past-item">{{
|
|
20
|
+
displayTimeItem(pastItem)
|
|
21
|
+
}}</span>
|
|
26
22
|
<span class="me-3">{{ displayPreviousItem(pastItem) }}</span>
|
|
27
23
|
</div>
|
|
28
24
|
</div>
|
|
29
25
|
</div>
|
|
30
26
|
<button
|
|
31
|
-
v-if="indexNotDisplay<=playerRadioHistory.length-1"
|
|
27
|
+
v-if="indexNotDisplay <= playerRadioHistory.length - 1"
|
|
32
28
|
class="btn btn-transparent text-light saooti-right"
|
|
33
29
|
@click="handleResize(indexNotDisplay)"
|
|
34
30
|
/>
|
|
@@ -36,100 +32,107 @@
|
|
|
36
32
|
</template>
|
|
37
33
|
|
|
38
34
|
<script lang="ts">
|
|
39
|
-
import { usePlayerStore } from
|
|
40
|
-
import { mapState } from
|
|
41
|
-
import dayjs from
|
|
42
|
-
import {fetchRadioData} from
|
|
43
|
-
import { defineComponent } from
|
|
44
|
-
import { MediaRadio } from
|
|
35
|
+
import { usePlayerStore } from "@/stores/PlayerStore";
|
|
36
|
+
import { mapState } from "pinia";
|
|
37
|
+
import dayjs from "dayjs";
|
|
38
|
+
import { fetchRadioData } from "../../../mixins/radio/fetchRadioData";
|
|
39
|
+
import { defineComponent } from "vue";
|
|
40
|
+
import { MediaRadio } from "@/stores/class/general/player";
|
|
45
41
|
export default defineComponent({
|
|
46
|
-
name:
|
|
42
|
+
name: "RadioHistory",
|
|
47
43
|
|
|
48
|
-
components: {
|
|
49
|
-
},
|
|
44
|
+
components: {},
|
|
50
45
|
|
|
51
46
|
mixins: [fetchRadioData],
|
|
52
|
-
emits: [
|
|
47
|
+
emits: ["updateNotListenTime"],
|
|
53
48
|
data() {
|
|
54
49
|
return {
|
|
55
50
|
indexStart: 0 as number,
|
|
56
51
|
indexNotDisplay: 100 as number,
|
|
57
52
|
};
|
|
58
53
|
},
|
|
59
|
-
|
|
54
|
+
|
|
60
55
|
computed: {
|
|
61
|
-
...mapState(usePlayerStore, [
|
|
62
|
-
playerRadioHistory(){
|
|
56
|
+
...mapState(usePlayerStore, ["playerRadio"]),
|
|
57
|
+
playerRadioHistory() {
|
|
63
58
|
return this.playerRadio?.history ?? [];
|
|
64
|
-
}
|
|
59
|
+
},
|
|
65
60
|
},
|
|
66
|
-
watch:{
|
|
61
|
+
watch: {
|
|
67
62
|
playerRadioHistory: {
|
|
68
63
|
deep: true,
|
|
69
|
-
immediate:true,
|
|
70
|
-
handler(){
|
|
64
|
+
immediate: true,
|
|
65
|
+
handler() {
|
|
71
66
|
this.$nextTick(() => {
|
|
72
67
|
this.handleResize(0);
|
|
73
68
|
});
|
|
74
|
-
}
|
|
69
|
+
},
|
|
75
70
|
},
|
|
76
71
|
},
|
|
77
72
|
created() {
|
|
78
|
-
window.addEventListener(
|
|
73
|
+
window.addEventListener("resize", () => {
|
|
74
|
+
this.handleResize(0);
|
|
75
|
+
});
|
|
79
76
|
},
|
|
80
77
|
unmounted() {
|
|
81
|
-
window.removeEventListener(
|
|
78
|
+
window.removeEventListener("resize", () => {
|
|
79
|
+
this.handleResize(0);
|
|
80
|
+
});
|
|
82
81
|
},
|
|
83
82
|
mounted() {
|
|
84
83
|
this.handleResize(0);
|
|
85
84
|
},
|
|
86
|
-
methods:{
|
|
87
|
-
handleResize(indexAsked:number): void {
|
|
88
|
-
const historyList =
|
|
89
|
-
if(null === historyList
|
|
85
|
+
methods: {
|
|
86
|
+
handleResize(indexAsked: number): void {
|
|
87
|
+
const historyList = this.$refs.historyListContainer as HTMLElement;
|
|
88
|
+
if (null === historyList || !historyList) {
|
|
90
89
|
return;
|
|
91
90
|
}
|
|
92
91
|
this.indexStart = indexAsked;
|
|
93
92
|
this.indexNotDisplay = this.playerRadioHistory.length;
|
|
94
93
|
for (let index = 0; index < this.playerRadioHistory.length; index++) {
|
|
95
|
-
const el = (this.$refs[
|
|
94
|
+
const el = (this.$refs["history" + index] as Array<HTMLElement>)[0];
|
|
96
95
|
if (!el) continue;
|
|
97
|
-
if(index < this.indexStart && !el.classList.contains(
|
|
98
|
-
el.classList.add(
|
|
96
|
+
if (index < this.indexStart && !el.classList.contains("hid")) {
|
|
97
|
+
el.classList.add("hid");
|
|
99
98
|
continue;
|
|
100
99
|
}
|
|
101
|
-
if (index >= this.indexStart && el.classList.contains(
|
|
102
|
-
el.classList.remove(
|
|
100
|
+
if (index >= this.indexStart && el.classList.contains("hid")) {
|
|
101
|
+
el.classList.remove("hid");
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
|
-
for (
|
|
106
|
-
|
|
104
|
+
for (
|
|
105
|
+
let index = this.indexStart + 1;
|
|
106
|
+
index < this.playerRadioHistory.length;
|
|
107
|
+
index++
|
|
108
|
+
) {
|
|
109
|
+
const el = (this.$refs["history" + index] as Array<HTMLElement>)[0];
|
|
107
110
|
if (!el) continue;
|
|
108
|
-
if (index > this.indexNotDisplay && !el.classList.contains(
|
|
109
|
-
el.classList.add(
|
|
111
|
+
if (index > this.indexNotDisplay && !el.classList.contains("hid")) {
|
|
112
|
+
el.classList.add("hid");
|
|
110
113
|
continue;
|
|
111
114
|
}
|
|
112
115
|
const parent = el.parentElement;
|
|
113
|
-
if (parent && el.offsetLeft + el.clientWidth > parent.clientWidth
|
|
116
|
+
if (parent && el.offsetLeft + el.clientWidth > parent.clientWidth) {
|
|
114
117
|
this.indexNotDisplay = index;
|
|
115
|
-
el.classList.add(
|
|
118
|
+
el.classList.add("hid");
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
},
|
|
119
|
-
displayTimeItem(item: MediaRadio):string{
|
|
120
|
-
return dayjs(item.startDate).format(
|
|
122
|
+
displayTimeItem(item: MediaRadio): string {
|
|
123
|
+
return dayjs(item.startDate).format("HH:mm");
|
|
121
124
|
},
|
|
122
|
-
displayPreviousItem(item: MediaRadio):string{
|
|
123
|
-
if(item.podcastId){
|
|
125
|
+
displayPreviousItem(item: MediaRadio): string {
|
|
126
|
+
if (item.podcastId) {
|
|
124
127
|
return item.title;
|
|
125
128
|
}
|
|
126
129
|
return this.displayTitle(item);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
})
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
});
|
|
130
133
|
</script>
|
|
131
134
|
<style lang="scss">
|
|
132
|
-
.octopus-app{
|
|
135
|
+
.octopus-app {
|
|
133
136
|
.history-list-container {
|
|
134
137
|
display: inline-flex;
|
|
135
138
|
justify-content: flex-start;
|
|
@@ -138,9 +141,9 @@ export default defineComponent({
|
|
|
138
141
|
width: 0;
|
|
139
142
|
position: relative;
|
|
140
143
|
}
|
|
141
|
-
.hour-past-item{
|
|
144
|
+
.hour-past-item {
|
|
142
145
|
font-size: 0.8rem;
|
|
143
146
|
color: #dbdbdb;
|
|
144
147
|
}
|
|
145
148
|
}
|
|
146
|
-
</style>
|
|
149
|
+
</style>
|