@saooti/octopus-sdk 32.0.27 → 32.0.28

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
@@ -671,4 +671,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
671
671
  * 32.0.24 CDI podcastmaker
672
672
  * 32.0.25 #11391
673
673
  * 32.0.26 Image Proxy
674
- * 32.0.27 Image Proxy -> webp
674
+ * 32.0.27 Image Proxy -> webp
675
+ * 32.0.28 Image Proxy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "32.0.27",
3
+ "version": "32.0.28",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -68,6 +68,7 @@ import { Emission } from '@/store/class/general/emission';
68
68
  import { Rubrique } from '@/store/class/rubrique/rubrique';
69
69
  import { defineComponent } from 'vue'
70
70
  import { AxiosError } from 'axios';
71
+ import { imageProxy } from '../../mixins/functions';
71
72
  import { Rubriquage } from '@/store/class/rubrique/rubriquage';
72
73
  export default defineComponent({
73
74
  name: 'EmissionInlineList',
@@ -77,7 +78,7 @@ export default defineComponent({
77
78
  ClassicLoading
78
79
  },
79
80
 
80
- mixins: [handle403],
81
+ mixins: [handle403,imageProxy],
81
82
 
82
83
  props: {
83
84
  organisationId: { default: undefined, type: String},
@@ -220,7 +221,7 @@ export default defineComponent({
220
221
  },
221
222
  preloadImage(url: string): void {
222
223
  const img = new Image();
223
- img.src = url;
224
+ img.src = this.proxyImageUrl(url,'260');
224
225
  },
225
226
  async fetchRubriques(): Promise<void> {
226
227
  const data = await octopusApi.fetchData<Rubriquage>(0, 'rubriquage/'+this.displayRubriquage);
@@ -53,6 +53,7 @@ import ClassicLoading from '../../form/ClassicLoading.vue';
53
53
  const PHONE_WIDTH = 960;
54
54
  import { state } from '../../../store/paramStore';
55
55
  import { Podcast } from '@/store/class/general/podcast';
56
+ import { imageProxy } from '../../mixins/functions';
56
57
  import { defineComponent } from 'vue'
57
58
  export default defineComponent({
58
59
  name: 'PodcastInlineListClassic',
@@ -62,7 +63,7 @@ export default defineComponent({
62
63
  ClassicLoading,
63
64
  PodcastInlineListTemplate
64
65
  },
65
-
66
+ mixins:[imageProxy],
66
67
  props: {
67
68
  organisationId: { default: undefined, type: String},
68
69
  emissionId: { default: undefined, type: Number},
@@ -233,7 +234,7 @@ export default defineComponent({
233
234
  },
234
235
  preloadImage(url: string): void {
235
236
  const img = new Image();
236
- img.src = url;
237
+ img.src = this.proxyImageUrl(url,'260');
237
238
  },
238
239
  },
239
240
  })