@saooti/octopus-sdk 1.0.0 → 29.0.2
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 +73 -0
- package/index.d.ts +4 -0
- package/index.ts +12 -0
- package/package.json +61 -39
- package/public/css/fonts/saooti-ui.eot +0 -0
- package/public/css/fonts/saooti-ui.svg +30 -19
- package/public/css/fonts/saooti-ui.ttf +0 -0
- package/public/css/fonts/saooti-ui.woff +0 -0
- package/public/css/fonts/style.css +48 -5
- package/public/img/ACPM.png +0 -0
- package/public/img/article.png +0 -0
- package/src/App.vue +97 -31
- package/src/api/comments.ts +3 -1
- package/src/api/emissions.ts +5 -2
- package/src/api/initialize.ts +3 -2
- package/src/api/podcasts.ts +5 -2
- package/src/api/profile.ts +4 -2
- package/src/api/studio.ts +12 -1
- package/src/assets/bootstrap-diff.scss +265 -0
- package/src/assets/form.scss +23 -0
- package/src/assets/general.scss +47 -20
- package/src/assets/modal.scss +9 -10
- package/src/assets/multiselect.scss +19 -2
- package/src/assets/octopus-library.scss +16 -4
- package/src/assets/share.scss +343 -0
- package/src/components/display/aggregator/RssSection.vue +4 -4
- package/src/components/display/categories/CategoryChooser.vue +152 -105
- package/src/components/display/categories/CategoryFilter.vue +108 -0
- package/src/components/display/categories/CategoryList.vue +138 -109
- package/src/components/display/comments/AddCommentModal.vue +104 -87
- package/src/components/display/comments/CommentInput.vue +137 -118
- package/src/components/display/comments/CommentItem.vue +155 -137
- package/src/components/display/comments/CommentList.vue +142 -120
- package/src/components/display/comments/CommentParentInfo.vue +39 -35
- package/src/components/display/comments/CommentPlayer.vue +54 -48
- package/src/components/display/comments/CommentSection.vue +57 -58
- package/src/components/display/edit/EditBox.vue +4 -4
- package/src/components/display/edit/EditCommentBox.vue +25 -31
- package/src/components/display/emission/EmissionChooser.vue +82 -80
- package/src/components/display/emission/EmissionInlineList.vue +118 -105
- package/src/components/display/emission/EmissionItem.vue +66 -167
- package/src/components/display/emission/EmissionList.vue +96 -122
- package/src/components/display/emission/EmissionPlayerItem.vue +131 -126
- package/src/components/display/filter/AdvancedSearch.vue +306 -372
- package/src/components/display/filter/CategoryFilter.vue +117 -0
- package/src/components/display/filter/MonetizableFilter.vue +24 -10
- package/src/components/display/filter/ProductorSearch.vue +131 -135
- package/src/components/display/filter/RubriqueChoice.vue +104 -0
- package/src/components/display/filter/RubriqueFilter.vue +235 -0
- package/src/components/display/live/CountDown.vue +30 -29
- package/src/components/display/live/LiveHorizontalList.vue +40 -34
- package/src/components/display/live/LiveItem.vue +146 -158
- package/src/components/display/live/LiveList.vue +167 -154
- package/src/components/display/organisation/OrganisationChooser.vue +125 -124
- package/src/components/display/organisation/OrganisationChooserLight.vue +40 -47
- package/src/components/display/participant/ParticipantItem.vue +92 -108
- package/src/components/display/participant/ParticipantList.vue +76 -69
- package/src/components/display/playlist/PlaylistItem.vue +45 -56
- package/src/components/display/playlist/PlaylistList.vue +57 -48
- package/src/components/display/playlist/PodcastList.vue +94 -70
- package/src/components/display/podcasts/AnimatorsItem.vue +26 -23
- package/src/components/display/podcasts/ParticipantDescription.vue +115 -0
- package/src/components/display/podcasts/PodcastFilterList.vue +84 -85
- package/src/components/display/podcasts/PodcastImage.vue +244 -208
- package/src/components/display/podcasts/PodcastInlineList.vue +145 -207
- package/src/components/display/podcasts/PodcastItem.vue +150 -132
- package/src/components/display/podcasts/PodcastList.vue +89 -110
- package/src/components/display/podcasts/TagList.vue +23 -16
- package/src/components/display/rubriques/RubriqueChooser.vue +137 -123
- package/src/components/display/rubriques/RubriqueList.vue +227 -0
- package/src/components/display/sharing/PlayerParameters.vue +154 -106
- package/src/components/display/sharing/QrCode.vue +58 -0
- package/src/components/display/sharing/ShareButtons.vue +214 -92
- package/src/components/display/sharing/ShareDistribution.vue +110 -121
- package/src/components/display/sharing/SharePlayer.vue +245 -190
- package/src/components/display/sharing/SubscribeButtons.vue +130 -66
- package/src/components/display/studio/RecordingItemButton.vue +4 -4
- package/src/components/misc/ErrorMessage.vue +21 -16
- package/src/components/misc/Footer.vue +131 -66
- package/src/components/misc/HomeDropdown.vue +166 -123
- package/src/components/misc/LeftMenu.vue +151 -134
- package/src/components/misc/Player.vue +332 -328
- package/src/components/misc/Snackbar.vue +27 -29
- package/src/components/misc/TopBar.vue +204 -174
- package/src/components/misc/modal/ClipboardModal.vue +46 -26
- package/src/components/misc/modal/MessageModal.vue +67 -51
- package/src/components/misc/modal/NewsletterModal.vue +179 -136
- package/src/components/misc/modal/QrCodeModal.vue +83 -0
- package/src/components/misc/modal/ShareModalPlayer.vue +133 -74
- package/src/components/mixins/functions.ts +21 -18
- package/src/components/mixins/init.ts +24 -0
- package/src/components/mixins/organisationFilter.ts +24 -0
- package/src/components/pages/Category.vue +26 -26
- package/src/components/pages/Emission.vue +120 -92
- package/src/components/pages/Emissions.vue +109 -86
- package/src/components/pages/Home.vue +70 -16
- package/src/components/pages/Lives.vue +57 -47
- package/src/components/pages/Participant.vue +93 -77
- package/src/components/pages/Participants.vue +44 -31
- package/src/components/pages/Playlist.vue +63 -52
- package/src/components/pages/Playlists.vue +41 -39
- package/src/components/pages/Podcast.vue +265 -251
- package/src/components/pages/Podcasts.vue +135 -104
- package/src/components/pages/Rubrique.vue +25 -19
- package/src/components/pages/Search.vue +71 -67
- package/src/helper/dom.ts +2 -2
- package/src/helper/duration.ts +18 -8
- package/src/locale/educationen.ts +14 -0
- package/src/locale/en.ts +299 -1
- package/src/locale/fr.ts +25 -10
- package/src/locale/messages.ts +3 -2
- package/src/main.ts +54 -32
- package/src/router/router.ts +184 -159
- package/src/shims-tsx.d.ts +13 -0
- package/src/shims-vue-recaptcha-v3.d.ts +9 -0
- package/src/shims-vue.d.ts +5 -6
- package/src/store/AppStore.ts +36 -171
- package/src/store/class/category.ts +8 -0
- package/src/store/class/comment.ts +17 -0
- package/src/store/class/conference.ts +27 -0
- package/src/store/class/customPlayer.ts +8 -0
- package/src/store/class/emission.ts +20 -0
- package/src/store/class/fetchParam.ts +16 -0
- package/src/store/class/media.ts +13 -0
- package/src/store/class/organisation.ts +19 -0
- package/src/store/class/participant.ts +12 -0
- package/src/store/class/person.ts +13 -0
- package/src/store/class/player.ts +12 -0
- package/src/store/class/playlist.ts +15 -0
- package/src/store/class/podcast.ts +37 -0
- package/src/store/class/rubriquage.ts +9 -0
- package/src/store/class/rubriquageFilter.ts +5 -0
- package/src/store/class/rubrique.ts +8 -0
- package/src/store/paramStore.ts +70 -29
- package/src/store/typeAppStore.ts +171 -237
- package/src/vuex-shim.d.ts +8 -0
- package/tsconfig.json +4 -0
- package/vue.config.js +14 -0
- package/public/img/ACPM.PNG +0 -0
- package/src/assets/bootstrap_scss/_alert.scss +0 -51
- package/src/assets/bootstrap_scss/_badge.scss +0 -54
- package/src/assets/bootstrap_scss/_breadcrumb.scss +0 -42
- package/src/assets/bootstrap_scss/_button-group.scss +0 -164
- package/src/assets/bootstrap_scss/_buttons.scss +0 -291
- package/src/assets/bootstrap_scss/_card.scss +0 -278
- package/src/assets/bootstrap_scss/_carousel.scss +0 -197
- package/src/assets/bootstrap_scss/_close.scss +0 -41
- package/src/assets/bootstrap_scss/_code.scss +0 -48
- package/src/assets/bootstrap_scss/_custom-forms.scss +0 -522
- package/src/assets/bootstrap_scss/_dropdown.scss +0 -201
- package/src/assets/bootstrap_scss/_forms.scss +0 -352
- package/src/assets/bootstrap_scss/_functions.scss +0 -134
- package/src/assets/bootstrap_scss/_grid.scss +0 -69
- package/src/assets/bootstrap_scss/_images.scss +0 -42
- package/src/assets/bootstrap_scss/_input-group.scss +0 -191
- package/src/assets/bootstrap_scss/_jumbotron.scss +0 -17
- package/src/assets/bootstrap_scss/_list-group.scss +0 -158
- package/src/assets/bootstrap_scss/_media.scss +0 -8
- package/src/assets/bootstrap_scss/_mixins.scss +0 -47
- package/src/assets/bootstrap_scss/_modal.scss +0 -243
- package/src/assets/bootstrap_scss/_nav.scss +0 -120
- package/src/assets/bootstrap_scss/_navbar.scss +0 -324
- package/src/assets/bootstrap_scss/_pagination.scss +0 -74
- package/src/assets/bootstrap_scss/_popover.scss +0 -170
- package/src/assets/bootstrap_scss/_print.scss +0 -141
- package/src/assets/bootstrap_scss/_progress.scss +0 -46
- package/src/assets/bootstrap_scss/_reboot.scss +0 -482
- package/src/assets/bootstrap_scss/_root.scss +0 -20
- package/src/assets/bootstrap_scss/_spinners.scss +0 -55
- package/src/assets/bootstrap_scss/_tables.scss +0 -185
- package/src/assets/bootstrap_scss/_toasts.scss +0 -44
- package/src/assets/bootstrap_scss/_tooltip.scss +0 -115
- package/src/assets/bootstrap_scss/_transitions.scss +0 -20
- package/src/assets/bootstrap_scss/_type.scss +0 -125
- package/src/assets/bootstrap_scss/_utilities.scss +0 -17
- package/src/assets/bootstrap_scss/_variables.scss +0 -1145
- package/src/assets/bootstrap_scss/bootstrap-grid.scss +0 -29
- package/src/assets/bootstrap_scss/bootstrap-reboot.scss +0 -12
- package/src/assets/bootstrap_scss/bootstrap.scss +0 -44
- package/src/assets/bootstrap_scss/mixins/_alert.scss +0 -13
- package/src/assets/bootstrap_scss/mixins/_background-variant.scss +0 -22
- package/src/assets/bootstrap_scss/mixins/_badge.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_border-radius.scss +0 -63
- package/src/assets/bootstrap_scss/mixins/_box-shadow.scss +0 -20
- package/src/assets/bootstrap_scss/mixins/_breakpoints.scss +0 -123
- package/src/assets/bootstrap_scss/mixins/_buttons.scss +0 -110
- package/src/assets/bootstrap_scss/mixins/_caret.scss +0 -62
- package/src/assets/bootstrap_scss/mixins/_clearfix.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_deprecate.scss +0 -10
- package/src/assets/bootstrap_scss/mixins/_float.scss +0 -14
- package/src/assets/bootstrap_scss/mixins/_forms.scss +0 -177
- package/src/assets/bootstrap_scss/mixins/_gradients.scss +0 -45
- package/src/assets/bootstrap_scss/mixins/_grid-framework.scss +0 -71
- package/src/assets/bootstrap_scss/mixins/_grid.scss +0 -69
- package/src/assets/bootstrap_scss/mixins/_hover.scss +0 -37
- package/src/assets/bootstrap_scss/mixins/_image.scss +0 -36
- package/src/assets/bootstrap_scss/mixins/_list-group.scss +0 -21
- package/src/assets/bootstrap_scss/mixins/_lists.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_nav-divider.scss +0 -11
- package/src/assets/bootstrap_scss/mixins/_pagination.scss +0 -22
- package/src/assets/bootstrap_scss/mixins/_reset-text.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_resize.scss +0 -6
- package/src/assets/bootstrap_scss/mixins/_screen-reader.scss +0 -34
- package/src/assets/bootstrap_scss/mixins/_size.scss +0 -7
- package/src/assets/bootstrap_scss/mixins/_table-row.scss +0 -39
- package/src/assets/bootstrap_scss/mixins/_text-emphasis.scss +0 -17
- package/src/assets/bootstrap_scss/mixins/_text-hide.scss +0 -11
- package/src/assets/bootstrap_scss/mixins/_text-truncate.scss +0 -8
- package/src/assets/bootstrap_scss/mixins/_transition.scss +0 -16
- package/src/assets/bootstrap_scss/mixins/_visibility.scss +0 -8
- package/src/assets/bootstrap_scss/utilities/_align.scss +0 -8
- package/src/assets/bootstrap_scss/utilities/_background.scss +0 -19
- package/src/assets/bootstrap_scss/utilities/_borders.scss +0 -75
- package/src/assets/bootstrap_scss/utilities/_clearfix.scss +0 -3
- package/src/assets/bootstrap_scss/utilities/_display.scss +0 -26
- package/src/assets/bootstrap_scss/utilities/_embed.scss +0 -39
- package/src/assets/bootstrap_scss/utilities/_flex.scss +0 -51
- package/src/assets/bootstrap_scss/utilities/_float.scss +0 -11
- package/src/assets/bootstrap_scss/utilities/_overflow.scss +0 -5
- package/src/assets/bootstrap_scss/utilities/_position.scss +0 -32
- package/src/assets/bootstrap_scss/utilities/_screenreaders.scss +0 -11
- package/src/assets/bootstrap_scss/utilities/_shadows.scss +0 -6
- package/src/assets/bootstrap_scss/utilities/_sizing.scss +0 -20
- package/src/assets/bootstrap_scss/utilities/_spacing.scss +0 -73
- package/src/assets/bootstrap_scss/utilities/_stretched-link.scss +0 -19
- package/src/assets/bootstrap_scss/utilities/_text.scss +0 -72
- package/src/assets/bootstrap_scss/utilities/_visibility.scss +0 -13
- package/src/assets/bootstrap_scss/vendor/_rfs.scss +0 -204
- package/src/shims-vuex.d.ts +0 -7
- package/src/views/Home.vue +0 -18
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CommentPodcast {
|
|
2
|
+
comId: number;
|
|
3
|
+
content: string;
|
|
4
|
+
name: string;
|
|
5
|
+
organisationId?: string;
|
|
6
|
+
userId?: string;
|
|
7
|
+
podcastId?: number;
|
|
8
|
+
commentIdReferer?: number;
|
|
9
|
+
timeline?: number;
|
|
10
|
+
comReferend?: any;
|
|
11
|
+
status?: string;
|
|
12
|
+
certified?: boolean;
|
|
13
|
+
phase?: string;
|
|
14
|
+
date: string;
|
|
15
|
+
relatedComments?: number;
|
|
16
|
+
relatedValidComments?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface Conference{
|
|
2
|
+
album?: string;
|
|
3
|
+
artist?: string;
|
|
4
|
+
conferenceId: number;
|
|
5
|
+
conferenceUrlIdentifier?: string;
|
|
6
|
+
date?: string;
|
|
7
|
+
debriefingDate?: string;
|
|
8
|
+
deletionAttempts?: number;
|
|
9
|
+
directCode?: string;
|
|
10
|
+
hostname?: string;
|
|
11
|
+
jingleDuration?: number;
|
|
12
|
+
jingleFilePath?: string;
|
|
13
|
+
jingleId?: number;
|
|
14
|
+
mediaId?: number;
|
|
15
|
+
messages?: any;
|
|
16
|
+
organisationId?: string;
|
|
17
|
+
participants?: any;
|
|
18
|
+
phone?: string;
|
|
19
|
+
podcastId?: number;
|
|
20
|
+
prefix?: any;
|
|
21
|
+
queueCode?: string;
|
|
22
|
+
recordDate?: string;
|
|
23
|
+
recordingPort?: number;
|
|
24
|
+
status?: string;
|
|
25
|
+
title: string;
|
|
26
|
+
token?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Organisation } from "./organisation";
|
|
2
|
+
import { Person } from "./person";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export interface Emission{
|
|
6
|
+
imageUrl: string;
|
|
7
|
+
annotations?: any;
|
|
8
|
+
description: string;
|
|
9
|
+
emissionId: number;
|
|
10
|
+
iabIds?: Array<number>;
|
|
11
|
+
lastPodcastDate?: string;
|
|
12
|
+
monetisable: string;
|
|
13
|
+
name: string;
|
|
14
|
+
orga: Organisation;
|
|
15
|
+
rubriqueIds: Array<number>;
|
|
16
|
+
score?: number;
|
|
17
|
+
soundcastTag?: string;
|
|
18
|
+
publisher?: Person;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface FetchParam{
|
|
2
|
+
first: number,
|
|
3
|
+
size: number,
|
|
4
|
+
organisationId?: string,
|
|
5
|
+
emissionId?: number,
|
|
6
|
+
iabId?: number,
|
|
7
|
+
participantId?: number,
|
|
8
|
+
query?: string,
|
|
9
|
+
monetisable?: any,
|
|
10
|
+
sort?: string,
|
|
11
|
+
before?: string,
|
|
12
|
+
after?: string,
|
|
13
|
+
noRubriquageId?: number,
|
|
14
|
+
rubriqueId?:number,
|
|
15
|
+
rubriquageId?: number,
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Person } from "./person";
|
|
2
|
+
|
|
3
|
+
export interface Organisation{
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
admin?: Person;
|
|
6
|
+
comments?: string;
|
|
7
|
+
attributes?: any;
|
|
8
|
+
description?: string;
|
|
9
|
+
id: string;
|
|
10
|
+
location?: {
|
|
11
|
+
longitude: number;
|
|
12
|
+
latitude: number;
|
|
13
|
+
};
|
|
14
|
+
monetisable?: string;
|
|
15
|
+
name: string;
|
|
16
|
+
notSeenOnKeycloak?: number;
|
|
17
|
+
score?: number;
|
|
18
|
+
soundcastId?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Organisation } from "./organisation";
|
|
2
|
+
|
|
3
|
+
export interface Person{
|
|
4
|
+
attributes?: any;
|
|
5
|
+
email: string;
|
|
6
|
+
emailVerified: boolean;
|
|
7
|
+
enabled: true;
|
|
8
|
+
first: string;
|
|
9
|
+
last: string;
|
|
10
|
+
notSeenOnKeycloak: number;
|
|
11
|
+
userId: string;
|
|
12
|
+
organisation?: Organisation;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Podcast } from "./podcast";
|
|
2
|
+
|
|
3
|
+
export interface Player{
|
|
4
|
+
status: string; //STOPPED, LOADING, PLAYING, PAUSED
|
|
5
|
+
podcast: Podcast|undefined;
|
|
6
|
+
volume?: number; //From 0 to 1
|
|
7
|
+
elapsed?: number; //From 0 to 1
|
|
8
|
+
total?: number;
|
|
9
|
+
media: any;
|
|
10
|
+
live: any;
|
|
11
|
+
stop?: any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Organisation } from "./organisation";
|
|
2
|
+
import { Person } from "./person";
|
|
3
|
+
import { Podcast } from "./podcast";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export interface Playlist{
|
|
7
|
+
imageUrl: string;
|
|
8
|
+
description: string;
|
|
9
|
+
organisation: Organisation;
|
|
10
|
+
playlistId: number;
|
|
11
|
+
podcasts: Array<Podcast>;
|
|
12
|
+
score: number;
|
|
13
|
+
title: string;
|
|
14
|
+
publisher?: Person;
|
|
15
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Emission } from "./emission";
|
|
2
|
+
import { Organisation } from "./organisation";
|
|
3
|
+
import { Participant } from "./participant";
|
|
4
|
+
import { Person } from "./person";
|
|
5
|
+
export interface Podcast{
|
|
6
|
+
imageUrl: string;
|
|
7
|
+
animators?: Array<Participant>;
|
|
8
|
+
annotations?: any;
|
|
9
|
+
audioStorageUrl: string;
|
|
10
|
+
audioUrl: string;
|
|
11
|
+
availability: {
|
|
12
|
+
date?: string;
|
|
13
|
+
visibility?: boolean;
|
|
14
|
+
};
|
|
15
|
+
article?: string;
|
|
16
|
+
comments?: string;
|
|
17
|
+
conferenceId?: number;
|
|
18
|
+
createdAt?: string;
|
|
19
|
+
valid?: boolean;
|
|
20
|
+
description?: string;
|
|
21
|
+
downloadCount?: number;
|
|
22
|
+
duration: number;
|
|
23
|
+
emission: Emission;
|
|
24
|
+
guests?: Array<Participant>;
|
|
25
|
+
monetisable?: string;
|
|
26
|
+
organisation: Organisation;
|
|
27
|
+
podcastId: number;
|
|
28
|
+
processingStatus?: string;
|
|
29
|
+
pubDate?: string;
|
|
30
|
+
publisher?: Person;
|
|
31
|
+
rubriqueIds?: Array<number>;
|
|
32
|
+
score?: number;
|
|
33
|
+
size?: number;
|
|
34
|
+
tags?: Array<string>;
|
|
35
|
+
title: string;
|
|
36
|
+
weekDownloadCount?: number;
|
|
37
|
+
}
|
package/src/store/paramStore.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const octopusApi = require('@saooti/octopus-api');
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const state = {
|
|
4
4
|
generalParameters: {} as any,
|
|
5
5
|
filter: {
|
|
6
6
|
organisationId: undefined as any,
|
|
@@ -10,6 +10,7 @@ var state = {
|
|
|
10
10
|
emissionsPage: {} as any,
|
|
11
11
|
emissionPage: {} as any,
|
|
12
12
|
intervenantPage: {} as any,
|
|
13
|
+
intervenantsPage: {} as any,
|
|
13
14
|
searchPage: {} as any,
|
|
14
15
|
player: {} as any,
|
|
15
16
|
footer: {} as any,
|
|
@@ -17,11 +18,27 @@ var state = {
|
|
|
17
18
|
octopusApi: {}as any,
|
|
18
19
|
oAuthParam: {} as any,
|
|
19
20
|
};
|
|
21
|
+
export interface paramStore{
|
|
22
|
+
generalParameters: any,
|
|
23
|
+
filter: any,
|
|
24
|
+
podcastPage: any,
|
|
25
|
+
podcastsPage: any,
|
|
26
|
+
emissionsPage: any,
|
|
27
|
+
emissionPage: any,
|
|
28
|
+
intervenantPage: any,
|
|
29
|
+
intervenantsPage: any,
|
|
30
|
+
searchPage: any,
|
|
31
|
+
player: any,
|
|
32
|
+
footer: any,
|
|
33
|
+
organisation: any,
|
|
34
|
+
octopusApi: any,
|
|
35
|
+
oAuthParam: any,
|
|
36
|
+
}
|
|
20
37
|
|
|
21
|
-
|
|
38
|
+
const initialize = function initialize(initObject: paramStore): any {
|
|
22
39
|
return new Promise<void>((resolve, reject) => {
|
|
23
40
|
if (initObject.generalParameters) {
|
|
24
|
-
|
|
41
|
+
const param = initObject.generalParameters;
|
|
25
42
|
state.generalParameters.organisationId =
|
|
26
43
|
'undefined' !== typeof param.organisationId
|
|
27
44
|
? param.organisationId
|
|
@@ -29,7 +46,7 @@ var initialize = function initialize(initObject: any) {
|
|
|
29
46
|
state.generalParameters.authenticated =
|
|
30
47
|
'undefined' !== typeof param.authenticated ? param.authenticated : true;
|
|
31
48
|
state.generalParameters.isAdmin =
|
|
32
|
-
'undefined' !== typeof param.isAdmin ? param.isAdmin :
|
|
49
|
+
'undefined' !== typeof param.isAdmin ? param.isAdmin : true;
|
|
33
50
|
state.generalParameters.isRoleLive =
|
|
34
51
|
'undefined' !== typeof param.isRoleLive ? param.isRoleLive : true;
|
|
35
52
|
state.generalParameters.isCommments =
|
|
@@ -49,9 +66,7 @@ var initialize = function initialize(initObject: any) {
|
|
|
49
66
|
state.generalParameters.ApiUri =
|
|
50
67
|
'undefined' !== typeof param.ApiUri
|
|
51
68
|
? param.ApiUri
|
|
52
|
-
: 'https://api.
|
|
53
|
-
state.generalParameters.isIE11 =
|
|
54
|
-
'undefined' !== typeof param.isIE11 ? param.isIE11 : false;
|
|
69
|
+
: 'https://api.dev2.saooti.org/';
|
|
55
70
|
state.generalParameters.podcastmaker =
|
|
56
71
|
'undefined' !== typeof param.podcastmaker ? param.podcastmaker : false;
|
|
57
72
|
state.generalParameters.buttonPlus =
|
|
@@ -59,12 +74,12 @@ var initialize = function initialize(initObject: any) {
|
|
|
59
74
|
state.generalParameters.allCategories =
|
|
60
75
|
'undefined' !== typeof param.allCategories ? param.allCategories : [];
|
|
61
76
|
state.generalParameters.isLiveTab =
|
|
62
|
-
'undefined' !== typeof param.isLiveTab ? param.isLiveTab :
|
|
77
|
+
'undefined' !== typeof param.isLiveTab ? param.isLiveTab : false;
|
|
63
78
|
state.generalParameters.isCaptchaTest =
|
|
64
79
|
'undefined' !== typeof param.isCaptchaTest ? param.isCaptchaTest : true;
|
|
65
80
|
}
|
|
66
81
|
if (initObject.podcastPage) {
|
|
67
|
-
|
|
82
|
+
const param = initObject.podcastPage;
|
|
68
83
|
state.podcastPage.EditBox =
|
|
69
84
|
'undefined' !== typeof param.EditBox ? param.EditBox : false;
|
|
70
85
|
state.podcastPage.SharePlayer =
|
|
@@ -78,7 +93,11 @@ var initialize = function initialize(initObject: any) {
|
|
|
78
93
|
state.podcastPage.MiniplayerUri =
|
|
79
94
|
'undefined' !== typeof param.MiniplayerUri
|
|
80
95
|
? param.MiniplayerUri
|
|
81
|
-
: 'https://player.
|
|
96
|
+
: 'https://player.dev2.saooti.org/';
|
|
97
|
+
state.podcastPage.MiniplayerBetaUri =
|
|
98
|
+
'undefined' !== typeof param.MiniplayerBetaUri
|
|
99
|
+
? param.MiniplayerBetaUri
|
|
100
|
+
: 'https://playerbeta.dev2.saooti.org/';
|
|
82
101
|
state.podcastPage.ouestFranceStyle =
|
|
83
102
|
'undefined' !== typeof param.ouestFranceStyle
|
|
84
103
|
? param.ouestFranceStyle
|
|
@@ -92,10 +111,18 @@ var initialize = function initialize(initObject: any) {
|
|
|
92
111
|
state.podcastPage.hlsUri =
|
|
93
112
|
'undefined' !== typeof param.hlsUri
|
|
94
113
|
? param.hlsUri
|
|
95
|
-
: 'https://hls.
|
|
114
|
+
: 'https://hls.dev2.saooti.org/';
|
|
115
|
+
state.podcastPage.mainRubrique =
|
|
116
|
+
'undefined' !== typeof param.mainRubrique
|
|
117
|
+
? param.mainRubrique
|
|
118
|
+
: 0;
|
|
119
|
+
state.podcastPage.resourceUrl =
|
|
120
|
+
'undefined' !== typeof param.resourceUrl
|
|
121
|
+
? param.resourceUrl
|
|
122
|
+
: undefined;
|
|
96
123
|
}
|
|
97
124
|
if (initObject.podcastsPage) {
|
|
98
|
-
|
|
125
|
+
const param = initObject.podcastsPage;
|
|
99
126
|
state.podcastsPage.ProductorSearch =
|
|
100
127
|
'undefined' !== typeof param.ProductorSearch
|
|
101
128
|
? param.ProductorSearch
|
|
@@ -118,7 +145,7 @@ var initialize = function initialize(initObject: any) {
|
|
|
118
145
|
: false;
|
|
119
146
|
}
|
|
120
147
|
if (initObject.emissionsPage) {
|
|
121
|
-
|
|
148
|
+
const param = initObject.emissionsPage;
|
|
122
149
|
state.emissionsPage.smallItems =
|
|
123
150
|
'undefined' !== typeof param.smallItems ? param.smallItems : false;
|
|
124
151
|
state.emissionsPage.lightItems =
|
|
@@ -139,9 +166,13 @@ var initialize = function initialize(initObject: any) {
|
|
|
139
166
|
'undefined' !== typeof param.overflowScroll
|
|
140
167
|
? param.overflowScroll
|
|
141
168
|
: false;
|
|
169
|
+
state.emissionsPage.titleInImage=
|
|
170
|
+
'undefined' !== typeof param.titleInImage
|
|
171
|
+
? param.titleInImage
|
|
172
|
+
: false;
|
|
142
173
|
}
|
|
143
174
|
if (initObject.emissionPage) {
|
|
144
|
-
|
|
175
|
+
const param = initObject.emissionPage;
|
|
145
176
|
state.emissionPage.ouestFranceStyle =
|
|
146
177
|
'undefined' !== typeof param.ouestFranceStyle
|
|
147
178
|
? param.ouestFranceStyle
|
|
@@ -150,19 +181,26 @@ var initialize = function initialize(initObject: any) {
|
|
|
150
181
|
'undefined' !== typeof param.rssButton ? param.rssButton : false;
|
|
151
182
|
}
|
|
152
183
|
if (initObject.intervenantPage) {
|
|
153
|
-
|
|
184
|
+
const param = initObject.intervenantPage;
|
|
154
185
|
state.intervenantPage.lightStyle =
|
|
155
186
|
'undefined' !== typeof param.lightStyle ? param.lightStyle : false;
|
|
156
187
|
state.intervenantPage.rssButton =
|
|
157
188
|
'undefined' !== typeof param.rssButton ? param.rssButton : false;
|
|
189
|
+
state.intervenantPage.titlePage =
|
|
190
|
+
'undefined' !== typeof param.titlePage ? param.titlePage : undefined;
|
|
191
|
+
}
|
|
192
|
+
if (initObject.intervenantsPage) {
|
|
193
|
+
const param = initObject.intervenantsPage;
|
|
194
|
+
state.intervenantsPage.titlePage =
|
|
195
|
+
'undefined' !== typeof param.titlePage ? param.titlePage : undefined;
|
|
158
196
|
}
|
|
159
197
|
if (initObject.searchPage) {
|
|
160
|
-
|
|
198
|
+
const param = initObject.searchPage;
|
|
161
199
|
state.searchPage.hideBar =
|
|
162
200
|
'undefined' !== typeof param.hideBar ? param.hideBar : false;
|
|
163
201
|
}
|
|
164
202
|
if (initObject.player) {
|
|
165
|
-
|
|
203
|
+
const param = initObject.player;
|
|
166
204
|
state.player.image =
|
|
167
205
|
'undefined' !== typeof param.image ? param.image : true;
|
|
168
206
|
state.player.emissionName =
|
|
@@ -173,7 +211,7 @@ var initialize = function initialize(initObject: any) {
|
|
|
173
211
|
'undefined' !== typeof param.barTop ? param.barTop : false;
|
|
174
212
|
}
|
|
175
213
|
if (initObject.organisation) {
|
|
176
|
-
|
|
214
|
+
const param = initObject.organisation;
|
|
177
215
|
state.organisation.imageUrl =
|
|
178
216
|
'undefined' !== typeof param.imageUrl
|
|
179
217
|
? param.imageUrl
|
|
@@ -184,38 +222,41 @@ var initialize = function initialize(initObject: any) {
|
|
|
184
222
|
'undefined' !== typeof param.userName ? param.userName : '';
|
|
185
223
|
}
|
|
186
224
|
if (initObject.footer) {
|
|
187
|
-
|
|
225
|
+
const param = initObject.footer;
|
|
188
226
|
state.footer.contactLink =
|
|
189
227
|
'undefined' !== typeof param.contactLink
|
|
190
228
|
? param.contactLink
|
|
191
229
|
: undefined;
|
|
192
230
|
}
|
|
193
231
|
if (initObject.octopusApi) {
|
|
194
|
-
|
|
232
|
+
const param = initObject.octopusApi;
|
|
195
233
|
state.octopusApi.url =
|
|
196
234
|
'undefined' !== typeof param.url
|
|
197
235
|
? param.url
|
|
198
|
-
: 'http://api.
|
|
236
|
+
: 'http://api.dev2.saooti.org/';
|
|
199
237
|
state.octopusApi.oAuthParam =
|
|
200
238
|
'undefined' !== typeof param.oAuthParam ? param.oAuthParam : undefined;
|
|
201
239
|
state.octopusApi.commentsUrl =
|
|
202
240
|
'undefined' !== typeof param.commentsUrl
|
|
203
241
|
? param.commentsUrl
|
|
204
|
-
: 'http://comments.
|
|
242
|
+
: 'http://comments.dev2.saooti.org/';
|
|
243
|
+
state.octopusApi.studioUrl =
|
|
244
|
+
'undefined' !== typeof param.studioUrl
|
|
245
|
+
? param.studioUrl
|
|
246
|
+
: 'http://studio.dev2.saooti.org/';
|
|
247
|
+
state.octopusApi.playerUrl =
|
|
248
|
+
'undefined' !== typeof param.playerUrl
|
|
249
|
+
? param.playerUrl
|
|
250
|
+
: 'https://playerbeta.dev2.saooti.org/';
|
|
205
251
|
if (state.generalParameters.podcastmaker) {
|
|
206
252
|
state.octopusApi.organisationId =
|
|
207
253
|
'undefined' !== typeof param.organisationId
|
|
208
254
|
? param.organisationId
|
|
209
255
|
: undefined;
|
|
210
256
|
}
|
|
211
|
-
|
|
257
|
+
const error = octopusApi.initialize(state.octopusApi);
|
|
212
258
|
if (error) {
|
|
213
259
|
reject();
|
|
214
|
-
} else if (0 === state.generalParameters.allCategories.length) {
|
|
215
|
-
octopusApi.fetchCategories({ lang: 'fr' }).then((data: any) => {
|
|
216
|
-
state.generalParameters.allCategories = data;
|
|
217
|
-
resolve();
|
|
218
|
-
});
|
|
219
260
|
} else {
|
|
220
261
|
resolve();
|
|
221
262
|
}
|
|
@@ -225,4 +266,4 @@ var initialize = function initialize(initObject: any) {
|
|
|
225
266
|
});
|
|
226
267
|
};
|
|
227
268
|
|
|
228
|
-
export { initialize, state };
|
|
269
|
+
export { initialize, state };
|