@saooti/octopus-sdk 30.0.49 → 30.0.52
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
CHANGED
|
@@ -545,4 +545,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
545
545
|
* 30.0.46 Param pour le soir
|
|
546
546
|
* 30.0.47 Live error
|
|
547
547
|
* 30.0.48 Podcastmaker ScrollOverflow PodcastInlineList
|
|
548
|
-
* 30.0.49 Podcastmaker ProgressBar
|
|
548
|
+
* 30.0.49 Podcastmaker ProgressBar
|
|
549
|
+
* 30.0.50 Commentaires live
|
|
550
|
+
* 30.0.51 Commentaires live
|
|
551
|
+
* 30.0.52 Ajout rubriqueIdFilter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.52",
|
|
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"
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
</template>
|
|
67
67
|
|
|
68
68
|
<script lang="ts">
|
|
69
|
-
import { IReCaptchaComposition, useReCaptcha } from 'vue-recaptcha-v3';
|
|
70
69
|
import Constants from '../../../../public/config';
|
|
71
70
|
import { state } from '../../../store/paramStore';
|
|
72
71
|
import api from '@/api/initialize';
|
|
@@ -130,11 +129,9 @@ export default defineComponent({
|
|
|
130
129
|
this.sendComment();
|
|
131
130
|
return;
|
|
132
131
|
}
|
|
133
|
-
const iRecaptcha: IReCaptchaComposition|undefined = useReCaptcha();
|
|
134
|
-
if(!iRecaptcha){return;}
|
|
135
|
-
await iRecaptcha.recaptchaLoaded();
|
|
136
|
-
const token = await iRecaptcha.executeRecaptcha('login');
|
|
137
132
|
try {
|
|
133
|
+
await this.$recaptchaLoaded()
|
|
134
|
+
const token = await this.$recaptcha('login');
|
|
138
135
|
this.sendError = false;
|
|
139
136
|
const ok = await api.checkToken(token);
|
|
140
137
|
if (!ok) {
|
|
@@ -89,6 +89,9 @@ export default defineComponent({
|
|
|
89
89
|
|
|
90
90
|
methods: {
|
|
91
91
|
addKeyboardControl(event: KeyboardEvent): void{
|
|
92
|
+
if(!event || null ===event){return;}
|
|
93
|
+
const element = event.target as HTMLElement;
|
|
94
|
+
if (!element || 'INPUT' == element.tagName.toUpperCase() || 'TEXTAREA' == element.tagName.toUpperCase()){return;}
|
|
92
95
|
if (' ' === event.key || 'Spacebar' === event.key) {
|
|
93
96
|
event.preventDefault();
|
|
94
97
|
this.switchPausePlay();
|
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,
|