@saooti/octopus-sdk 38.0.0 → 38.0.2
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 +27 -27
- package/src/App.vue +16 -11
- package/src/assets/form.scss +1 -1
- package/src/components/display/sharing/ShareButtonsIntern.vue +12 -0
- package/src/components/display/sharing/SharePlayer.vue +1 -1
- package/src/components/misc/ClassicLazy.vue +4 -1
- package/src/components/pages/HomePage.vue +4 -2
- package/src/locale/de.ts +1 -0
- package/src/locale/en.ts +1 -0
- package/src/locale/es.ts +1 -0
- package/src/locale/fr.ts +1 -0
- package/src/locale/it.ts +1 -0
- package/src/locale/sl.ts +1 -0
- package/src/router/router.ts +5 -0
- package/src/stores/ParamSdkStore.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "38.0.
|
|
3
|
+
"version": "38.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -16,35 +16,35 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@popperjs/core": "^2.11.8",
|
|
18
18
|
"@saooti/octopus-api": "^0.36.0",
|
|
19
|
-
"@tiptap/extension-link": "^2.1.
|
|
20
|
-
"@tiptap/extension-underline": "^2.1.
|
|
21
|
-
"@tiptap/pm": "^2.1.
|
|
22
|
-
"@tiptap/starter-kit": "^2.1.
|
|
23
|
-
"@tiptap/vue-3": "^2.1.
|
|
19
|
+
"@tiptap/extension-link": "^2.1.12",
|
|
20
|
+
"@tiptap/extension-underline": "^2.1.12",
|
|
21
|
+
"@tiptap/pm": "^2.1.12",
|
|
22
|
+
"@tiptap/starter-kit": "^2.1.12",
|
|
23
|
+
"@tiptap/vue-3": "^2.1.12",
|
|
24
24
|
"@vue/cli": "^5.0.8",
|
|
25
|
-
"@vue/compat": "^3.3.
|
|
26
|
-
"@vuepic/vue-datepicker": "^7.
|
|
25
|
+
"@vue/compat": "^3.3.7",
|
|
26
|
+
"@vuepic/vue-datepicker": "^7.2.0",
|
|
27
27
|
"@vueuse/core": "^10.5.0",
|
|
28
28
|
"autoprefixer": "^10.4.16",
|
|
29
|
-
"axios": "^1.
|
|
29
|
+
"axios": "^1.6.0",
|
|
30
30
|
"dayjs": "^1.11.10",
|
|
31
31
|
"eslint-config-prettier": "^9.0.0",
|
|
32
|
-
"eslint-plugin-prettier": "^5.0.
|
|
32
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
33
33
|
"express": "^4.18.2",
|
|
34
34
|
"hls.js": "^1.4.12",
|
|
35
35
|
"humanize-duration": "^3.30.0",
|
|
36
36
|
"jest": "^29.7.0",
|
|
37
|
-
"pinia": "^2.1.
|
|
37
|
+
"pinia": "^2.1.7",
|
|
38
38
|
"qrcode.vue": "^3.4.1",
|
|
39
|
-
"sass": "^1.
|
|
39
|
+
"sass": "^1.69.5",
|
|
40
40
|
"sonarqube-scanner": "^3.1.0",
|
|
41
|
-
"swiper": "^
|
|
42
|
-
"video.js": "^
|
|
43
|
-
"videojs-contrib-quality-levels": "^
|
|
41
|
+
"swiper": "^11.0.3",
|
|
42
|
+
"video.js": "^8.6.1",
|
|
43
|
+
"videojs-contrib-quality-levels": "^4.0.0",
|
|
44
44
|
"videojs-hls-quality-selector": "^1.1.4",
|
|
45
|
-
"vite": "^4.
|
|
46
|
-
"vue": "^3.3.
|
|
47
|
-
"vue-i18n": "^9.
|
|
45
|
+
"vite": "^4.5.0",
|
|
46
|
+
"vue": "^3.3.7",
|
|
47
|
+
"vue-i18n": "^9.6.4",
|
|
48
48
|
"vue-recaptcha": "^2.0.3",
|
|
49
49
|
"vue-router": "^4.2.5",
|
|
50
50
|
"vue-select": "^4.0.0-beta.6",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"vue3-swatches": "^1.2.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/videojs-contrib-quality-levels": "^2.0.
|
|
56
|
-
"@types/videojs-hls-quality-selector": "^1.1.
|
|
57
|
-
"@types/vue-select": "^3.16.
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
59
|
-
"@typescript-eslint/parser": "^6.
|
|
60
|
-
"@vitejs/plugin-vue": "^4.
|
|
61
|
-
"@vue/compiler-sfc": "^3.3.
|
|
55
|
+
"@types/videojs-contrib-quality-levels": "^2.0.3",
|
|
56
|
+
"@types/videojs-hls-quality-selector": "^1.1.2",
|
|
57
|
+
"@types/vue-select": "^3.16.6",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
59
|
+
"@typescript-eslint/parser": "^6.9.1",
|
|
60
|
+
"@vitejs/plugin-vue": "^4.4.0",
|
|
61
|
+
"@vue/compiler-sfc": "^3.3.7",
|
|
62
62
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
63
|
-
"eslint": "^8.
|
|
64
|
-
"eslint-plugin-vue": "^9.
|
|
63
|
+
"eslint": "^8.52.0",
|
|
64
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
65
65
|
"typescript": "^5.1.6"
|
|
66
66
|
},
|
|
67
67
|
"eslintConfig": {
|
package/src/App.vue
CHANGED
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
/>
|
|
9
9
|
<CategoryFilter v-if="firstDisplayCategoryFilter" />
|
|
10
10
|
<router-view />
|
|
11
|
-
<ClassicLazy
|
|
12
|
-
v-if="pageFullyLoad"
|
|
13
|
-
:min-height="125"
|
|
14
|
-
:unrender="true"
|
|
15
|
-
>
|
|
11
|
+
<ClassicLazy v-if="pageFullyLoad" :min-height="125" :unrender="true">
|
|
16
12
|
<FooterOctopus />
|
|
17
13
|
</ClassicLazy>
|
|
18
14
|
<PlayerComponent />
|
|
@@ -51,7 +47,7 @@ export default defineComponent({
|
|
|
51
47
|
CategoryFilter,
|
|
52
48
|
FooterOctopus,
|
|
53
49
|
PlayerComponent,
|
|
54
|
-
ClassicLazy
|
|
50
|
+
ClassicLazy,
|
|
55
51
|
},
|
|
56
52
|
|
|
57
53
|
mixins: [initSDK],
|
|
@@ -76,11 +72,20 @@ export default defineComponent({
|
|
|
76
72
|
deep: true,
|
|
77
73
|
immediate: true,
|
|
78
74
|
async handler() {
|
|
79
|
-
if(this.firstDisplayCategoryFilter){
|
|
75
|
+
if (this.firstDisplayCategoryFilter) {
|
|
80
76
|
return;
|
|
81
77
|
}
|
|
82
|
-
const namesRouteWithCategoryFilter = [
|
|
83
|
-
|
|
78
|
+
const namesRouteWithCategoryFilter = [
|
|
79
|
+
"homePriv",
|
|
80
|
+
"home",
|
|
81
|
+
"podcasts",
|
|
82
|
+
"emissions",
|
|
83
|
+
"participants",
|
|
84
|
+
"playlists",
|
|
85
|
+
];
|
|
86
|
+
this.firstDisplayCategoryFilter = namesRouteWithCategoryFilter.includes(
|
|
87
|
+
this.$route.name?.toString() ?? "",
|
|
88
|
+
);
|
|
84
89
|
},
|
|
85
90
|
},
|
|
86
91
|
"$i18n.locale"() {
|
|
@@ -90,9 +95,9 @@ export default defineComponent({
|
|
|
90
95
|
},
|
|
91
96
|
async created() {
|
|
92
97
|
await this.initApp();
|
|
93
|
-
setTimeout(()=>{
|
|
98
|
+
setTimeout(() => {
|
|
94
99
|
this.pageFullyLoad = true;
|
|
95
|
-
}, 2000)
|
|
100
|
+
}, 2000);
|
|
96
101
|
},
|
|
97
102
|
methods: {
|
|
98
103
|
...mapActions(useFilterStore, ["filterUpdateIab", "filterUpdateRubrique"]),
|
package/src/assets/form.scss
CHANGED
|
@@ -18,6 +18,15 @@
|
|
|
18
18
|
<div :class="button.icon" />
|
|
19
19
|
</a>
|
|
20
20
|
</template>
|
|
21
|
+
<router-link
|
|
22
|
+
v-if="!isPodcastmaker && authenticated && podcast && isProduction"
|
|
23
|
+
:class="getClass('saooti-share')"
|
|
24
|
+
:title="$t('Advanced sharing')"
|
|
25
|
+
:to="{
|
|
26
|
+
name: 'advancedShare',
|
|
27
|
+
params: { podcastId: podcast.podcastId }
|
|
28
|
+
}"
|
|
29
|
+
/>
|
|
21
30
|
</div>
|
|
22
31
|
</div>
|
|
23
32
|
<div v-if="podcast || emission || playlist" class="d-flex flex-column me-2">
|
|
@@ -206,6 +215,9 @@ export default defineComponent({
|
|
|
206
215
|
authenticated(): boolean {
|
|
207
216
|
return state.generalParameters.authenticated as boolean;
|
|
208
217
|
},
|
|
218
|
+
isProduction() : boolean{
|
|
219
|
+
return state.generalParameters.isProduction as boolean;
|
|
220
|
+
},
|
|
209
221
|
rssUrl(): string {
|
|
210
222
|
let api = state.generalParameters.ApiUri + "rss/";
|
|
211
223
|
if (this.emission) {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
v-model:display-wave="displayWave"
|
|
52
52
|
v-model:proceed-reading="proceedReading"
|
|
53
53
|
v-model:is-visible="isVisible"
|
|
54
|
-
:is-visible="isVisible"
|
|
55
54
|
v-model:player-auto-play="playerAutoPlay"
|
|
55
|
+
:is-visible="isVisible"
|
|
56
56
|
:chose-number-episode="
|
|
57
57
|
displayChoiceAllEpisodes || isLargeSuggestion
|
|
58
58
|
"
|
|
@@ -80,6 +80,7 @@ export default defineComponent({
|
|
|
80
80
|
PodcastInlineList,
|
|
81
81
|
ClassicLazy,
|
|
82
82
|
},
|
|
83
|
+
emits: ["categoriesLength"],
|
|
83
84
|
data() {
|
|
84
85
|
return {
|
|
85
86
|
rubriqueId: [] as Array<number>,
|
|
@@ -137,13 +138,14 @@ export default defineComponent({
|
|
|
137
138
|
});
|
|
138
139
|
} else {
|
|
139
140
|
arrayCategories = this.storedCategories.filter((c: Category) => {
|
|
140
|
-
if (state.generalParameters.podcastmaker)
|
|
141
|
+
if (state.generalParameters.podcastmaker)
|
|
142
|
+
return c.podcastOrganisationCount;
|
|
141
143
|
return c.podcastCount;
|
|
142
144
|
});
|
|
143
145
|
}
|
|
144
146
|
this.$emit("categoriesLength", arrayCategories.length);
|
|
145
147
|
return arrayCategories;
|
|
146
|
-
}
|
|
148
|
+
},
|
|
147
149
|
},
|
|
148
150
|
watch: {
|
|
149
151
|
rubriqueFilter: {
|
package/src/locale/de.ts
CHANGED
package/src/locale/en.ts
CHANGED
package/src/locale/es.ts
CHANGED
package/src/locale/fr.ts
CHANGED
package/src/locale/it.ts
CHANGED
package/src/locale/sl.ts
CHANGED
package/src/router/router.ts
CHANGED
|
@@ -3,12 +3,12 @@ import { Category } from "./class/general/category";
|
|
|
3
3
|
|
|
4
4
|
const state: ParamStore = {
|
|
5
5
|
generalParameters: {
|
|
6
|
-
organisationId:
|
|
6
|
+
organisationId:"ecbd98d9-79bd-4312-ad5e-fc7c1c4a191c",
|
|
7
7
|
authenticated: true,
|
|
8
8
|
isAdmin: true,
|
|
9
9
|
isRoleLive: true,
|
|
10
10
|
isCommments: true,
|
|
11
|
-
isOrganisation:
|
|
11
|
+
isOrganisation:true,
|
|
12
12
|
isPlaylist: true,
|
|
13
13
|
isProduction: true,
|
|
14
14
|
isContribution: true,
|