@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
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import DurationHelper from
|
|
2
|
-
import { Media } from
|
|
3
|
-
import { MediaRadio, Radio } from
|
|
4
|
-
import { Podcast } from
|
|
5
|
-
import { defineStore } from
|
|
6
|
-
interface Transcript{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import DurationHelper from "../helper/duration";
|
|
2
|
+
import { Media } from "@/stores/class/general/media";
|
|
3
|
+
import { MediaRadio, Radio } from "@/stores/class/general/player";
|
|
4
|
+
import { Podcast } from "@/stores/class/general/podcast";
|
|
5
|
+
import { defineStore } from "pinia";
|
|
6
|
+
interface Transcript {
|
|
7
|
+
actual: number;
|
|
8
|
+
actualText: string;
|
|
9
|
+
value: Array<{ endTime: number; startTime: number; text: string }>;
|
|
10
10
|
}
|
|
11
|
-
interface PlayerState{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
interface PlayerState {
|
|
12
|
+
playerStatus: string; //STOPPED, LOADING, PLAYING, PAUSED
|
|
13
|
+
playerPodcast: Podcast | undefined;
|
|
14
|
+
playerVolume?: number; //From 0 to 1
|
|
15
|
+
playerElapsed: number; //From 0 to 1
|
|
16
|
+
playerTotal: number;
|
|
17
|
+
playerMedia: Media | undefined;
|
|
18
|
+
playerLive: Podcast | undefined;
|
|
19
|
+
playerRadio: Radio | undefined;
|
|
20
|
+
playerStop?: boolean;
|
|
21
|
+
playerSeekTime?: number;
|
|
22
|
+
playerTranscript?: Transcript;
|
|
23
|
+
playerLargeVersion: boolean;
|
|
24
24
|
}
|
|
25
|
-
export const usePlayerStore = defineStore(
|
|
25
|
+
export const usePlayerStore = defineStore("PlayerStore", {
|
|
26
26
|
state: (): PlayerState => ({
|
|
27
|
-
playerStatus:
|
|
27
|
+
playerStatus: "STOPPED",
|
|
28
28
|
playerPodcast: undefined,
|
|
29
29
|
playerVolume: 1,
|
|
30
30
|
playerElapsed: 0,
|
|
@@ -32,123 +32,137 @@ export const usePlayerStore = defineStore('PlayerStore', {
|
|
|
32
32
|
playerMedia: undefined,
|
|
33
33
|
playerLive: undefined,
|
|
34
34
|
playerRadio: undefined,
|
|
35
|
-
playerSeekTime:0,
|
|
36
|
-
|
|
35
|
+
playerSeekTime: 0,
|
|
36
|
+
playerLargeVersion: false,
|
|
37
37
|
}),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
if (this.playerLargeVersion) return
|
|
42
|
-
if (window.innerWidth > 450) return
|
|
43
|
-
return
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
if (
|
|
38
|
+
getters: {
|
|
39
|
+
playerHeight() {
|
|
40
|
+
if ("STOPPED" === this.playerStatus) return 0;
|
|
41
|
+
if (this.playerLargeVersion) return "27rem";
|
|
42
|
+
if (window.innerWidth > 450) return "5rem";
|
|
43
|
+
return "3.5rem";
|
|
44
|
+
},
|
|
45
|
+
playedTime(): string {
|
|
46
|
+
if (
|
|
47
|
+
this.playerElapsed &&
|
|
48
|
+
this.playerElapsed > 0 &&
|
|
49
|
+
this.playerTotal &&
|
|
50
|
+
this.playerTotal > 0
|
|
51
|
+
) {
|
|
47
52
|
return DurationHelper.formatDuration(
|
|
48
|
-
Math.round(this.playerElapsed * this.playerTotal)
|
|
53
|
+
Math.round(this.playerElapsed * this.playerTotal),
|
|
49
54
|
);
|
|
50
55
|
}
|
|
51
|
-
return
|
|
56
|
+
return "--:--";
|
|
52
57
|
},
|
|
53
|
-
|
|
54
|
-
if (
|
|
58
|
+
totalTime(): string {
|
|
59
|
+
if (
|
|
60
|
+
this.playerElapsed &&
|
|
61
|
+
this.playerElapsed > 0 &&
|
|
62
|
+
this.playerTotal &&
|
|
63
|
+
this.playerTotal > 0
|
|
64
|
+
)
|
|
55
65
|
return DurationHelper.formatDuration(Math.round(this.playerTotal));
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
return "--:--";
|
|
67
|
+
},
|
|
68
|
+
isPlaying(): boolean {
|
|
69
|
+
return "PLAYING" === this.playerStatus;
|
|
70
|
+
},
|
|
71
|
+
isPaused(): boolean {
|
|
72
|
+
return "PAUSED" === this.playerStatus;
|
|
73
|
+
},
|
|
74
|
+
podcastImage(): string {
|
|
75
|
+
if (this.playerRadio) {
|
|
76
|
+
return this.playerRadio.podcast?.imageUrl ?? "";
|
|
77
|
+
}
|
|
68
78
|
return this.playerPodcast?.imageUrl ?? "";
|
|
69
|
-
},
|
|
70
|
-
emissionName(): string {
|
|
71
|
-
return this.playerPodcast?.emission?.name ?? "";
|
|
72
79
|
},
|
|
73
|
-
|
|
80
|
+
emissionName(): string {
|
|
81
|
+
return this.playerPodcast?.emission?.name ?? "";
|
|
82
|
+
},
|
|
83
|
+
transcriptText(): string {
|
|
74
84
|
return this.playerTranscript?.actualText ?? "";
|
|
75
85
|
},
|
|
76
|
-
radioUrl(): string{
|
|
86
|
+
radioUrl(): string {
|
|
77
87
|
return this.playerRadio?.url ?? "";
|
|
78
|
-
}
|
|
88
|
+
},
|
|
79
89
|
},
|
|
80
90
|
actions: {
|
|
81
91
|
playerPlay(param?: any) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
playerChangeStatus(isPause: boolean) {
|
|
120
|
-
if (isPause) {
|
|
121
|
-
this.playerStatus = 'PAUSED';
|
|
122
|
-
} else {
|
|
123
|
-
this.playerStatus = 'PLAYING';
|
|
124
|
-
}
|
|
125
|
-
},
|
|
92
|
+
if (!param) {
|
|
93
|
+
this.playerStatus = "STOPPED";
|
|
94
|
+
this.playerPodcast = undefined;
|
|
95
|
+
this.playerMedia = undefined;
|
|
96
|
+
this.playerLive = undefined;
|
|
97
|
+
this.playerRadio = undefined;
|
|
98
|
+
this.playerElapsed = 0;
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (
|
|
102
|
+
(this.playerPodcast &&
|
|
103
|
+
this.playerPodcast.podcastId === param.podcastId) ||
|
|
104
|
+
(this.playerMedia && this.playerMedia.mediaId === param.mediaId) ||
|
|
105
|
+
(this.playerLive && this.playerLive.conferenceId === param.conferenceId)
|
|
106
|
+
) {
|
|
107
|
+
//Do nothing
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
this.playerStatus = "LOADING";
|
|
111
|
+
this.playerPodcast = undefined;
|
|
112
|
+
this.playerMedia = undefined;
|
|
113
|
+
this.playerLive = undefined;
|
|
114
|
+
this.playerRadio = undefined;
|
|
115
|
+
this.playerElapsed = 0;
|
|
116
|
+
if (
|
|
117
|
+
param.conferenceId &&
|
|
118
|
+
(!param.podcastId || param.processingStatus !== "READY")
|
|
119
|
+
) {
|
|
120
|
+
this.playerLive = param;
|
|
121
|
+
} else if (param.podcastId) {
|
|
122
|
+
this.playerPodcast = param;
|
|
123
|
+
} else if (param.mediaId) {
|
|
124
|
+
this.playerMedia = param;
|
|
125
|
+
} else if (param.canalId) {
|
|
126
|
+
this.playerRadio = { ...param, ...{ isInit: false } };
|
|
127
|
+
}
|
|
128
|
+
},
|
|
126
129
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
playerChangeStatus(isPause: boolean) {
|
|
131
|
+
if (isPause) {
|
|
132
|
+
this.playerStatus = "PAUSED";
|
|
133
|
+
} else {
|
|
134
|
+
this.playerStatus = "PLAYING";
|
|
135
|
+
}
|
|
136
|
+
},
|
|
130
137
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
this.playerRadio.history = history;
|
|
135
|
-
},
|
|
136
|
-
playerRadioPodcast(podcast: Podcast|undefined){
|
|
137
|
-
if(!this.playerRadio){return;}
|
|
138
|
-
this.playerRadio.podcast = podcast;
|
|
139
|
-
},
|
|
138
|
+
playerUpdateSeekTime(seekTime: number) {
|
|
139
|
+
this.playerSeekTime = seekTime;
|
|
140
|
+
},
|
|
140
141
|
|
|
142
|
+
playerMetadata(metadata: MediaRadio, history: Array<MediaRadio>) {
|
|
143
|
+
if (!this.playerRadio) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
this.playerRadio.metadata = metadata;
|
|
147
|
+
this.playerRadio.history = history;
|
|
148
|
+
},
|
|
149
|
+
playerRadioPodcast(podcast: Podcast | undefined) {
|
|
150
|
+
if (!this.playerRadio) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
this.playerRadio.podcast = podcast;
|
|
154
|
+
},
|
|
141
155
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
156
|
+
playerUpdateElapsed(elapsed: number, total: number) {
|
|
157
|
+
this.playerElapsed = elapsed;
|
|
158
|
+
this.playerTotal = total;
|
|
159
|
+
},
|
|
146
160
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
})
|
|
161
|
+
playerUpdateTranscript(transcript?: Transcript) {
|
|
162
|
+
this.playerTranscript = transcript;
|
|
163
|
+
},
|
|
164
|
+
playerUpdateLargeVersion(largeVersion: boolean) {
|
|
165
|
+
this.playerLargeVersion = largeVersion;
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
});
|
|
@@ -2,7 +2,7 @@ import { AdserverTiming } from "./adserverTiming";
|
|
|
2
2
|
|
|
3
3
|
export interface AdserverConfig {
|
|
4
4
|
activeServer?: string; // SOUNDCAST, ADSWIZZ, TARGETSPOT
|
|
5
|
-
config: {[key:string]:
|
|
5
|
+
config: { [key: string]: Array<AdserverTiming> };
|
|
6
6
|
minIntervalDuration?: number;
|
|
7
7
|
minTailDuration?: number;
|
|
8
8
|
soundcastDefaultSoundcastId?: string;
|
|
@@ -2,12 +2,12 @@ import { AdserverTiming } from "./adserverTiming";
|
|
|
2
2
|
import { Organisation } from "../general/organisation";
|
|
3
3
|
|
|
4
4
|
export interface AdserverOtherEmission {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
5
|
+
config: {
|
|
6
|
+
doublets: Array<AdserverTiming>;
|
|
7
|
+
minIntervalDuration: number;
|
|
8
|
+
minTailDuration: number;
|
|
9
|
+
server: string;
|
|
10
|
+
};
|
|
11
|
+
elected: string;
|
|
12
|
+
organisation: Organisation;
|
|
13
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Media } from
|
|
1
|
+
import { Media } from "../general/media";
|
|
2
2
|
|
|
3
3
|
export interface Cartouche {
|
|
4
4
|
mediaId?: number;
|
|
@@ -9,7 +9,7 @@ export interface Cartouche {
|
|
|
9
9
|
level?: number;
|
|
10
10
|
id: number;
|
|
11
11
|
width: number;
|
|
12
|
-
interval?:number;
|
|
13
|
-
elapsed?:number;
|
|
14
|
-
loop?:boolean;
|
|
12
|
+
interval?: number;
|
|
13
|
+
elapsed?: number;
|
|
14
|
+
loop?: boolean;
|
|
15
15
|
}
|
|
@@ -4,6 +4,6 @@ export interface Cartouchier {
|
|
|
4
4
|
cartouchierId?: number;
|
|
5
5
|
title: string;
|
|
6
6
|
organisationId: string;
|
|
7
|
-
cartouches: {[key:string]
|
|
8
|
-
cartoucheComplete?: {[key:string]
|
|
7
|
+
cartouches: { [key: string]: Cartouche };
|
|
8
|
+
cartoucheComplete?: { [key: string]: Cartouche };
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface Conference{
|
|
1
|
+
export interface Conference {
|
|
2
2
|
album?: string;
|
|
3
3
|
artist?: string;
|
|
4
4
|
conferenceId: number;
|
|
@@ -14,22 +14,23 @@ export interface Conference{
|
|
|
14
14
|
mediaId?: number;
|
|
15
15
|
organisationId?: string;
|
|
16
16
|
participants?: Array<{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
conferenceGuestId: number;
|
|
18
|
+
fullName: string;
|
|
19
|
+
keycloakId: string;
|
|
20
|
+
kind: string;
|
|
21
|
+
sipIdentifier: string;
|
|
22
|
+
}>;
|
|
22
23
|
phone?: string;
|
|
23
24
|
podcastId?: number;
|
|
24
|
-
prefix?: {[key:string]:string};
|
|
25
|
+
prefix?: { [key: string]: string };
|
|
25
26
|
queueCode?: string;
|
|
26
27
|
recordDate?: string;
|
|
27
28
|
recordingPort?: number;
|
|
28
29
|
status?: string;
|
|
29
30
|
title: string;
|
|
30
31
|
token?: string;
|
|
31
|
-
orderStatus?:number;
|
|
32
|
+
orderStatus?: number;
|
|
32
33
|
websocket?: string;
|
|
33
34
|
interval?: ReturnType<typeof setTimeout>;
|
|
34
|
-
duration?:number;
|
|
35
|
+
duration?: number;
|
|
35
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Conference } from
|
|
1
|
+
import { Conference } from "./conference";
|
|
2
2
|
|
|
3
3
|
export interface ConferenceMessage {
|
|
4
4
|
conference?: Conference;
|
|
@@ -7,4 +7,4 @@ export interface ConferenceMessage {
|
|
|
7
7
|
messageId?: number;
|
|
8
8
|
userId: string;
|
|
9
9
|
username: string;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface StudioCall {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
2
|
+
callId: string;
|
|
3
|
+
display: string;
|
|
4
|
+
muted: boolean;
|
|
5
|
+
number: string;
|
|
6
|
+
result: boolean;
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Contract } from "./contract";
|
|
2
2
|
|
|
3
|
-
export interface ContractOrganisation{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
3
|
+
export interface ContractOrganisation {
|
|
4
|
+
contractList: Array<Contract>;
|
|
5
|
+
enable: boolean;
|
|
6
|
+
valide: boolean;
|
|
7
|
+
}
|
|
@@ -21,21 +21,21 @@ export interface FtpEmission {
|
|
|
21
21
|
}
|
|
22
22
|
export function emptyFtpEmission(): FtpEmission {
|
|
23
23
|
return {
|
|
24
|
-
email:
|
|
24
|
+
email: "",
|
|
25
25
|
serverId: undefined,
|
|
26
26
|
emissionId: undefined,
|
|
27
|
-
regexp:
|
|
28
|
-
directory:
|
|
29
|
-
formatDescription:
|
|
30
|
-
formatTitre:
|
|
27
|
+
regexp: "",
|
|
28
|
+
directory: "",
|
|
29
|
+
formatDescription: "",
|
|
30
|
+
formatTitre: "",
|
|
31
31
|
rubriqueIds: [],
|
|
32
32
|
guests: [],
|
|
33
|
-
formatDate:
|
|
34
|
-
parsingDate:
|
|
33
|
+
formatDate: "",
|
|
34
|
+
parsingDate: "",
|
|
35
35
|
visibility: true,
|
|
36
|
-
commentable:
|
|
36
|
+
commentable: "INHERIT",
|
|
37
37
|
animators: [],
|
|
38
38
|
tags: [],
|
|
39
|
-
importType:
|
|
39
|
+
importType: "standard",
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface TestFtpEmission {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
2
|
+
validePodcast?: number;
|
|
3
|
+
tooLong?: number;
|
|
4
|
+
spoilPodcast?: number;
|
|
5
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { Podcast } from "./podcast";
|
|
2
2
|
export interface AudioView {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
audioStorageUrl: string;
|
|
4
|
+
creationParam: Podcast;
|
|
5
|
+
logs: Array<string>;
|
|
6
|
+
sendSuccess: boolean;
|
|
7
|
+
publisherId: string;
|
|
8
|
+
creation: Date;
|
|
9
|
+
creationPod: string;
|
|
10
|
+
duration: number;
|
|
11
|
+
id: number;
|
|
12
|
+
immediate: boolean;
|
|
13
|
+
localUrl: string;
|
|
14
|
+
notifiedEmail: string;
|
|
15
|
+
originalName: string;
|
|
16
|
+
original: Int8Array;
|
|
17
|
+
size: number;
|
|
18
|
+
status: string;
|
|
19
|
+
tags: { [key: string]: string };
|
|
20
|
+
priority: string;
|
|
21
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface CustomPlayer{
|
|
2
|
-
customId: number
|
|
3
|
-
organisationId: string
|
|
4
|
-
template: string
|
|
5
|
-
css: string
|
|
6
|
-
typePlayer: string
|
|
7
|
-
name: string
|
|
8
|
-
selected: boolean
|
|
1
|
+
export interface CustomPlayer {
|
|
2
|
+
customId: number;
|
|
3
|
+
organisationId: string;
|
|
4
|
+
template: string;
|
|
5
|
+
css: string;
|
|
6
|
+
typePlayer: string;
|
|
7
|
+
name: string;
|
|
8
|
+
selected: boolean;
|
|
9
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AdserverConfig } from
|
|
2
|
-
import { Organisation } from
|
|
3
|
-
import { Person } from
|
|
1
|
+
import { AdserverConfig } from "../adserver/adserverConfig";
|
|
2
|
+
import { Organisation } from "./organisation";
|
|
3
|
+
import { Person } from "../user/person";
|
|
4
4
|
|
|
5
5
|
export interface Emission {
|
|
6
6
|
imageUrl?: string;
|
|
7
|
-
annotations?: {[key: string]:string|number|boolean|undefined};
|
|
7
|
+
annotations?: { [key: string]: string | number | boolean | undefined };
|
|
8
8
|
description: string;
|
|
9
9
|
emissionId: number;
|
|
10
10
|
iabIds?: Array<number>;
|
|
@@ -17,23 +17,23 @@ export interface Emission {
|
|
|
17
17
|
publisher?: Person;
|
|
18
18
|
copyright?: string;
|
|
19
19
|
optItunesCategories?: Array<string>;
|
|
20
|
-
adConfigs?: {[key:string]: AdserverConfig};
|
|
20
|
+
adConfigs?: { [key: string]: AdserverConfig };
|
|
21
21
|
urlFeed?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export function emptyEmissionData(): Emission{
|
|
24
|
+
export function emptyEmissionData(): Emission {
|
|
25
25
|
return {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
}
|
|
26
|
+
emissionId: 0,
|
|
27
|
+
name: "",
|
|
28
|
+
description: "",
|
|
29
|
+
imageUrl: "",
|
|
30
|
+
iabIds: undefined,
|
|
31
|
+
orga: {
|
|
32
|
+
id: "",
|
|
33
|
+
name: "",
|
|
34
|
+
imageUrl: "",
|
|
35
|
+
},
|
|
36
|
+
rubriqueIds: [],
|
|
37
|
+
monetisable: "UNDEFINED",
|
|
38
|
+
};
|
|
39
|
+
}
|