@saooti/octopus-sdk 32.0.41 → 33.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docker-compose.sonar.yml +8 -0
- package/package.json +13 -3
- package/public/css/fonts/icomoon.eot +0 -0
- package/public/css/fonts/icomoon.svg +1 -0
- package/public/css/fonts/icomoon.ttf +0 -0
- package/public/css/fonts/icomoon.woff +0 -0
- package/public/css/fonts/style.css +35 -32
- package/sonarqube-scanner.js +18 -0
- package/src/assets/bootstrap-diff.scss +0 -1
- package/src/assets/general.scss +2 -3
- package/src/assets/multiselect.scss +0 -4
- package/src/assets/share.scss +0 -8
- package/src/components/display/categories/CategoryList.vue +2 -3
- package/src/components/display/comments/AddCommentModal.vue +4 -1
- package/src/components/display/comments/CommentBasicView.vue +4 -4
- package/src/components/display/comments/CommentInput.vue +2 -2
- package/src/components/display/comments/CommentItem.vue +32 -25
- package/src/components/display/comments/CommentList.vue +34 -21
- package/src/components/display/comments/CommentSection.vue +2 -3
- package/src/components/display/edit/EditBox.vue +0 -1
- package/src/components/display/emission/EmissionChooser.vue +1 -1
- package/src/components/display/emission/EmissionItem.vue +2 -2
- package/src/components/display/emission/EmissionList.vue +4 -4
- package/src/components/display/filter/AdvancedSearch.vue +1 -1
- package/src/components/display/filter/DateFilter.vue +2 -2
- package/src/components/display/filter/SearchOrder.vue +1 -1
- package/src/components/display/list/ListPaginate.vue +6 -3
- package/src/components/display/list/Paginate.vue +32 -28
- package/src/components/display/live/LiveHorizontalList.vue +4 -4
- package/src/components/display/live/LiveList.vue +41 -33
- package/src/components/display/participant/ParticipantItem.vue +3 -3
- package/src/components/display/participant/ParticipantList.vue +4 -9
- package/src/components/display/playlist/PlaylistItem.vue +3 -3
- package/src/components/display/playlist/PlaylistList.vue +4 -4
- package/src/components/display/playlist/PodcastList.vue +2 -2
- package/src/components/display/playlist/PodcastPlaylistInlineList.vue +1 -1
- package/src/components/display/podcasts/ParticipantDescription.vue +1 -1
- package/src/components/display/podcasts/PodcastImage.vue +3 -3
- package/src/components/display/podcasts/PodcastInlineList.vue +2 -0
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +22 -1
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +7 -4
- package/src/components/display/podcasts/PodcastItem.vue +2 -2
- package/src/components/display/podcasts/PodcastList.vue +4 -4
- package/src/components/display/podcasts/PodcastSwiperList.vue +1 -1
- package/src/components/display/rubriques/RubriqueChooser.vue +1 -1
- package/src/components/display/rubriques/RubriqueList.vue +2 -2
- package/src/components/display/sharing/PlayerParameters.vue +1 -1
- package/src/components/display/sharing/QrCode.vue +1 -2
- package/src/components/display/sharing/ShareButtonsIntern.vue +1 -2
- package/src/components/display/sharing/ShareDistribution.vue +1 -2
- package/src/components/display/sharing/SharePlayer.vue +47 -33
- package/src/components/display/sharing/SharePlayerTypes.vue +1 -1
- package/src/components/form/ClassicSelect.vue +13 -1
- package/src/components/misc/Footer.vue +1 -1
- package/src/components/misc/modal/NewsletterModal.vue +2 -3
- package/src/components/misc/modal/ShareModalPlayer.vue +1 -2
- package/src/components/mixins/functions.ts +3 -14
- package/src/components/mixins/player/playerComment.ts +34 -27
- package/src/components/mixins/player/playerLive.ts +1 -10
- package/src/components/mixins/player/playerLogic.ts +40 -29
- package/src/components/pages/Podcast.vue +4 -0
- package/src/helper/duration.ts +7 -36
- package/src/i18n.ts +1 -1
- package/src/locale/it.ts +0 -1
- package/src/main.ts +3 -10
- package/src/store/class/adserver/adserverConfig.ts +1 -1
- package/src/store/class/general/emission.ts +1 -1
- package/src/store/class/general/organisation.ts +1 -1
- package/src/store/class/general/podcast.ts +1 -1
- package/src/store/paramStore.ts +15 -13
package/src/main.ts
CHANGED
|
@@ -6,19 +6,12 @@ import {setupI18n} from './i18n';
|
|
|
6
6
|
import router from '@/router/router';
|
|
7
7
|
import store from '@/store/AppStore';
|
|
8
8
|
import paramStore from '@/store/paramStore';
|
|
9
|
-
/* import 'popper.js/dist/popper.min.js'; */
|
|
10
|
-
/* import 'jquery/src/jquery.js'; */
|
|
11
|
-
/* import 'jquery';
|
|
12
|
-
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
|
|
13
|
-
*/
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
//TODO
|
|
17
10
|
const nameEQ = 'octopus-language=';
|
|
18
11
|
const ca = document.cookie.split(';');
|
|
19
12
|
let language = "";
|
|
20
|
-
for (let
|
|
21
|
-
let c =
|
|
13
|
+
for (let valueCookie in ca) {
|
|
14
|
+
let c = valueCookie;
|
|
22
15
|
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
23
16
|
if (0 === c.indexOf(nameEQ)){
|
|
24
17
|
language = c.substring(nameEQ.length, c.length);
|
|
@@ -26,7 +19,7 @@ for (let i = 0; i < ca.length; i++) {
|
|
|
26
19
|
}
|
|
27
20
|
}
|
|
28
21
|
if(0===language.length){
|
|
29
|
-
const navigatorLang = navigator.language
|
|
22
|
+
const navigatorLang = navigator.language;
|
|
30
23
|
language = 'fr';
|
|
31
24
|
if(navigatorLang.includes('en')){
|
|
32
25
|
language = 'en';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdserverTiming } from "./adserverTiming";
|
|
2
2
|
|
|
3
3
|
export interface AdserverConfig {
|
|
4
|
-
activeServer?: string
|
|
4
|
+
activeServer?: string; // SOUNDCAST, ADSWIZZ, TARGETSPOT
|
|
5
5
|
config: {[key:string]: Array<AdserverTiming>};
|
|
6
6
|
minIntervalDuration?: number;
|
|
7
7
|
minTailDuration?: number;
|
|
@@ -4,7 +4,7 @@ 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>;
|
|
@@ -4,7 +4,7 @@ export interface Organisation{
|
|
|
4
4
|
imageUrl: string;
|
|
5
5
|
admin?: Person;
|
|
6
6
|
comments?: string;
|
|
7
|
-
attributes?: {[key: string]:string|number|boolean|undefined}
|
|
7
|
+
attributes?: {[key: string]:string|number|boolean|undefined};
|
|
8
8
|
description?: string;
|
|
9
9
|
id: string;
|
|
10
10
|
location?: {
|
|
@@ -5,7 +5,7 @@ import { Person } from '../user/person';
|
|
|
5
5
|
export interface Podcast {
|
|
6
6
|
imageUrl?: string;
|
|
7
7
|
animators?: Array<Participant>;
|
|
8
|
-
annotations?:{[key: string]:string|number|boolean|undefined}
|
|
8
|
+
annotations?:{[key: string]:string|number|boolean|undefined};
|
|
9
9
|
audioStorageUrl: string;
|
|
10
10
|
audioUrl: string;
|
|
11
11
|
article?: string;
|
package/src/store/paramStore.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import octopusApi from '@saooti/octopus-api';
|
|
2
2
|
import { Category } from './class/general/category';
|
|
3
3
|
|
|
4
|
-
const state:
|
|
4
|
+
const state:ParamStore = {
|
|
5
5
|
generalParameters: {
|
|
6
6
|
organisationId:'ecbd98d9-79bd-4312-ad5e-fc7c1c4a191c',
|
|
7
7
|
authenticated: true,
|
|
@@ -89,12 +89,13 @@ const state:paramStore = {
|
|
|
89
89
|
studioUrl: 'http://studio.dev2.saooti.org/',
|
|
90
90
|
playerUrl: 'https://playerbeta.dev2.saooti.org/',
|
|
91
91
|
speechToTextUrl:'https://speech2text.dev2.saooti.org/',
|
|
92
|
+
recoUrl: 'https://reco.dev2.saooti.org/',
|
|
92
93
|
organisationId: undefined,
|
|
93
94
|
rubriqueIdFilter: undefined,
|
|
94
95
|
},
|
|
95
96
|
};
|
|
96
97
|
export interface GeneralParameters{
|
|
97
|
-
organisationId?: string
|
|
98
|
+
organisationId?: string,
|
|
98
99
|
authenticated?: boolean,
|
|
99
100
|
isAdmin?: boolean,
|
|
100
101
|
isRoleLive?: boolean,
|
|
@@ -122,7 +123,7 @@ export interface PodcastPage{
|
|
|
122
123
|
downloadButton?: boolean,
|
|
123
124
|
hlsUri?: string,
|
|
124
125
|
mainRubrique?: number,
|
|
125
|
-
resourceUrl?: string
|
|
126
|
+
resourceUrl?: string,
|
|
126
127
|
podcastItemShowEmission?: boolean,
|
|
127
128
|
clickPlayGoPage?:boolean,
|
|
128
129
|
listTypeClassic?:boolean,
|
|
@@ -133,16 +134,16 @@ export interface PodcastsPage{
|
|
|
133
134
|
MonetizableFilter?: boolean,
|
|
134
135
|
podcastShadow?: boolean,
|
|
135
136
|
podcastBorderBottom?: boolean,
|
|
136
|
-
titlePage?: string
|
|
137
|
+
titlePage?: string,
|
|
137
138
|
emissionChooser?: boolean,
|
|
138
139
|
}
|
|
139
140
|
export interface EmissionsPage{
|
|
140
141
|
smallItems?: boolean,
|
|
141
142
|
lightItems?: boolean,
|
|
142
|
-
titlePage?: string
|
|
143
|
+
titlePage?: string,
|
|
143
144
|
itemPlayer?: boolean,
|
|
144
|
-
rubriquage?: number
|
|
145
|
-
mainRubrique?: number
|
|
145
|
+
rubriquage?: number,
|
|
146
|
+
mainRubrique?: number,
|
|
146
147
|
buttonMore?: boolean,
|
|
147
148
|
overflowScroll?: boolean,
|
|
148
149
|
titleInImage?: boolean,
|
|
@@ -154,10 +155,10 @@ export interface EmissionPage{
|
|
|
154
155
|
}
|
|
155
156
|
export interface IntervenantPage{
|
|
156
157
|
lightStyle?: boolean,
|
|
157
|
-
titlePage?: string
|
|
158
|
+
titlePage?: string
|
|
158
159
|
}
|
|
159
160
|
export interface IntervenantsPage{
|
|
160
|
-
titlePage?: string
|
|
161
|
+
titlePage?: string
|
|
161
162
|
}
|
|
162
163
|
export interface SearchPage{
|
|
163
164
|
hideBar?: boolean
|
|
@@ -167,7 +168,7 @@ export interface Player{
|
|
|
167
168
|
emissionName?: boolean
|
|
168
169
|
}
|
|
169
170
|
export interface Footer{
|
|
170
|
-
contactLink?: string
|
|
171
|
+
contactLink?: string
|
|
171
172
|
}
|
|
172
173
|
export interface Organisation{
|
|
173
174
|
imageUrl?: string,
|
|
@@ -181,7 +182,8 @@ export interface OctopusApi{
|
|
|
181
182
|
studioUrl?: string,
|
|
182
183
|
playerUrl?: string,
|
|
183
184
|
speechToTextUrl?:string,
|
|
184
|
-
|
|
185
|
+
recoUrl?:string,
|
|
186
|
+
organisationId?: string,
|
|
185
187
|
oAuthParam?: {
|
|
186
188
|
accessToken: string,
|
|
187
189
|
refreshToken: string,
|
|
@@ -189,7 +191,7 @@ export interface OctopusApi{
|
|
|
189
191
|
},
|
|
190
192
|
rubriqueIdFilter?: Array<number>,
|
|
191
193
|
}
|
|
192
|
-
export interface
|
|
194
|
+
export interface ParamStore{
|
|
193
195
|
generalParameters:GeneralParameters,
|
|
194
196
|
podcastPage: PodcastPage,
|
|
195
197
|
podcastsPage: PodcastsPage,
|
|
@@ -206,7 +208,7 @@ export interface paramStore{
|
|
|
206
208
|
const definedProps = (obj: GeneralParameters|PodcastPage|PodcastsPage|EmissionsPage|EmissionPage|IntervenantPage|IntervenantsPage|SearchPage|Player|Footer|Organisation|OctopusApi) => Object.fromEntries(
|
|
207
209
|
Object.entries(obj).filter(([, v]) => v !== undefined)
|
|
208
210
|
);
|
|
209
|
-
const initialize = function initialize(initObject:
|
|
211
|
+
const initialize = function initialize(initObject: ParamStore): Promise<void> {
|
|
210
212
|
return new Promise<void>((resolve, reject) => {
|
|
211
213
|
state.generalParameters = Object.assign(state.generalParameters, definedProps(initObject.generalParameters));
|
|
212
214
|
if(!state.generalParameters.authenticated){
|