@saooti/octopus-sdk 30.0.48 → 30.0.51
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
|
@@ -544,4 +544,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
544
544
|
* 30.0.45 ProgressBar pour le soir
|
|
545
545
|
* 30.0.46 Param pour le soir
|
|
546
546
|
* 30.0.47 Live error
|
|
547
|
-
* 30.0.48 Podcastmaker ScrollOverflow PodcastInlineList
|
|
547
|
+
* 30.0.48 Podcastmaker ScrollOverflow PodcastInlineList
|
|
548
|
+
* 30.0.49 Podcastmaker ProgressBar
|
|
549
|
+
* 30.0.50 Commentaires live
|
|
550
|
+
* 30.0.51 Commentaires live
|
package/package.json
CHANGED
|
@@ -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) {
|
|
@@ -48,14 +48,14 @@ export default defineComponent({
|
|
|
48
48
|
return (state.emissionsPage.progressBar as boolean);
|
|
49
49
|
},
|
|
50
50
|
percentProgress(): number{
|
|
51
|
-
if(this.podcast !== this.$store.state.player.podcast){
|
|
51
|
+
if(!this.$store.state.player.podcast || this.podcast.podcastId !== this.$store.state.player.podcast.podcastId){
|
|
52
52
|
return 0;
|
|
53
53
|
}
|
|
54
54
|
if(!this.$store.state.player.elapsed){return 0;}
|
|
55
55
|
return this.$store.state.player.elapsed * 100;
|
|
56
56
|
},
|
|
57
57
|
playedTime(): string{
|
|
58
|
-
if(this.podcast === this.$store.state.player.podcast){
|
|
58
|
+
if(this.$store.state.player.podcast && this.podcast.podcastId === this.$store.state.player.podcast.podcastId){
|
|
59
59
|
if (this.$store.state.player.elapsed && this.$store.state.player.elapsed > 0 && this.$store.state.player.total && this.$store.state.player.total > 0) {
|
|
60
60
|
return DurationHelper.formatDuration(
|
|
61
61
|
Math.round(this.$store.state.player.elapsed * this.$store.state.player.total)
|
|
@@ -70,7 +70,7 @@ export default defineComponent({
|
|
|
70
70
|
},
|
|
71
71
|
methods: {
|
|
72
72
|
seekTo(event: MouseEvent): void {
|
|
73
|
-
if(this.podcast!== this.$store.state.player.podcast){return;}
|
|
73
|
+
if(!this.$store.state.player.podcast || this.podcast.podcastId !== this.$store.state.player.podcast.podcastId){return;}
|
|
74
74
|
const rect = (event.currentTarget as Element).getBoundingClientRect();
|
|
75
75
|
const barWidth = (event.currentTarget as Element).clientWidth;
|
|
76
76
|
const x = event.clientX - rect.left;
|
|
@@ -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();
|