@saooti/octopus-sdk 37.0.5 → 37.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/index.html +1 -0
- package/index.ts +21 -21
- package/package.json +26 -20
- package/public/css/fonts/icomoon.eot +0 -0
- package/public/css/fonts/icomoon.svg +1 -1
- package/public/css/fonts/icomoon.ttf +0 -0
- package/public/css/fonts/icomoon.woff +0 -0
- package/public/css/fonts/montserrat/Montserrat-Black.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-BlackItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Bold.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-BoldItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ExtraBold.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ExtraBoldItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ExtraLight.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ExtraLightItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Italic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Light.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-LightItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Medium.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-MediumItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Regular.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-SemiBold.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-SemiBoldItalic.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-Thin.ttf +0 -0
- package/public/css/fonts/montserrat/Montserrat-ThinItalic.ttf +0 -0
- package/public/css/fonts/montserrat/style.css +28 -0
- package/public/css/fonts/style.css +5 -5
- package/src/App.vue +69 -60
- package/src/api/classicCrud.ts +12 -12
- package/src/api/initialize.ts +1 -1
- package/src/assets/bootstrap.scss +9 -0
- package/src/assets/general.scss +1 -1
- package/src/assets/share.scss +1 -1
- package/src/components/display/aggregator/RssSection.vue +3 -3
- package/src/components/display/categories/CategoryChooser.vue +73 -60
- package/src/components/display/categories/CategoryFilter.vue +134 -90
- package/src/components/display/categories/CategoryList.vue +76 -62
- package/src/components/display/comments/AddCommentModal.vue +44 -44
- package/src/components/display/comments/CommentBasicView.vue +38 -30
- package/src/components/display/comments/CommentInput.vue +122 -110
- package/src/components/display/comments/CommentItem.vue +144 -102
- package/src/components/display/comments/CommentList.vue +117 -85
- package/src/components/display/comments/CommentParentInfo.vue +18 -15
- package/src/components/display/comments/CommentPlayer.vue +39 -41
- package/src/components/display/comments/CommentSection.vue +68 -53
- package/src/components/display/edit/EditBox.vue +7 -7
- package/src/components/display/edit/EditBoxRadio.vue +3 -4
- package/src/components/display/edit/EditCommentBox.vue +34 -36
- package/src/components/display/emission/EmissionInlineList.vue +75 -63
- package/src/components/display/emission/EmissionItem.vue +47 -35
- package/src/components/display/emission/EmissionList.vue +111 -83
- package/src/components/display/emission/EmissionPlayerItem.vue +89 -89
- package/src/components/display/filter/AdvancedSearch.vue +81 -73
- package/src/components/display/filter/CategorySearchFilter.vue +27 -25
- package/src/components/display/filter/DateFilter.vue +38 -38
- package/src/components/display/filter/MonetizableFilter.vue +16 -14
- package/src/components/display/filter/ProductorSearch.vue +55 -47
- package/src/components/display/filter/RubriqueChoice.vue +42 -27
- package/src/components/display/filter/RubriqueFilter.vue +130 -85
- package/src/components/display/filter/SearchOrder.vue +16 -11
- package/src/components/display/list/ListPaginate.vue +72 -70
- package/src/components/display/list/PaginateParams.vue +29 -30
- package/src/components/display/list/PaginateSection.vue +210 -0
- package/src/components/display/list/SwiperList.vue +28 -32
- package/src/components/display/live/CountDown.vue +12 -14
- package/src/components/display/live/LiveHorizontalList.vue +60 -50
- package/src/components/display/live/LiveItem.vue +42 -26
- package/src/components/display/live/LiveList.vue +92 -65
- package/src/components/display/live/RadioCurrently.vue +47 -42
- package/src/components/display/live/RadioImage.vue +40 -42
- package/src/components/display/live/RadioItem.vue +15 -22
- package/src/components/display/live/RadioList.vue +24 -21
- package/src/components/display/live/RadioPlanning.vue +105 -68
- package/src/components/display/organisation/OrganisationChooser.vue +58 -42
- package/src/components/display/organisation/OrganisationChooserLight.vue +27 -19
- package/src/components/display/participant/ParticipantItem.vue +89 -76
- package/src/components/display/participant/ParticipantList.vue +90 -60
- package/src/components/display/playlist/PlaylistItem.vue +32 -35
- package/src/components/display/playlist/PlaylistList.vue +70 -52
- package/src/components/display/playlist/PodcastList.vue +61 -50
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +47 -38
- package/src/components/display/podcasts/AnimatorsItem.vue +17 -15
- package/src/components/display/podcasts/ParticipantDescription.vue +21 -22
- package/src/components/display/podcasts/PodcastFilterList.vue +28 -26
- package/src/components/display/podcasts/PodcastImage.vue +129 -138
- package/src/components/display/podcasts/PodcastInlineList.vue +33 -29
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +91 -71
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +94 -85
- package/src/components/display/podcasts/PodcastItem.vue +96 -90
- package/src/components/display/podcasts/PodcastItemInfo.vue +63 -65
- package/src/components/display/podcasts/PodcastList.vue +115 -84
- package/src/components/display/podcasts/PodcastModuleBox.vue +95 -104
- package/src/components/display/podcasts/PodcastPlayBar.vue +45 -32
- package/src/components/display/podcasts/PodcastSwiperList.vue +65 -55
- package/src/components/display/podcasts/TagList.vue +33 -37
- package/src/components/display/rubriques/RubriqueChooser.vue +70 -51
- package/src/components/display/rubriques/RubriqueList.vue +117 -89
- package/src/components/display/sharing/PlayerParameters.vue +45 -42
- package/src/components/display/sharing/QrCode.vue +52 -46
- package/src/components/display/sharing/ShareButtons.vue +25 -27
- package/src/components/display/sharing/ShareButtonsIntern.vue +182 -155
- package/src/components/display/sharing/ShareDistribution.vue +101 -67
- package/src/components/display/sharing/SharePlayer.vue +207 -127
- package/src/components/display/sharing/SharePlayerColors.vue +15 -15
- package/src/components/display/sharing/SharePlayerRadio.vue +62 -39
- package/src/components/display/sharing/SharePlayerTypes.vue +93 -55
- package/src/components/display/sharing/SubscribeButtons.vue +83 -32
- package/src/components/display/studio/RecordingItemButton.vue +3 -3
- package/src/components/form/ClassicCheckbox.vue +32 -31
- package/src/components/form/ClassicDatePicker.vue +47 -49
- package/src/components/form/ClassicInputText.vue +99 -98
- package/src/components/form/ClassicLoading.vue +11 -14
- package/src/components/form/ClassicMultiselect.vue +125 -126
- package/src/components/form/ClassicRadio.vue +15 -18
- package/src/components/form/ClassicSearch.vue +17 -23
- package/src/components/form/ClassicSelect.vue +35 -27
- package/src/components/form/{Wysiwyg.vue → ClassicWysiwyg.vue} +94 -109
- package/src/components/misc/AcpmImage.vue +26 -0
- package/src/components/misc/ClassicAccordion.vue +69 -0
- package/src/components/misc/ClassicNav.vue +117 -0
- package/src/components/misc/ClassicPopover.vue +212 -0
- package/src/components/misc/{Spinner.vue → ClassicSpinner.vue} +14 -15
- package/src/components/misc/ErrorMessage.vue +9 -17
- package/src/components/misc/FooterSection.vue +198 -0
- package/src/components/misc/HomeDropdown.vue +67 -64
- package/src/components/misc/LeftMenu.vue +115 -79
- package/src/components/misc/ProgressBar.vue +36 -32
- package/src/components/misc/SnackBar.vue +169 -0
- package/src/components/misc/TopBar.vue +161 -115
- package/src/components/misc/modal/ClassicModal.vue +99 -103
- package/src/components/misc/modal/ClipboardModal.vue +21 -23
- package/src/components/misc/modal/MessageModal.vue +22 -28
- package/src/components/misc/modal/NewsletterModal.vue +139 -113
- package/src/components/misc/modal/QrCodeModal.vue +14 -17
- package/src/components/misc/modal/ShareModalPlayer.vue +44 -60
- package/src/components/misc/player/PlayerCompact.vue +47 -62
- package/src/components/misc/player/{Player.vue → PlayerComponent.vue} +54 -46
- package/src/components/misc/player/PlayerLarge.vue +66 -62
- package/src/components/misc/player/PlayerProgressBar.vue +40 -30
- package/src/components/misc/player/PlayerTimeline.vue +32 -36
- package/src/components/misc/player/radio/RadioHistory.vue +62 -59
- package/src/components/misc/player/radio/RadioProgressBar.vue +44 -35
- package/src/components/mixins/cookies.ts +11 -10
- package/src/components/mixins/displayMethods.ts +5 -4
- package/src/components/mixins/handle403.ts +9 -9
- package/src/components/mixins/imageProxy.ts +14 -7
- package/src/components/mixins/init.ts +31 -16
- package/src/components/mixins/orgaComputed.ts +7 -7
- package/src/components/mixins/organisationFilter.ts +36 -22
- package/src/components/mixins/player/playerComment.ts +46 -37
- package/src/components/mixins/player/playerDisplay.ts +122 -87
- package/src/components/mixins/player/playerLive.ts +65 -43
- package/src/components/mixins/player/playerLogic.ts +133 -88
- package/src/components/mixins/player/playerTranscript.ts +48 -30
- package/src/components/mixins/radio/fetchRadioData.ts +40 -23
- package/src/components/mixins/selenium.ts +2 -2
- package/src/components/mixins/tagOfMixins.ts +11 -11
- package/src/components/pages/CategoryPage.vue +43 -0
- package/src/components/pages/{Emission.vue → EmissionPage.vue} +98 -67
- package/src/components/pages/{Emissions.vue → EmissionsPage.vue} +51 -44
- package/src/components/pages/Error403Page.vue +20 -19
- package/src/components/pages/HomePage.vue +144 -0
- package/src/components/pages/LivesPage.vue +66 -0
- package/src/components/pages/PageNotFound.vue +33 -22
- package/src/components/pages/{Participant.vue → ParticipantPage.vue} +63 -49
- package/src/components/pages/{Participants.vue → ParticipantsPage.vue} +9 -9
- package/src/components/pages/PlaylistPage.vue +175 -0
- package/src/components/pages/{Playlists.vue → PlaylistsPage.vue} +16 -14
- package/src/components/pages/PodcastPage.vue +365 -0
- package/src/components/pages/PodcastsPage.vue +152 -0
- package/src/components/pages/RadioPage.vue +131 -0
- package/src/components/pages/RubriquePage.vue +45 -0
- package/src/components/pages/{Search.vue → SearchPage.vue} +19 -19
- package/src/helper/dom.ts +1 -1
- package/src/helper/duration.ts +10 -4
- package/src/helper/useEventListener.ts +7 -8
- package/src/i18n.ts +31 -30
- package/src/locale/de.ts +263 -257
- package/src/locale/educationen.ts +13 -13
- package/src/locale/educationfr.ts +1 -1
- package/src/locale/en.ts +323 -324
- package/src/locale/es.ts +325 -318
- package/src/locale/fr.ts +330 -324
- package/src/locale/it.ts +332 -328
- package/src/locale/messages.ts +9 -9
- package/src/locale/sl.ts +315 -319
- package/src/main.ts +28 -31
- package/src/router/router.ts +218 -198
- package/src/shims-tsx.d.ts +1 -1
- package/src/shims-vue.d.ts +1 -1
- package/src/stores/ApiStore.ts +44 -44
- package/src/stores/AuthStore.ts +24 -16
- package/src/stores/CommentStore.ts +13 -11
- package/src/stores/FilterStore.ts +25 -15
- package/src/stores/GeneralStore.ts +15 -15
- package/src/stores/ParamSdkStore.ts +179 -137
- package/src/stores/PlayerStore.ts +139 -125
- package/src/stores/class/adserver/adserverConfig.ts +1 -1
- package/src/stores/class/adserver/adserverOtherEmission.ts +9 -9
- package/src/stores/class/cartouchier/cartouche.ts +4 -4
- package/src/stores/class/cartouchier/cartouchier.ts +2 -2
- package/src/stores/class/conference/conference.ts +10 -9
- package/src/stores/class/conference/conferenceMessage.ts +2 -2
- package/src/stores/class/conference/conferenceParticipant.ts +1 -1
- package/src/stores/class/conference/studioCall.ts +6 -6
- package/src/stores/class/contract/contractOrganisation.ts +5 -5
- package/src/stores/class/ftp/ftpEmission.ts +9 -9
- package/src/stores/class/ftp/testFtpEmission.ts +4 -4
- package/src/stores/class/general/audioView.ts +19 -19
- package/src/stores/class/general/category.ts +1 -1
- package/src/stores/class/general/classicSelectType.ts +2 -3
- package/src/stores/class/general/customPlayer.ts +8 -8
- package/src/stores/class/general/emission.ts +20 -21
- package/src/stores/class/general/fetchParam.ts +8 -2
- package/src/stores/class/general/initState.ts +31 -31
- package/src/stores/class/general/interfacePageable.ts +13 -13
- package/src/stores/class/general/ituneCategory.ts +4 -4
- package/src/stores/class/general/listReturn.ts +12 -12
- package/src/stores/class/general/media.ts +7 -7
- package/src/stores/class/general/organisation.ts +9 -10
- package/src/stores/class/general/pageable.ts +10 -10
- package/src/stores/class/general/participant.ts +7 -7
- package/src/stores/class/general/player.ts +30 -28
- package/src/stores/class/general/playlist.ts +17 -19
- package/src/stores/class/general/podcast.ts +19 -19
- package/src/stores/class/general/sortPageable.ts +4 -4
- package/src/stores/class/general/soundcastCategory.ts +7 -7
- package/src/stores/class/ouestFrance/ofTag.ts +34 -34
- package/src/stores/class/ouestFrance/ofTagInfo.ts +9 -9
- package/src/stores/class/ouestFrance/ofTagPage.ts +7 -7
- package/src/stores/class/ouestFrance/ofTagSeo.ts +7 -7
- package/src/stores/class/ouestFrance/ofTagVente.ts +6 -6
- package/src/stores/class/ouestFrance/ofTagWithParents.ts +20 -20
- package/src/stores/class/radio/canal.ts +4 -4
- package/src/stores/class/radio/live.ts +6 -6
- package/src/stores/class/radio/mix.ts +16 -16
- package/src/stores/class/radio/playlistMedia.ts +7 -7
- package/src/stores/class/radio/recurrence.ts +54 -54
- package/src/stores/class/rss/rssEmission.ts +13 -13
- package/src/stores/class/rss/rssInfo.ts +7 -7
- package/src/stores/class/rubrique/rubriquage.ts +2 -2
- package/src/stores/class/rubrique/rubrique.ts +1 -1
- package/src/stores/class/stat/statArrayIncome.ts +5 -5
- package/src/stores/class/stat/statArrayObject.ts +26 -26
- package/src/stores/class/stat/statGraph.ts +6 -6
- package/src/stores/class/user/person.ts +4 -2
- package/src/stores/class/user/profile.ts +4 -2
- package/src/stores/class/user/userKeycloak.ts +4 -5
- package/src/components/display/list/Paginate.vue +0 -181
- package/src/components/misc/Accordion.vue +0 -78
- package/src/components/misc/Footer.vue +0 -165
- package/src/components/misc/Nav.vue +0 -119
- package/src/components/misc/Popover.vue +0 -193
- package/src/components/misc/Snackbar.vue +0 -168
- package/src/components/pages/Category.vue +0 -41
- package/src/components/pages/Home.vue +0 -125
- package/src/components/pages/Lives.vue +0 -64
- package/src/components/pages/Playlist.vue +0 -164
- package/src/components/pages/Podcast.vue +0 -307
- package/src/components/pages/Podcasts.vue +0 -146
- package/src/components/pages/Radio.vue +0 -122
- package/src/components/pages/Rubrique.vue +0 -42
|
@@ -16,7 +16,7 @@ export interface PlanningLive {
|
|
|
16
16
|
startDate: Date;
|
|
17
17
|
endDate: Date;
|
|
18
18
|
podcastId: number;
|
|
19
|
-
podcastData
|
|
19
|
+
podcastData: {
|
|
20
20
|
title: string;
|
|
21
21
|
artist: string;
|
|
22
22
|
duration: number;
|
|
@@ -25,10 +25,10 @@ export interface PlanningLive {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export function emptyCrudPlanningLive(): CrudPlanningLive {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
return {
|
|
29
|
+
isLive: false,
|
|
30
30
|
dateValid: false,
|
|
31
31
|
canalId: 0,
|
|
32
|
-
liveId:0
|
|
33
|
-
|
|
34
|
-
}
|
|
32
|
+
liveId: 0,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export interface Mix {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
mixId?: number;
|
|
3
|
+
color: string;
|
|
4
|
+
description: string;
|
|
5
|
+
name: string;
|
|
6
|
+
organisationId: string;
|
|
7
|
+
samplings: Array<MediaSampling>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface MediaSampling {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
mediaSamplingId?: number;
|
|
12
|
+
number: number;
|
|
13
|
+
armb?: string;
|
|
14
|
+
playlistId?: number;
|
|
15
|
+
criterions: Array<Criterion>;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface Criterion {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
19
|
+
criterionId?: number;
|
|
20
|
+
criterionValue?: string;
|
|
21
|
+
criterionType?: string;
|
|
22
|
+
mediaField?: string;
|
|
23
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Media } from "../general/media";
|
|
2
2
|
|
|
3
3
|
export interface PlaylistMedia {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
4
|
+
playlistId: number;
|
|
5
|
+
color: string;
|
|
6
|
+
description: string;
|
|
7
|
+
name: string;
|
|
8
|
+
organisationId: string;
|
|
9
|
+
medias: Array<Media>;
|
|
10
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export interface TimeValue{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export interface TimeValue {
|
|
2
|
+
HH: string;
|
|
3
|
+
mm: string;
|
|
4
|
+
ss: string;
|
|
5
5
|
}
|
|
6
6
|
export interface Cron {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
cronId?: number;
|
|
8
|
+
cron: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
timezone: string;
|
|
11
11
|
}
|
|
12
12
|
export interface Tranche {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
recId: number;
|
|
14
|
+
start: number;
|
|
15
|
+
duration: number;
|
|
16
|
+
playlistName?: string;
|
|
17
|
+
playlistId?: number;
|
|
18
|
+
mixId?: number;
|
|
19
19
|
}
|
|
20
|
-
export interface PlanningOccurrence{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
export interface PlanningOccurrence {
|
|
21
|
+
occurrenceId?: number;
|
|
22
|
+
canalId: number;
|
|
23
|
+
chained: boolean;
|
|
24
|
+
startDate: number;
|
|
25
|
+
endDate?: number;
|
|
26
|
+
podcastId?: number;
|
|
27
|
+
nextOccurrence?: number;
|
|
28
|
+
previousOccurrence?: number;
|
|
29
|
+
recurrenceId?: number;
|
|
30
|
+
podcastData: {
|
|
31
31
|
title: string;
|
|
32
32
|
artist: string;
|
|
33
33
|
duration: number;
|
|
@@ -35,42 +35,42 @@ export interface PlanningOccurrence{
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
export interface Recurrence {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
recurrenceId: number;
|
|
39
|
+
name: string;
|
|
40
|
+
canalId: number;
|
|
41
|
+
validityStart: number;
|
|
42
|
+
validityEnd: number;
|
|
43
|
+
crons: Array<Cron>;
|
|
44
|
+
duration: number;
|
|
45
45
|
}
|
|
46
46
|
export interface AmbianceRecurrence extends Recurrence {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
armbPlaylistName?: string;
|
|
48
|
+
mediaPlaylistId?: number;
|
|
49
|
+
mixId?: number;
|
|
50
50
|
}
|
|
51
|
-
export interface PlanningRecurrence extends Recurrence{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
export interface PlanningRecurrence extends Recurrence {
|
|
52
|
+
octopusPlaylistName: string;
|
|
53
|
+
octopusPlaylistId: number;
|
|
54
|
+
chained: boolean;
|
|
55
|
+
exclusions: Array<Exclusion>;
|
|
56
56
|
}
|
|
57
57
|
export interface Exclusion {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
exclusionId: number;
|
|
59
|
+
validityStart: string;
|
|
60
|
+
validityEnd: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export function emptyCron(): Cron {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
return {
|
|
65
|
+
cron: "0 0 0 ? * MON,TUE,WED,THU,FRI,SAT,SUN *",
|
|
66
|
+
label: "",
|
|
67
|
+
timezone: "Europe/Paris",
|
|
68
|
+
};
|
|
69
69
|
}
|
|
70
70
|
export function emptyTimeValue(): TimeValue {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
71
|
+
return {
|
|
72
|
+
HH: "00",
|
|
73
|
+
mm: "00",
|
|
74
|
+
ss: "00",
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export interface RssEmission {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
2
|
+
authorId: number;
|
|
3
|
+
description: string | null;
|
|
4
|
+
email: string;
|
|
5
|
+
emissionId: number;
|
|
6
|
+
forSaooti: boolean;
|
|
7
|
+
guids: Array<string>;
|
|
8
|
+
id: number;
|
|
9
|
+
orgaId: string;
|
|
10
|
+
title: string;
|
|
11
|
+
urlFeed: string;
|
|
12
|
+
userId: string;
|
|
13
|
+
version: number;
|
|
14
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface RssInfo {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
2
|
+
authorName: string;
|
|
3
|
+
description: string;
|
|
4
|
+
detect: number;
|
|
5
|
+
imageUrl: string;
|
|
6
|
+
title: string;
|
|
7
|
+
error?: number;
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rubrique } from
|
|
1
|
+
import { Rubrique } from "./rubrique";
|
|
2
2
|
|
|
3
3
|
export interface Rubriquage {
|
|
4
4
|
organisationId?: string;
|
|
@@ -6,5 +6,5 @@ export interface Rubriquage {
|
|
|
6
6
|
rubriques: Array<Rubrique>;
|
|
7
7
|
title: string;
|
|
8
8
|
homePageOrder?: number | null;
|
|
9
|
-
organisationPrivacy?:string;
|
|
9
|
+
organisationPrivacy?: string;
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface StatArrayIncome {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
2
|
+
id?: number;
|
|
3
|
+
impressions: number;
|
|
4
|
+
income: number;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export interface StatOrigin {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
COMPLETION: string;
|
|
3
|
+
DESKTOP: { count: number; averageCompletion: number };
|
|
4
|
+
MOBILE: { count: number; averageCompletion: number };
|
|
5
|
+
TABLET: { count: number; averageCompletion: number };
|
|
6
|
+
TOTAL: { count: number; averageCompletion?: number };
|
|
7
7
|
}
|
|
8
8
|
export interface InnerStatArrayObject {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
name: string;
|
|
10
|
+
value: StatOrigin;
|
|
11
11
|
}
|
|
12
12
|
export interface StatArrayObject {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
completion: number;
|
|
14
|
+
id?: string;
|
|
15
|
+
origins?: Array<InnerStatArrayObject>;
|
|
16
|
+
originsLive?: Array<InnerStatArrayObject>;
|
|
17
|
+
title: string;
|
|
18
|
+
total: number;
|
|
19
|
+
totalDesktop: number;
|
|
20
|
+
totalMobile: number;
|
|
21
|
+
totalTablet: number;
|
|
22
22
|
}
|
|
23
|
-
export interface InnerStatDataArray{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
export interface InnerStatDataArray {
|
|
24
|
+
[key: string]: {
|
|
25
|
+
name?: string;
|
|
26
|
+
total: number;
|
|
27
|
+
origins: { [key: string]: StatOrigin };
|
|
28
|
+
};
|
|
29
29
|
}
|
|
30
30
|
export interface StatDataArray {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
31
|
+
emissionId?: InnerStatDataArray;
|
|
32
|
+
podcastId?: InnerStatDataArray;
|
|
33
|
+
total: number;
|
|
34
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface StatGraph {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
2
|
+
end: string;
|
|
3
|
+
interval: string;
|
|
4
|
+
start: string;
|
|
5
|
+
points?: { [key: string]: { [key: string]: number } };
|
|
6
|
+
total?: Array<number>;
|
|
7
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Organisation } from
|
|
1
|
+
import { Organisation } from "../general/organisation";
|
|
2
2
|
|
|
3
3
|
export interface Person {
|
|
4
|
-
attributes?: {
|
|
4
|
+
attributes?: {
|
|
5
|
+
[key: string]: string | number | boolean | undefined | Array<string>;
|
|
6
|
+
};
|
|
5
7
|
email: string;
|
|
6
8
|
emailVerified: boolean;
|
|
7
9
|
enabled: true;
|
|
@@ -7,6 +7,8 @@ export interface Profile {
|
|
|
7
7
|
userId: string;
|
|
8
8
|
imageUrl?: string;
|
|
9
9
|
description?: string;
|
|
10
|
-
organisations?:Array<Organisation>;
|
|
11
|
-
attributes?: {
|
|
10
|
+
organisations?: Array<Organisation>;
|
|
11
|
+
attributes?: {
|
|
12
|
+
[key: string]: string | number | boolean | undefined | Array<string>;
|
|
13
|
+
};
|
|
12
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface UserRole{
|
|
1
|
+
export interface UserRole {
|
|
2
2
|
clientRole: boolean;
|
|
3
3
|
composite: boolean;
|
|
4
4
|
containerId: string;
|
|
@@ -6,7 +6,6 @@ export interface UserRole{
|
|
|
6
6
|
name: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
export interface UserKeycloak {
|
|
11
10
|
id?: string;
|
|
12
11
|
email: string;
|
|
@@ -16,9 +15,9 @@ export interface UserKeycloak {
|
|
|
16
15
|
telephone?: string;
|
|
17
16
|
description?: string;
|
|
18
17
|
project?: string;
|
|
19
|
-
realmRoles?: null|Array<UserRole>;
|
|
20
|
-
attributes?: {[key:string]:Array<string|boolean
|
|
18
|
+
realmRoles?: null | Array<UserRole>;
|
|
19
|
+
attributes?: { [key: string]: Array<string | boolean> | undefined };
|
|
21
20
|
password?: string;
|
|
22
21
|
isTemporary?: boolean;
|
|
23
|
-
getted?:boolean;
|
|
22
|
+
getted?: boolean;
|
|
24
23
|
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="paginate-fixed"
|
|
4
|
-
:style="'bottom:'+playerHeight"
|
|
5
|
-
>
|
|
6
|
-
<div class="mx-2">
|
|
7
|
-
{{ $t('Showing items number', {page: (page+1), totalPage: totalPage}) }}
|
|
8
|
-
</div>
|
|
9
|
-
<div class="d-flex flex-nowrap">
|
|
10
|
-
<button
|
|
11
|
-
v-for="paginateButton in buttonsLeft"
|
|
12
|
-
:key="paginateButton.title"
|
|
13
|
-
class="btn"
|
|
14
|
-
:title="paginateButton.title"
|
|
15
|
-
:disabled="paginateButton.disabled"
|
|
16
|
-
@click="paginateButton.action"
|
|
17
|
-
>
|
|
18
|
-
<svg
|
|
19
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
-
width="16"
|
|
21
|
-
height="16"
|
|
22
|
-
fill="currentColor"
|
|
23
|
-
viewBox="0 0 16 16"
|
|
24
|
-
>
|
|
25
|
-
<path
|
|
26
|
-
fill-rule="evenodd"
|
|
27
|
-
:d="paginateButton.path"
|
|
28
|
-
/>
|
|
29
|
-
</svg>
|
|
30
|
-
</button>
|
|
31
|
-
<div
|
|
32
|
-
v-for="pageNumber in pagination"
|
|
33
|
-
:key="pageNumber"
|
|
34
|
-
>
|
|
35
|
-
<span
|
|
36
|
-
v-if="null === pageNumber"
|
|
37
|
-
class="btn"
|
|
38
|
-
>
|
|
39
|
-
...
|
|
40
|
-
</span>
|
|
41
|
-
<button
|
|
42
|
-
v-else
|
|
43
|
-
class="btn"
|
|
44
|
-
:class="{ 'active': page === (pageNumber-1) }"
|
|
45
|
-
@click="changeFirst((pageNumber-1)*rowsPerPage)"
|
|
46
|
-
>
|
|
47
|
-
{{ pageNumber }}
|
|
48
|
-
</button>
|
|
49
|
-
</div>
|
|
50
|
-
<button
|
|
51
|
-
v-for="paginateButton in buttonsRight"
|
|
52
|
-
:key="paginateButton.title"
|
|
53
|
-
class="btn"
|
|
54
|
-
:title="paginateButton.title"
|
|
55
|
-
:disabled="paginateButton.disabled"
|
|
56
|
-
@click="paginateButton.action"
|
|
57
|
-
>
|
|
58
|
-
<svg
|
|
59
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
60
|
-
width="16"
|
|
61
|
-
height="16"
|
|
62
|
-
fill="currentColor"
|
|
63
|
-
viewBox="0 0 16 16"
|
|
64
|
-
>
|
|
65
|
-
<path
|
|
66
|
-
fill-rule="evenodd"
|
|
67
|
-
:d="paginateButton.path"
|
|
68
|
-
/>
|
|
69
|
-
</svg>
|
|
70
|
-
</button>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
</template>
|
|
74
|
-
<script lang="ts">
|
|
75
|
-
import { usePlayerStore } from '@/stores/PlayerStore';
|
|
76
|
-
import { mapState } from 'pinia';
|
|
77
|
-
import { defineComponent } from 'vue';
|
|
78
|
-
export default defineComponent({
|
|
79
|
-
name: "Paginate",
|
|
80
|
-
|
|
81
|
-
props: {
|
|
82
|
-
totalCount: { default: 0, type: Number },
|
|
83
|
-
first: { default: 0, type: Number },
|
|
84
|
-
rowsPerPage:{ default:0, type:Number},
|
|
85
|
-
rangeSize:{default:1, type: Number}
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
emits:['update:first'],
|
|
89
|
-
|
|
90
|
-
computed:{
|
|
91
|
-
...mapState(usePlayerStore, ['playerHeight']),
|
|
92
|
-
buttonsLeft(){
|
|
93
|
-
return [{
|
|
94
|
-
title: this.$t('Go to first page'), disabled: 0===this.first, action: ()=>{this.changeFirst(0)}, path:"M11.854 3.646a.5.5 0 0 1 0 .708L8.207 8l3.647 3.646a.5.5 0 0 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 0 1 .708 0zM4.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 1 0v-13a.5.5 0 0 0-.5-.5z"},
|
|
95
|
-
{title: this.$t('Go to previous page'), disabled: 0===this.first, action: ()=>{this.changeFirst(this.first - this.rowsPerPage)}, path:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"},]
|
|
96
|
-
},
|
|
97
|
-
buttonsRight(){
|
|
98
|
-
return [
|
|
99
|
-
{title: this.$t('Go to next page'), disabled: this.lastFirst===this.first, action: ()=>{this.changeFirst(this.first + this.rowsPerPage)}, path:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"},
|
|
100
|
-
{title: this.$t('Go to last page'), disabled: this.lastFirst===this.first, action: ()=>{this.changeFirst(this.lastFirst)}, path:"M4.146 3.646a.5.5 0 0 0 0 .708L7.793 8l-3.647 3.646a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708 0zM11.5 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13a.5.5 0 0 1 .5-.5z"}]
|
|
101
|
-
},
|
|
102
|
-
page(){
|
|
103
|
-
return Math.floor(this.first/this.rowsPerPage);
|
|
104
|
-
},
|
|
105
|
-
totalPage(){
|
|
106
|
-
return Math.ceil(this.totalCount/this.rowsPerPage);
|
|
107
|
-
},
|
|
108
|
-
pagination(): (number | null)[] {
|
|
109
|
-
if(-1===this.rangeSize){return[];}
|
|
110
|
-
const minPaginationElems = 5 + this.rangeSize * 2;
|
|
111
|
-
let rangeStart = this.totalPage <= minPaginationElems ? 1 : (this.page + 1) - this.rangeSize;
|
|
112
|
-
let rangeEnd =this.totalPage <= minPaginationElems ? this.totalPage : (this.page + 1)+ this.rangeSize;
|
|
113
|
-
rangeEnd = rangeEnd > this.totalPage ? this.totalPage : rangeEnd;
|
|
114
|
-
rangeStart = rangeStart < 1 ? 1 : rangeStart;
|
|
115
|
-
if (this.totalPage > minPaginationElems) {
|
|
116
|
-
return this.getPaginationArrayWithEllipsis(rangeStart, rangeEnd, minPaginationElems);
|
|
117
|
-
}
|
|
118
|
-
const res = [];
|
|
119
|
-
for (let i = rangeStart; i <= rangeEnd; i++) {
|
|
120
|
-
res.push(i);
|
|
121
|
-
}
|
|
122
|
-
return res;
|
|
123
|
-
},
|
|
124
|
-
lastFirst(): number{
|
|
125
|
-
return (this.totalPage-1)*this.rowsPerPage;
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
methods:{
|
|
130
|
-
getPaginationArrayWithEllipsis(rangeStart: number, rangeEnd:number, minPaginationElems:number){
|
|
131
|
-
const res = [];
|
|
132
|
-
const isStartBoundaryReached = rangeStart - 1 < 3;
|
|
133
|
-
const isEndBoundaryReached = this.totalPage - rangeEnd < 3;
|
|
134
|
-
if (isStartBoundaryReached) {
|
|
135
|
-
rangeEnd = minPaginationElems - 2;
|
|
136
|
-
for (let i = 1; i < rangeStart; i++) {
|
|
137
|
-
res.push(i);
|
|
138
|
-
}
|
|
139
|
-
} else {
|
|
140
|
-
res.push(1);
|
|
141
|
-
res.push(null);
|
|
142
|
-
}
|
|
143
|
-
if (isEndBoundaryReached) {
|
|
144
|
-
rangeStart = this.totalPage - (minPaginationElems - 3);
|
|
145
|
-
for (let i = rangeStart; i <= this.totalPage; i++) {
|
|
146
|
-
res.push(i);
|
|
147
|
-
}
|
|
148
|
-
} else {
|
|
149
|
-
for (let i = rangeStart; i <= rangeEnd; i++) {
|
|
150
|
-
res.push(i);
|
|
151
|
-
}
|
|
152
|
-
res.push(null);
|
|
153
|
-
res.push(this.totalPage);
|
|
154
|
-
}
|
|
155
|
-
return res;
|
|
156
|
-
},
|
|
157
|
-
changeFirst(newFirst: number){
|
|
158
|
-
this.$emit('update:first', newFirst);
|
|
159
|
-
},
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
</script>
|
|
163
|
-
<style lang="scss">
|
|
164
|
-
@import '@scss/_variables.scss';
|
|
165
|
-
.octopus-app .paginate-fixed{
|
|
166
|
-
display: flex;
|
|
167
|
-
align-items: center;
|
|
168
|
-
justify-content: flex-end;
|
|
169
|
-
width: 100%;
|
|
170
|
-
position: sticky;
|
|
171
|
-
background: $octopus-background;
|
|
172
|
-
padding: 0.5rem 0;
|
|
173
|
-
z-index: 10;
|
|
174
|
-
.btn{
|
|
175
|
-
border-radius: 0;
|
|
176
|
-
&.active{
|
|
177
|
-
background: $primaryColorMoreTransparent ;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
</style>
|