@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "38.0.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.11",
20
- "@tiptap/extension-underline": "^2.1.11",
21
- "@tiptap/pm": "^2.1.11",
22
- "@tiptap/starter-kit": "^2.1.11",
23
- "@tiptap/vue-3": "^2.1.11",
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.4",
26
- "@vuepic/vue-datepicker": "^7.0.0",
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.5.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.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.6",
37
+ "pinia": "^2.1.7",
38
38
  "qrcode.vue": "^3.4.1",
39
- "sass": "^1.68.0",
39
+ "sass": "^1.69.5",
40
40
  "sonarqube-scanner": "^3.1.0",
41
- "swiper": "^10.3.1",
42
- "video.js": "^7.21.5",
43
- "videojs-contrib-quality-levels": "^2.2.1",
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.4.9",
46
- "vue": "^3.3.4",
47
- "vue-i18n": "^9.5.0",
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.2",
56
- "@types/videojs-hls-quality-selector": "^1.1.1",
57
- "@types/vue-select": "^3.16.3",
58
- "@typescript-eslint/eslint-plugin": "^6.7.3",
59
- "@typescript-eslint/parser": "^6.7.3",
60
- "@vitejs/plugin-vue": "^4.3.4",
61
- "@vue/compiler-sfc": "^3.3.4",
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.50.0",
64
- "eslint-plugin-vue": "^9.15.1",
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 = ["homePriv", "home", "podcasts", "emissions", "participants", "playlists"];
83
- this.firstDisplayCategoryFilter = namesRouteWithCategoryFilter.includes(this.$route.name?.toString()?? "");
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"]),
@@ -32,7 +32,7 @@
32
32
  cursor: pointer;
33
33
  margin-right: 5px;
34
34
  }
35
- .form-input{
35
+ .form-input, .v3-input-emoji-picker .v3-input-picker-root .v3-emoji-picker-textarea{
36
36
  appearance: none;
37
37
  background: #fff;
38
38
  background-image: none;
@@ -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
  "
@@ -25,7 +25,10 @@ export default {
25
25
  props: {
26
26
  renderOnIdle: Boolean,
27
27
  unrender: Boolean,
28
- minHeight: Number,
28
+ minHeight: {
29
+ type: Number,
30
+ default: 0,
31
+ },
29
32
  unrenderDelay: {
30
33
  type: Number,
31
34
  default: 10000,
@@ -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) return c.podcastOrganisationCount;
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
@@ -349,4 +349,5 @@ export default {
349
349
  "Chronological":"Chronologisch",
350
350
  "Trigger automatic reading if this is possible":"Wenn möglich, automatisches Auslesen auslösen",
351
351
  "High version":"Hohe Version",
352
+ "Advanced sharing":"Erweitertes Teilen",
352
353
  }
package/src/locale/en.ts CHANGED
@@ -349,4 +349,5 @@ export default {
349
349
  "Chronological":"Chronological",
350
350
  "Trigger automatic reading if this is possible":"Trigger automatic reading if this is possible",
351
351
  "High version":"High version",
352
+ "Advanced sharing":"Advanced sharing",
352
353
  };
package/src/locale/es.ts CHANGED
@@ -350,4 +350,5 @@ export default {
350
350
  "Chronological":"Cronológico",
351
351
  "Trigger automatic reading if this is possible":"Activar la lectura automática si esto es posible",
352
352
  "High version":"Versión alta",
353
+ "Advanced sharing":"Reparto adelantado",
353
354
  }
package/src/locale/fr.ts CHANGED
@@ -356,4 +356,5 @@ export default {
356
356
  "Chronological":"Chronologique",
357
357
  "Trigger automatic reading if this is possible":"Déclencher la lecture automatique si celle ci est possible",
358
358
  "High version":"Version en hauteur",
359
+ "Advanced sharing":"Partage avancé",
359
360
  };
package/src/locale/it.ts CHANGED
@@ -342,4 +342,5 @@ export default{
342
342
  "Chronological":"Cronologico",
343
343
  "Trigger automatic reading if this is possible":"Attivare la lettura automatica, se possibile",
344
344
  "High version":"Versione alta",
345
+ "Advanced sharing":"Condivisione avanzata",
345
346
  };
package/src/locale/sl.ts CHANGED
@@ -339,4 +339,5 @@ export default {
339
339
  "Chronological":"Kronološko",
340
340
  "Trigger automatic reading if this is possible":"Sprožite samodejno branje, če je to mogoče",
341
341
  "High version":"Visoka različica",
342
+ "Advanced sharing":"Napredno deljenje",
342
343
  }
@@ -211,6 +211,11 @@ const routes: Array<RouteRecordRaw> = [
211
211
  path: "/main/pub/contact",
212
212
  component: Home,
213
213
  },
214
+ {
215
+ path: "/main/priv/share",
216
+ name: "advancedShare",
217
+ component: Home,
218
+ },
214
219
  {
215
220
  path: "/main/pub/cgu",
216
221
  component: Home,
@@ -3,12 +3,12 @@ import { Category } from "./class/general/category";
3
3
 
4
4
  const state: ParamStore = {
5
5
  generalParameters: {
6
- organisationId: "ecbd98d9-79bd-4312-ad5e-fc7c1c4a191c",
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: true,
11
+ isOrganisation:true,
12
12
  isPlaylist: true,
13
13
  isProduction: true,
14
14
  isContribution: true,