@saooti/octopus-sdk 30.0.37 → 30.0.41
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
|
@@ -534,4 +534,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
534
534
|
* 30.0.34 Bouton css
|
|
535
535
|
* 30.0.35 Commentaires
|
|
536
536
|
* 30.0.36 LiveList
|
|
537
|
-
* 30.0.37 Commentaires
|
|
537
|
+
* 30.0.37 Commentaires
|
|
538
|
+
* 30.0.38 EmissionList expose
|
|
539
|
+
* 30.0.39 Listes inline taille item
|
|
540
|
+
* 30.0.41 Inline list arrow
|
package/index.ts
CHANGED
|
@@ -29,8 +29,8 @@ import CategoryFilter from "./src/components/display/categories/CategoryFilter.v
|
|
|
29
29
|
/*import EditBox from "./src/components/display/edit/EditBox.vue"; */
|
|
30
30
|
import EmissionChooser from "./src/components/display/emission/EmissionChooser.vue";
|
|
31
31
|
/* import EmissionItem from "./src/components/display/emission/EmissionItem.vue"; */
|
|
32
|
-
|
|
33
|
-
import MonetizableFilter from "./src/components/display/filter/MonetizableFilter.vue";
|
|
32
|
+
import EmissionList from "./src/components/display/emission/EmissionList.vue";
|
|
33
|
+
/*import MonetizableFilter from "./src/components/display/filter/MonetizableFilter.vue";
|
|
34
34
|
import ProductorSearch from "./src/components/display/filter/ProductorSearch.vue";*/
|
|
35
35
|
import OrganisationChooser from "./src/components/display/organisation/OrganisationChooser.vue";
|
|
36
36
|
/*import ParticipantItem from "./src/components/display/participant/ParticipantItem.vue";
|
|
@@ -84,6 +84,7 @@ const components = {
|
|
|
84
84
|
CategoryList,
|
|
85
85
|
PodcastInlineList,
|
|
86
86
|
EmissionChooser,
|
|
87
|
+
EmissionList,
|
|
87
88
|
/* EmissionItem, */
|
|
88
89
|
OrganisationChooser,
|
|
89
90
|
PodcastFilterList,
|
|
@@ -136,6 +137,7 @@ export {
|
|
|
136
137
|
PodcastInlineList,
|
|
137
138
|
EmissionChooser,
|
|
138
139
|
/* EmissionItem, */
|
|
140
|
+
EmissionList,
|
|
139
141
|
OrganisationChooser,
|
|
140
142
|
PodcastFilterList,
|
|
141
143
|
ShareButtons,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:title="$t('Display previous')"
|
|
12
12
|
@click="displayPrevious()"
|
|
13
13
|
>
|
|
14
|
-
<div class="saooti-
|
|
14
|
+
<div class="saooti-left fw-bold" />
|
|
15
15
|
</button>
|
|
16
16
|
<button
|
|
17
17
|
class="btn admin-button m-1"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
:title="$t('Display next')"
|
|
20
20
|
@click="displayNext()"
|
|
21
21
|
>
|
|
22
|
-
<div class="saooti-
|
|
22
|
+
<div class="saooti-right fw-bold" />
|
|
23
23
|
</button>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
@@ -90,7 +90,7 @@ export default defineComponent({
|
|
|
90
90
|
rubriqueId: { default: undefined, type: Number },
|
|
91
91
|
rubriquageId: { default: undefined, type: Number },
|
|
92
92
|
nbPodcasts: { default: undefined, type: Number },
|
|
93
|
-
itemSize: { default:
|
|
93
|
+
itemSize: { default: 13, type: Number },
|
|
94
94
|
},
|
|
95
95
|
|
|
96
96
|
data() {
|
|
@@ -130,6 +130,12 @@ export default defineComponent({
|
|
|
130
130
|
return this.direction > 0 ? 'out-left' : 'out-right';
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
|
+
|
|
134
|
+
watch: {
|
|
135
|
+
sizeItem(){
|
|
136
|
+
this.handleResize();
|
|
137
|
+
}
|
|
138
|
+
},
|
|
133
139
|
|
|
134
140
|
created() {
|
|
135
141
|
window.addEventListener('resize', this.handleResize);
|
|
@@ -206,10 +212,7 @@ export default defineComponent({
|
|
|
206
212
|
return;
|
|
207
213
|
}
|
|
208
214
|
const width = (this.$el as HTMLElement).offsetWidth;
|
|
209
|
-
|
|
210
|
-
if (this.itemSize) {
|
|
211
|
-
sixteen = domHelper.convertRemToPixels(this.itemSize + 0.7);
|
|
212
|
-
}
|
|
215
|
+
const sixteen = domHelper.convertRemToPixels(this.itemSize + 0.7);
|
|
213
216
|
this.size = Math.floor(width / sixteen);
|
|
214
217
|
},
|
|
215
218
|
reset(): void {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
:title="$t('Display previous')"
|
|
32
32
|
@click="displayPrevious()"
|
|
33
33
|
>
|
|
34
|
-
<div class="saooti-
|
|
34
|
+
<div class="saooti-left fw-bold" />
|
|
35
35
|
</button>
|
|
36
36
|
<button
|
|
37
37
|
class="btn admin-button m-1"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
:title="$t('Display next')"
|
|
40
40
|
@click="displayNext()"
|
|
41
41
|
>
|
|
42
|
-
<div class="saooti-
|
|
42
|
+
<div class="saooti-right fw-bold" />
|
|
43
43
|
</button>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
@@ -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'
|
|
@@ -127,6 +127,9 @@ export default defineComponent({
|
|
|
127
127
|
podcasts(): Array<Podcast> {
|
|
128
128
|
return this.allPodcasts.slice(this.index, this.index + this.size);
|
|
129
129
|
},
|
|
130
|
+
sizeItem(): number {
|
|
131
|
+
return state.generalParameters.podcastItem ? (state.generalParameters.podcastItem as number): 13;
|
|
132
|
+
},
|
|
130
133
|
filterOrga(): string {
|
|
131
134
|
return this.$store.state.filter.organisationId;
|
|
132
135
|
},
|
|
@@ -249,7 +252,7 @@ export default defineComponent({
|
|
|
249
252
|
return;
|
|
250
253
|
}
|
|
251
254
|
const width = (this.$el as HTMLElement).offsetWidth;
|
|
252
|
-
const sixteen = domHelper.convertRemToPixels(
|
|
255
|
+
const sixteen = domHelper.convertRemToPixels(this.sizeItem + 0.7);
|
|
253
256
|
this.size = Math.floor(width / sixteen);
|
|
254
257
|
},
|
|
255
258
|
sortPopular(): void {
|
|
@@ -24,13 +24,6 @@
|
|
|
24
24
|
:title="$t('Without rubric')"
|
|
25
25
|
:button-text="$t('All podcast button', { name: $t('Without rubric') })"
|
|
26
26
|
/>
|
|
27
|
-
<PodcastInlineList
|
|
28
|
-
v-if="rubriqueDisplay && rubriqueDisplay.length"
|
|
29
|
-
:no-rubriquage-id="[rubriqueDisplay[0].rubriquageId]"
|
|
30
|
-
:rubrique-id="rubriqueId"
|
|
31
|
-
:title="$t('Without rubric')"
|
|
32
|
-
:button-text="$t('All podcast button', { name: $t('Without rubric') })"
|
|
33
|
-
/>
|
|
34
27
|
</template>
|
|
35
28
|
</div>
|
|
36
29
|
</template>
|
package/src/store/paramStore.ts
CHANGED
|
@@ -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,
|