@saooti/octopus-sdk 30.0.39 → 30.0.40

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": "30.0.39",
3
+ "version": "30.0.40",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -80,7 +80,7 @@ import domHelper from '../../../helper/dom';
80
80
  import PodcastItem from './PodcastItem.vue';
81
81
  import ClassicLoading from '../../form/ClassicLoading.vue';
82
82
  const PHONE_WIDTH = 960;
83
-
83
+ import { state } from '../../../store/paramStore';
84
84
  import { Podcast } from '@/store/class/general/podcast';
85
85
  import { RubriquageFilter } from '@/store/class/rubrique/rubriquageFilter';
86
86
  import { defineComponent } from 'vue'
@@ -106,7 +106,6 @@ export default defineComponent({
106
106
  rubriqueId: { default: () => [], type: Array as ()=> Array<number> },
107
107
  rubriquageId:{ default: () => [], type: Array as ()=> Array<number> },
108
108
  noRubriquageId: { default: () => [], type: Array as ()=> Array<number> },
109
- sizeItem: { default: 13, type: Number},
110
109
  },
111
110
  emits: ['update:isArrow'],
112
111
 
@@ -128,6 +127,9 @@ export default defineComponent({
128
127
  podcasts(): Array<Podcast> {
129
128
  return this.allPodcasts.slice(this.index, this.index + this.size);
130
129
  },
130
+ sizeItem(): number {
131
+ return state.generalParameters.podcastItem ? (state.generalParameters.podcastItem as number): 13;
132
+ },
131
133
  filterOrga(): string {
132
134
  return this.$store.state.filter.organisationId;
133
135
  },
@@ -176,9 +178,6 @@ export default defineComponent({
176
178
  this.reset();
177
179
  this.fetchNext();
178
180
  },
179
- sizeItem(){
180
- this.handleResize();
181
- }
182
181
  },
183
182
 
184
183
  created() {
@@ -18,6 +18,7 @@ const state:paramStore = {
18
18
  allCategories: [],
19
19
  isLiveTab: false,
20
20
  isCaptchaTest: true,
21
+ podcastItem:13
21
22
  },
22
23
  podcastPage: {
23
24
  EditBox: false,
@@ -103,6 +104,7 @@ export interface GeneralParameters{
103
104
  allCategories?: Array<Category>,
104
105
  isLiveTab?: boolean,
105
106
  isCaptchaTest?: boolean,
107
+ podcastItem?: number
106
108
  }
107
109
  export interface PodcastPage{
108
110
  EditBox?: boolean,