@saooti/octopus-sdk 36.0.42 → 36.0.44
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/package.json +4 -4
- package/src/components/display/filter/DateFilter.vue +10 -4
- package/src/components/form/ClassicDatePicker.vue +57 -59
- package/src/components/misc/player/Player.vue +4 -1
- package/src/components/misc/player/PlayerCompact.vue +1 -0
- package/src/components/misc/player/PlayerLarge.vue +1 -0
- package/src/components/misc/player/PlayerProgressBar.vue +0 -1
- package/src/stores/ParamSdkStore.ts +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "36.0.
|
|
3
|
+
"version": "36.0.44",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@tiptap/vue-3": "^2.0.3",
|
|
26
26
|
"@vue/cli": "^5.0.8",
|
|
27
27
|
"@vue/compat": "^3.3.4",
|
|
28
|
+
"@vuepic/vue-datepicker": "^5.4.0",
|
|
28
29
|
"autoprefixer": "^10.4.14",
|
|
29
30
|
"axios": "^1.4.0",
|
|
30
31
|
"dayjs": "^1.11.8",
|
|
@@ -36,9 +37,8 @@
|
|
|
36
37
|
"qrcode.vue": "^3.4.0",
|
|
37
38
|
"sass": "^1.63.4",
|
|
38
39
|
"sonarqube-scanner": "^3.0.0",
|
|
39
|
-
"swiper": "^
|
|
40
|
-
"
|
|
41
|
-
"vite": "^4.3.9",
|
|
40
|
+
"swiper": "^10.0.4",
|
|
41
|
+
"vite": "^4.4.4",
|
|
42
42
|
"vue": "^3.3.4",
|
|
43
43
|
"vue-i18n": "^9.2.2",
|
|
44
44
|
"vue-recaptcha": "^2.0.3",
|
|
@@ -15,8 +15,11 @@
|
|
|
15
15
|
/>
|
|
16
16
|
<ClassicDatePicker
|
|
17
17
|
:date="fromDate"
|
|
18
|
-
|
|
19
|
-
@
|
|
18
|
+
class="mx-2"
|
|
19
|
+
@update-date="
|
|
20
|
+
fromDate = $event;
|
|
21
|
+
updateFromDate();
|
|
22
|
+
"
|
|
20
23
|
/>
|
|
21
24
|
</div>
|
|
22
25
|
<div class="d-flex align-items-center">
|
|
@@ -28,8 +31,11 @@
|
|
|
28
31
|
/>
|
|
29
32
|
<ClassicDatePicker
|
|
30
33
|
:date="toDate"
|
|
31
|
-
|
|
32
|
-
@
|
|
34
|
+
class="mx-2"
|
|
35
|
+
@update-date="
|
|
36
|
+
toDate = $event;
|
|
37
|
+
updateToDate();
|
|
38
|
+
"
|
|
33
39
|
/>
|
|
34
40
|
</div>
|
|
35
41
|
</div>
|
|
@@ -1,61 +1,72 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
:
|
|
5
|
-
:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
:
|
|
9
|
-
:
|
|
10
|
-
:
|
|
11
|
-
:
|
|
12
|
-
:
|
|
13
|
-
:
|
|
14
|
-
:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
:class="templateClass"
|
|
23
|
-
:value="inputValue"
|
|
24
|
-
v-on="inputEvents"
|
|
25
|
-
>
|
|
26
|
-
</template>
|
|
27
|
-
</DatePicker>
|
|
2
|
+
<VueDatePicker
|
|
3
|
+
:model-value="modelVal"
|
|
4
|
+
:time-picker="isTimePicker"
|
|
5
|
+
:input-class-name="templateClass"
|
|
6
|
+
:clearable="false"
|
|
7
|
+
:readonly="readonly"
|
|
8
|
+
:teleport="useTeleport"
|
|
9
|
+
:locale="formatLocale"
|
|
10
|
+
:format="format"
|
|
11
|
+
:auto-apply="true"
|
|
12
|
+
:enable-seconds="displaySeconds"
|
|
13
|
+
:max-date="isMaxDate && !isTimePicker ? now : undefined"
|
|
14
|
+
:min-date="isMinDate && !isTimePicker ? now : undefined"
|
|
15
|
+
:range="undefined !== range"
|
|
16
|
+
:multi-calendars="columnNumber>1 ? columnNumber : false"
|
|
17
|
+
:inline="columnNumber > 1"
|
|
18
|
+
:enable-time-picker="!isTimePicker ?displayTimePicker : undefined"
|
|
19
|
+
:time-picker-inline="!isTimePicker ? true : undefined"
|
|
20
|
+
@update:model-value="$emit('updateDate', $event)"
|
|
21
|
+
/>
|
|
28
22
|
</template>
|
|
29
23
|
|
|
30
24
|
<script lang="ts">
|
|
31
|
-
import dayjs from
|
|
32
|
-
import
|
|
33
|
-
import { defineComponent } from
|
|
25
|
+
import dayjs from "dayjs";
|
|
26
|
+
import VueDatePicker from '@vuepic/vue-datepicker';
|
|
27
|
+
import { defineComponent } from "vue";
|
|
34
28
|
export default defineComponent({
|
|
35
29
|
components: {
|
|
36
|
-
|
|
30
|
+
VueDatePicker,
|
|
37
31
|
},
|
|
38
32
|
props: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
time: { default:undefined, type: Object as () => {hours:number, minutes:number, seconds:number} },
|
|
34
|
+
date: { default: undefined, type: Date },
|
|
35
|
+
range: {default: undefined,type: Array as () => Array<Date>},
|
|
36
|
+
isMaxDate: { default: false, type: Boolean },
|
|
37
|
+
isMinDate: { default: false, type: Boolean },
|
|
38
|
+
columnNumber: { default: 1, type: Number },
|
|
39
|
+
displaySeconds: { default: false, type: Boolean },
|
|
40
|
+
displayTimePicker:{ default: true, type: Boolean },
|
|
41
|
+
isTimePicker:{ default: false, type: Boolean },
|
|
42
|
+
useTeleport:{ default: false, type: Boolean },
|
|
43
|
+
templateClass: { default: undefined, type: String },
|
|
44
|
+
readonly: { default: false, type: Boolean },
|
|
48
45
|
},
|
|
49
46
|
|
|
50
47
|
emits: ['updateDate', 'update:date'],
|
|
51
48
|
data() {
|
|
52
49
|
return {
|
|
53
|
-
masks: {
|
|
54
|
-
input: 'YYYY-MM-DD',
|
|
55
|
-
},
|
|
56
50
|
};
|
|
57
51
|
},
|
|
58
52
|
computed: {
|
|
53
|
+
modelVal(){
|
|
54
|
+
return this.time ?? this.range ?? this.date;
|
|
55
|
+
},
|
|
56
|
+
formatLocale(){
|
|
57
|
+
return this.$i18n.locale;
|
|
58
|
+
},
|
|
59
|
+
format(){
|
|
60
|
+
let timeString = '';
|
|
61
|
+
if(this.displayTimePicker || this.isTimePicker){
|
|
62
|
+
timeString ='HH:mm';
|
|
63
|
+
if(this.displaySeconds){
|
|
64
|
+
timeString ='HH:mm:ss';
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const dayString = this.isTimePicker ? timeString : 'dd/MM/yyyy '+timeString;
|
|
68
|
+
return this.range ? dayString+' - '+dayString : dayString;
|
|
69
|
+
},
|
|
59
70
|
now(): Date {
|
|
60
71
|
return dayjs().toDate();
|
|
61
72
|
},
|
|
@@ -63,22 +74,9 @@ export default defineComponent({
|
|
|
63
74
|
})
|
|
64
75
|
</script>
|
|
65
76
|
<style lang="scss">
|
|
66
|
-
@import '@
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
padding: 0 !important;
|
|
71
|
-
}
|
|
72
|
-
.vc-date{
|
|
73
|
-
.vc-month,.vc-day,.vc-year{
|
|
74
|
-
color: $octopus-primary-color !important;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
.vc-highlight{
|
|
78
|
-
background-color: $octopus-primary-color !important;
|
|
79
|
-
}
|
|
80
|
-
.vc-select select:focus{
|
|
81
|
-
border-color: $octopus-primary-color !important;
|
|
82
|
-
}
|
|
77
|
+
@import '@vuepic/vue-datepicker/dist/main.css';
|
|
78
|
+
.dp__theme_light {
|
|
79
|
+
--dp-primary-color: #1a8658;
|
|
80
|
+
--dp-time-font-size: 1rem;
|
|
83
81
|
}
|
|
84
82
|
</style>
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
:percent-live-progress="percentLiveProgress"
|
|
27
27
|
:duration-live-position="durationLivePosition"
|
|
28
28
|
:listen-time="listenTime"
|
|
29
|
+
:hlsReady="hlsReady"
|
|
29
30
|
@stopPlayer="stopPlayer"
|
|
30
31
|
@changePlayerLargeVersion="playerUpdateLargeVersion(true)"
|
|
31
32
|
/>
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
:percent-live-progress="percentLiveProgress"
|
|
39
40
|
:duration-live-position="durationLivePosition"
|
|
40
41
|
:listen-time="listenTime"
|
|
42
|
+
:hlsReady="hlsReady"
|
|
41
43
|
@stopPlayer="stopPlayer"
|
|
42
44
|
@changePlayerLargeVersion="playerUpdateLargeVersion(false)"
|
|
43
45
|
/>
|
|
@@ -74,7 +76,8 @@ export default defineComponent({
|
|
|
74
76
|
durationLivePosition: 0 as number,
|
|
75
77
|
displayAlertBar: false as boolean,
|
|
76
78
|
comments: [] as Array<CommentPodcast>,
|
|
77
|
-
audioUrlToPlay: "" as string
|
|
79
|
+
audioUrlToPlay: "" as string,
|
|
80
|
+
hlsReady: false as boolean,
|
|
78
81
|
};
|
|
79
82
|
},
|
|
80
83
|
computed: {
|
|
@@ -106,6 +106,7 @@ export default defineComponent({
|
|
|
106
106
|
percentLiveProgress: { default: 0 , type: Number},
|
|
107
107
|
durationLivePosition: { default: 0 , type: Number},
|
|
108
108
|
listenTime: { default: 0 , type: Number},
|
|
109
|
+
hlsReady: { default: false , type: Boolean},
|
|
109
110
|
},
|
|
110
111
|
|
|
111
112
|
emits: ['stopPlayer', 'update:notListenTime', 'changePlayerLargeVersion'],
|
|
@@ -115,6 +115,7 @@ export default defineComponent({
|
|
|
115
115
|
percentLiveProgress: { default: 0 , type: Number},
|
|
116
116
|
durationLivePosition: { default: 0 , type: Number},
|
|
117
117
|
listenTime: { default: 0 , type: Number},
|
|
118
|
+
hlsReady: { default: false , type: Boolean},
|
|
118
119
|
},
|
|
119
120
|
|
|
120
121
|
emits: ['stopPlayer', 'update:notListenTime', 'changePlayerLargeVersion'],
|
|
@@ -30,7 +30,6 @@ export default defineComponent({
|
|
|
30
30
|
},
|
|
31
31
|
props: {
|
|
32
32
|
classProgress:{ default: "", type: String},
|
|
33
|
-
hlsReady: { default: false, type: Boolean},
|
|
34
33
|
showTimeline: { default: false, type: Boolean},
|
|
35
34
|
comments: { default: ()=>[], type: Array as ()=>Array<CommentPodcast>},
|
|
36
35
|
displayAlertBar: { default: false, type: Boolean},
|
|
@@ -12,7 +12,7 @@ const state:ParamStore = {
|
|
|
12
12
|
isPlaylist: false,
|
|
13
13
|
isProduction: false,
|
|
14
14
|
isContribution: true,
|
|
15
|
-
ApiUri: 'https://api.
|
|
15
|
+
ApiUri: 'https://api.preprod.saooti.org/',
|
|
16
16
|
podcastmaker: false,
|
|
17
17
|
buttonPlus: true,
|
|
18
18
|
allCategories: [],
|
|
@@ -26,8 +26,8 @@ const state:ParamStore = {
|
|
|
26
26
|
SharePlayer: true,
|
|
27
27
|
ShareButtons: true,
|
|
28
28
|
ShareDistribution: true,
|
|
29
|
-
MiniplayerUri: 'https://playerbeta.
|
|
30
|
-
hlsUri: 'https://hls.
|
|
29
|
+
MiniplayerUri: 'https://playerbeta.preprod.saooti.org/',
|
|
30
|
+
hlsUri: 'https://hls.live.preprod.saooti.org/',
|
|
31
31
|
mainRubrique: 0,
|
|
32
32
|
resourceUrl: undefined,
|
|
33
33
|
podcastItemShowEmission: false,
|
|
@@ -79,13 +79,13 @@ const state:ParamStore = {
|
|
|
79
79
|
userName: '',
|
|
80
80
|
},
|
|
81
81
|
octopusApi: {
|
|
82
|
-
url: 'https://api.
|
|
83
|
-
commentsUrl: 'https://comments.
|
|
84
|
-
imageUrl:'https://imageproxy.
|
|
85
|
-
studioUrl: 'https://studio.
|
|
86
|
-
playerUrl: 'https://playerbeta.
|
|
87
|
-
speechToTextUrl:'https://speech2text.
|
|
88
|
-
recoUrl: 'https://reco.
|
|
82
|
+
url: 'https://api.preprod.saooti.org/',
|
|
83
|
+
commentsUrl: 'https://comments.preprod.saooti.org/',
|
|
84
|
+
imageUrl:'https://imageproxy.preprod.saooti.org/',
|
|
85
|
+
studioUrl: 'https://studio.preprod.saooti.org/',
|
|
86
|
+
playerUrl: 'https://playerbeta.preprod.saooti.org/',
|
|
87
|
+
speechToTextUrl:'https://speech2text.preprod.saooti.org/',
|
|
88
|
+
recoUrl: 'https://reco.preprod.saooti.org/',
|
|
89
89
|
organisationId: undefined,
|
|
90
90
|
rubriqueIdFilter: undefined,
|
|
91
91
|
},
|