@saooti/octopus-sdk 30.0.51 → 30.0.54
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 +4 -1
- package/package.json +3 -3
- package/src/components/display/categories/CategoryChooser.vue +2 -14
- package/src/components/display/comments/CommentBasicView.vue +1 -1
- package/src/components/display/emission/EmissionChooser.vue +0 -9
- package/src/components/display/organisation/OrganisationChooser.vue +0 -9
- package/src/components/display/rubriques/RubriqueChooser.vue +2 -6
- package/src/main.ts +17 -0
- package/src/store/paramStore.ts +3 -1
package/README.md
CHANGED
|
@@ -547,4 +547,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
547
547
|
* 30.0.48 Podcastmaker ScrollOverflow PodcastInlineList
|
|
548
548
|
* 30.0.49 Podcastmaker ProgressBar
|
|
549
549
|
* 30.0.50 Commentaires live
|
|
550
|
-
* 30.0.51 Commentaires live
|
|
550
|
+
* 30.0.51 Commentaires live
|
|
551
|
+
* 30.0.52 Ajout rubriqueIdFilter
|
|
552
|
+
* 30.0.53 Commentaires live
|
|
553
|
+
* 30.0.54 Multiselect not reload on close
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.54",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"main": "./dist/octopus.common.js",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@popperjs/core": "^2.11.0",
|
|
18
|
-
"@saooti/octopus-api": "^0.30.
|
|
18
|
+
"@saooti/octopus-api": "^0.30.4",
|
|
19
19
|
"@vue/cli": "^5.0.0-rc.1",
|
|
20
20
|
"@vue/compat": "^3.2.26",
|
|
21
21
|
"axios": "^0.24.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"no-debugger": "off",
|
|
81
81
|
"@typescript-eslint/ban-ts-ignore": "off",
|
|
82
82
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
83
|
-
"no-async-promise-executor":"off"
|
|
83
|
+
"no-async-promise-executor": "off"
|
|
84
84
|
},
|
|
85
85
|
"parserOptions": {
|
|
86
86
|
"parser": "@typescript-eslint/parser"
|
|
@@ -28,9 +28,8 @@
|
|
|
28
28
|
:show-no-results="true"
|
|
29
29
|
:hide-selected="true"
|
|
30
30
|
:show-labels="false"
|
|
31
|
-
@open="
|
|
31
|
+
@open="onOpen"
|
|
32
32
|
@search-change="onSearchCategory"
|
|
33
|
-
@close="onClose"
|
|
34
33
|
@select="onCategorySelected"
|
|
35
34
|
>
|
|
36
35
|
<template #singleLabel="{ option }">
|
|
@@ -169,14 +168,11 @@ export default defineComponent({
|
|
|
169
168
|
}
|
|
170
169
|
},
|
|
171
170
|
methods: {
|
|
172
|
-
|
|
171
|
+
onOpen(): void {
|
|
173
172
|
(this.$refs.multiselectRef as VueMultiselect).$refs.search.setAttribute(
|
|
174
173
|
'autocomplete',
|
|
175
174
|
'off'
|
|
176
175
|
);
|
|
177
|
-
if (undefined === this.categoryArray) {
|
|
178
|
-
this.category = undefined;
|
|
179
|
-
}
|
|
180
176
|
if (
|
|
181
177
|
undefined !== this.categorySelected ||
|
|
182
178
|
undefined !== this.categoryArray ||
|
|
@@ -199,14 +195,6 @@ export default defineComponent({
|
|
|
199
195
|
this.categories = this.totalCategories;
|
|
200
196
|
}
|
|
201
197
|
},
|
|
202
|
-
onClose(): void {
|
|
203
|
-
if (!this.category && undefined === this.categoryArray) {
|
|
204
|
-
this.category = getDefaultCategory(this.defaultanswer);
|
|
205
|
-
if(this.category){
|
|
206
|
-
this.onCategorySelected(this.category);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
198
|
onSearchCategory(query: string): void {
|
|
211
199
|
this.isLoading = true;
|
|
212
200
|
const categoryDefault = getDefaultCategory(this.defaultanswer);
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
:show-labels="false"
|
|
30
30
|
@search-change="onSearchEmission"
|
|
31
31
|
@open="onOpen"
|
|
32
|
-
@close="onClose"
|
|
33
32
|
@select="onEmissionSelected"
|
|
34
33
|
>
|
|
35
34
|
<template #clear="{ props }">
|
|
@@ -152,16 +151,8 @@ export default defineComponent({
|
|
|
152
151
|
'autocomplete',
|
|
153
152
|
'off'
|
|
154
153
|
);
|
|
155
|
-
this.clearAll();
|
|
156
154
|
this.onSearchEmission();
|
|
157
155
|
},
|
|
158
|
-
onClose(): void {
|
|
159
|
-
if (this.emission) return;
|
|
160
|
-
this.emission = this.defaultanswer
|
|
161
|
-
? getDefaultEmission(this.defaultanswer)
|
|
162
|
-
: undefined;
|
|
163
|
-
this.$emit('selected', this.emission);
|
|
164
|
-
},
|
|
165
156
|
onEmissionSelected(emission: Emission): void {
|
|
166
157
|
this.$emit('selected', emission);
|
|
167
158
|
},
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
:class="{ 'multiselect-transparent': light }"
|
|
32
32
|
@search-change="onSearchOrganisation"
|
|
33
33
|
@open="onOpen"
|
|
34
|
-
@close="onClose"
|
|
35
34
|
@select="onOrganisationSelected"
|
|
36
35
|
>
|
|
37
36
|
<template #clear="{ props }">
|
|
@@ -207,16 +206,8 @@ export default defineComponent({
|
|
|
207
206
|
'autocomplete',
|
|
208
207
|
'off'
|
|
209
208
|
);
|
|
210
|
-
this.clearAll();
|
|
211
209
|
this.onSearchOrganisation();
|
|
212
210
|
},
|
|
213
|
-
onClose(): void {
|
|
214
|
-
if (this.organisation) return;
|
|
215
|
-
this.organisation = this.defaultanswer
|
|
216
|
-
? getDefaultOrganistion(this.defaultanswer)
|
|
217
|
-
: undefined;
|
|
218
|
-
this.$emit('selected', this.organisation);
|
|
219
|
-
},
|
|
220
211
|
onOrganisationSelected(organisation: Organisation|undefined): void {
|
|
221
212
|
this.$emit('selected', organisation);
|
|
222
213
|
},
|
|
@@ -29,9 +29,8 @@
|
|
|
29
29
|
:show-no-results="true"
|
|
30
30
|
:hide-selected="true"
|
|
31
31
|
:show-labels="false"
|
|
32
|
-
@open="
|
|
32
|
+
@open="onOpen"
|
|
33
33
|
@search-change="onSearchRubrique"
|
|
34
|
-
@close="onClose"
|
|
35
34
|
@select="onRubriqueSelected"
|
|
36
35
|
>
|
|
37
36
|
<template #singleLabel="{ option }">
|
|
@@ -187,14 +186,11 @@ export default defineComponent({
|
|
|
187
186
|
);
|
|
188
187
|
}
|
|
189
188
|
},
|
|
190
|
-
|
|
189
|
+
onOpen(): void {
|
|
191
190
|
(this.$refs.multiselectRef as VueMultiselect).$refs.search.setAttribute(
|
|
192
191
|
'autocomplete',
|
|
193
192
|
'off'
|
|
194
193
|
);
|
|
195
|
-
if (undefined === this.rubriqueArray) {
|
|
196
|
-
this.rubrique = undefined;
|
|
197
|
-
}
|
|
198
194
|
this.rubriques = this.initRubriquesArray();
|
|
199
195
|
},
|
|
200
196
|
onClose(): void {
|
package/src/main.ts
CHANGED
|
@@ -6,6 +6,7 @@ import I18nResources from './locale/messages';
|
|
|
6
6
|
import router from '@/router/router';
|
|
7
7
|
import moment from 'moment';
|
|
8
8
|
import store from '@/store/AppStore';
|
|
9
|
+
import paramStore from '@/store/paramStore';
|
|
9
10
|
import { LocaleMessage } from '@intlify/core-base';
|
|
10
11
|
/* import 'popper.js/dist/popper.min.js'; */
|
|
11
12
|
/* import 'jquery/src/jquery.js'; */
|
|
@@ -32,6 +33,22 @@ const i18n = createI18n({
|
|
|
32
33
|
});
|
|
33
34
|
moment.locale(language);
|
|
34
35
|
|
|
36
|
+
|
|
37
|
+
paramStore.initialize({
|
|
38
|
+
generalParameters: {},
|
|
39
|
+
podcastPage: {},
|
|
40
|
+
podcastsPage: {},
|
|
41
|
+
emissionsPage: {},
|
|
42
|
+
emissionPage: {},
|
|
43
|
+
intervenantPage: {},
|
|
44
|
+
intervenantsPage: {},
|
|
45
|
+
searchPage: {},
|
|
46
|
+
player: {},
|
|
47
|
+
footer: {},
|
|
48
|
+
organisation: {},
|
|
49
|
+
octopusApi: {}
|
|
50
|
+
});
|
|
51
|
+
|
|
35
52
|
// Initialisation store
|
|
36
53
|
createApp(App)
|
|
37
54
|
.use(i18n)
|
package/src/store/paramStore.ts
CHANGED
|
@@ -89,6 +89,7 @@ const state:paramStore = {
|
|
|
89
89
|
studioUrl: 'http://studio.dev2.saooti.org/',
|
|
90
90
|
playerUrl: 'https://playerbeta.dev2.saooti.org/',
|
|
91
91
|
organisationId: undefined,
|
|
92
|
+
rubriqueIdFilter: undefined,
|
|
92
93
|
},
|
|
93
94
|
};
|
|
94
95
|
export interface GeneralParameters{
|
|
@@ -184,7 +185,8 @@ export interface OctopusApi{
|
|
|
184
185
|
accessTokenUri: string,
|
|
185
186
|
expiration: string,
|
|
186
187
|
clientId: string,
|
|
187
|
-
}
|
|
188
|
+
},
|
|
189
|
+
rubriqueIdFilter?: Array<number>,
|
|
188
190
|
}
|
|
189
191
|
export interface paramStore{
|
|
190
192
|
generalParameters:GeneralParameters,
|