@saooti/octopus-sdk 30.0.89 → 30.0.90
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
|
@@ -585,4 +585,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
585
585
|
* 30.0.86 Podcastmaker newest
|
|
586
586
|
* 30.0.87 Podcastmaker newest (swiper list)
|
|
587
587
|
* 30.0.88 Podcastmaker newest (swiper list)
|
|
588
|
-
* 30.0.89 Podcastmaker newest (swiper list)
|
|
588
|
+
* 30.0.89 Podcastmaker newest (swiper list)
|
|
589
|
+
* 30.0.90 Podcastmaker newest (swiper list)
|
package/package.json
CHANGED
|
@@ -2,7 +2,18 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="d-flex flex-column p-3"
|
|
4
4
|
>
|
|
5
|
-
<
|
|
5
|
+
<div class="d-flex align-items-center mb-2">
|
|
6
|
+
<h2 class="mb-0">
|
|
7
|
+
{{ title }}
|
|
8
|
+
</h2>
|
|
9
|
+
<router-link
|
|
10
|
+
v-if="isButtonNextTitle"
|
|
11
|
+
class="btn admin-button m-1 fw-bold saooti-right"
|
|
12
|
+
:title="buttonText"
|
|
13
|
+
:to="refTo"
|
|
14
|
+
@click="handleSeeMoreButton"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
6
17
|
<div class="d-flex justify-content-between">
|
|
7
18
|
<div class="d-flex">
|
|
8
19
|
<button
|
|
@@ -44,6 +55,7 @@
|
|
|
44
55
|
</div>
|
|
45
56
|
<slot name="list-inline" />
|
|
46
57
|
<router-link
|
|
58
|
+
v-if="!isButtonNextTitle"
|
|
47
59
|
class="btn btn-link align-self-center width-fit-content m-4"
|
|
48
60
|
:to="refTo"
|
|
49
61
|
@click="handleSeeMoreButton"
|
|
@@ -80,6 +92,7 @@ export default defineComponent({
|
|
|
80
92
|
iabId: { default: undefined, type: Number},
|
|
81
93
|
rubriqueId: { default: () => [], type: Array as ()=> Array<number> },
|
|
82
94
|
noRubriquageId: { default: () => [], type: Array as ()=> Array<number> },
|
|
95
|
+
isButtonNextTitle: {default: false, type:Boolean}
|
|
83
96
|
},
|
|
84
97
|
emits:['sortChrono','sortPopular', 'displayPrevious', 'displayNext'],
|
|
85
98
|
data() {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
:iab-id="iabId"
|
|
11
11
|
:rubrique-id="rubriqueId"
|
|
12
12
|
:no-rubriquage-id="noRubriquageId"
|
|
13
|
+
:is-button-next-title="true"
|
|
13
14
|
@sortChrono="sortChrono"
|
|
14
15
|
@sortPopular="sortPopular"
|
|
15
16
|
>
|
|
@@ -18,10 +19,10 @@
|
|
|
18
19
|
:loading-text="loading?$t('Loading podcasts ...'):undefined"
|
|
19
20
|
/>
|
|
20
21
|
<swiper
|
|
21
|
-
v-
|
|
22
|
+
v-if="!loading"
|
|
22
23
|
:slides-per-view="numberItem"
|
|
23
24
|
:space-between="10"
|
|
24
|
-
:loop="
|
|
25
|
+
:loop="allPodcasts.length>=numberItem"
|
|
25
26
|
:navigation="true"
|
|
26
27
|
:modules="modules"
|
|
27
28
|
>
|
|
@@ -83,7 +84,6 @@ export default defineComponent({
|
|
|
83
84
|
data() {
|
|
84
85
|
return {
|
|
85
86
|
loading: true as boolean,
|
|
86
|
-
loaded: true as boolean,
|
|
87
87
|
popularSort: false as boolean,
|
|
88
88
|
allPodcasts: [] as Array<Podcast>,
|
|
89
89
|
modules: [Navigation],
|
|
@@ -151,11 +151,10 @@ export default defineComponent({
|
|
|
151
151
|
sort: this.popularSort ? 'POPULARITY' : 'DATE',
|
|
152
152
|
query: this.query,
|
|
153
153
|
});
|
|
154
|
-
this.loading = false;
|
|
155
|
-
this.loaded = true;
|
|
156
154
|
this.allPodcasts = this.allPodcasts.concat(
|
|
157
155
|
data.result.filter((pod: Podcast|null) => null !== pod)
|
|
158
156
|
);
|
|
157
|
+
this.loading = false;
|
|
159
158
|
},
|
|
160
159
|
sortPopular(): void {
|
|
161
160
|
if (this.popularSort) return;
|
|
@@ -171,7 +170,6 @@ export default defineComponent({
|
|
|
171
170
|
},
|
|
172
171
|
reset(): void {
|
|
173
172
|
this.loading = true;
|
|
174
|
-
this.loaded = true;
|
|
175
173
|
this.allPodcasts.length = 0;
|
|
176
174
|
},
|
|
177
175
|
},
|