@saooti/octopus-sdk 30.0.29 → 30.0.33
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 +5 -1
- package/package.json +1 -1
- package/src/assets/bootstrap-diff.scss +3 -3
- package/src/assets/general.scss +7 -1
- package/src/components/display/categories/CategoryFilter.vue +30 -4
- package/src/components/display/categories/CategoryList.vue +23 -9
- package/src/components/display/emission/EmissionList.vue +0 -1
- package/src/components/display/live/LiveHorizontalList.vue +0 -1
- package/src/components/display/participant/ParticipantItem.vue +1 -1
- package/src/components/display/participant/ParticipantList.vue +3 -0
- package/src/components/display/podcasts/PodcastList.vue +0 -1
- package/src/components/pages/Participant.vue +2 -2
- package/src/components/pages/Podcast.vue +1 -0
package/README.md
CHANGED
|
@@ -526,4 +526,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
526
526
|
* 30.0.26 Css + Accessibilité
|
|
527
527
|
* 30.0.27 Top bar responsive
|
|
528
528
|
* 30.0.28 Limiter caractères des commentaires
|
|
529
|
-
* 30.0.29 Pour podcastmaker sudPresse
|
|
529
|
+
* 30.0.29 Pour podcastmaker sudPresse
|
|
530
|
+
* 30.0.30 Problème fetch participants
|
|
531
|
+
* 30.0.31 Amélioration interface
|
|
532
|
+
* 30.0.32 Amélioration interface
|
|
533
|
+
* 30.0.33 Pb categories list
|
package/package.json
CHANGED
|
@@ -120,9 +120,9 @@
|
|
|
120
120
|
|
|
121
121
|
&.admin-button{
|
|
122
122
|
padding: 0.3rem;
|
|
123
|
-
height:
|
|
124
|
-
width:
|
|
125
|
-
font-size: 1rem;
|
|
123
|
+
height: 2.2rem !important;
|
|
124
|
+
width: 2.2rem;
|
|
125
|
+
font-size: 1.1rem;
|
|
126
126
|
display: inline-flex;
|
|
127
127
|
align-items: center;
|
|
128
128
|
justify-content: center;
|
package/src/assets/general.scss
CHANGED
|
@@ -13,9 +13,11 @@ body{
|
|
|
13
13
|
overscroll-behavior-y: contain;
|
|
14
14
|
}
|
|
15
15
|
.octopus-app{
|
|
16
|
+
h1{
|
|
17
|
+
margin-bottom: 2rem;
|
|
18
|
+
}
|
|
16
19
|
h1,h2,h3,h4,h5,h6{
|
|
17
20
|
font-weight: 600;
|
|
18
|
-
margin-bottom: 0.25rem;
|
|
19
21
|
margin-top: 0;
|
|
20
22
|
@media (max-width: 500px){
|
|
21
23
|
margin: 0.2rem;
|
|
@@ -35,6 +37,10 @@ body{
|
|
|
35
37
|
font-size: 1rem;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
40
|
+
hr{
|
|
41
|
+
height: 0.01rem;
|
|
42
|
+
color: #999;
|
|
43
|
+
}
|
|
38
44
|
|
|
39
45
|
.small-text{
|
|
40
46
|
font-size: 0.6rem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
v-
|
|
3
|
+
v-show="isDisplay"
|
|
4
4
|
class="mt-3"
|
|
5
5
|
>
|
|
6
6
|
<nav
|
|
@@ -54,12 +54,18 @@
|
|
|
54
54
|
<CategoryList
|
|
55
55
|
v-if="!categoryFilter && !rubriquageFilter.length"
|
|
56
56
|
:is-filter="true"
|
|
57
|
+
:is-display="isDisplay"
|
|
58
|
+
@categoriesLength="checkIfCategories"
|
|
57
59
|
/>
|
|
58
60
|
<RubriqueList
|
|
59
61
|
v-else-if="rubriquageFilter.length !== rubriqueFilter.length"
|
|
60
62
|
:rubriquages="rubriquageFilter"
|
|
61
63
|
/>
|
|
62
64
|
</div>
|
|
65
|
+
<div
|
|
66
|
+
v-if="!isDisplay"
|
|
67
|
+
class="categary-filter-no-filter"
|
|
68
|
+
/>
|
|
63
69
|
</template>
|
|
64
70
|
|
|
65
71
|
<script lang="ts">
|
|
@@ -79,6 +85,11 @@ export default defineComponent({
|
|
|
79
85
|
RubriqueList,
|
|
80
86
|
RubriqueChooser
|
|
81
87
|
},
|
|
88
|
+
data() {
|
|
89
|
+
return {
|
|
90
|
+
isCategories: false as boolean,
|
|
91
|
+
};
|
|
92
|
+
},
|
|
82
93
|
computed: {
|
|
83
94
|
categoryFilter(): Category|undefined{
|
|
84
95
|
return this.$store.state.filter.iab;
|
|
@@ -87,16 +98,20 @@ export default defineComponent({
|
|
|
87
98
|
return this.$store.state.filter.rubriqueFilter;
|
|
88
99
|
},
|
|
89
100
|
isDisplay(): boolean {
|
|
90
|
-
return "homePriv" === this.$route.name ||"home" === this.$route.name ||"podcasts" === this.$route.name||"emissions" === this.$route.name
|
|
101
|
+
return ("homePriv" === this.$route.name ||"home" === this.$route.name ||"podcasts" === this.$route.name||"emissions" === this.$route.name)
|
|
102
|
+
&& (this.isCategories || undefined!==this.categoryFilter || 0!==this.rubriqueFilter.length || 0!==this.rubriquageFilter.length);
|
|
91
103
|
},
|
|
92
104
|
rubriquageFilter(): Array<Rubriquage>{
|
|
93
105
|
if(this.$store.state.filter.organisationId){
|
|
94
106
|
return this.$store.state.filter.rubriquageArray;
|
|
95
107
|
}
|
|
96
108
|
return [];
|
|
97
|
-
}
|
|
109
|
+
},
|
|
98
110
|
},
|
|
99
111
|
methods:{
|
|
112
|
+
checkIfCategories(length: number): void{
|
|
113
|
+
this.isCategories = 0!==length;
|
|
114
|
+
},
|
|
100
115
|
onRubriqueSelected(index: number, rubrique: Rubrique): void {
|
|
101
116
|
if(!rubrique ||this.rubriqueFilter[index].rubriqueId === rubrique.rubriqueId){
|
|
102
117
|
return;
|
|
@@ -145,4 +160,15 @@ export default defineComponent({
|
|
|
145
160
|
}
|
|
146
161
|
}
|
|
147
162
|
})
|
|
148
|
-
</script>
|
|
163
|
+
</script>
|
|
164
|
+
<style lang="scss">
|
|
165
|
+
.categary-filter-no-filter{
|
|
166
|
+
position: absolute;
|
|
167
|
+
top: 0;
|
|
168
|
+
bottom: 0;
|
|
169
|
+
right: 0;
|
|
170
|
+
left: 0;
|
|
171
|
+
background: white;
|
|
172
|
+
z-index: -1;
|
|
173
|
+
}
|
|
174
|
+
</style>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
v-if="categories.length"
|
|
4
|
+
class="d-inline-flex w-100 mb-3 ps-3 pe-3 hide-phone category-list"
|
|
5
|
+
>
|
|
3
6
|
<div
|
|
4
7
|
id="category-list-container"
|
|
5
8
|
class="category-list-container"
|
|
@@ -49,7 +52,9 @@ export default defineComponent({
|
|
|
49
52
|
|
|
50
53
|
props: {
|
|
51
54
|
isFilter: { default: false, type: Boolean },
|
|
55
|
+
isDisplay: { default: false, type: Boolean },
|
|
52
56
|
},
|
|
57
|
+
emits:['categoriesLength'],
|
|
53
58
|
|
|
54
59
|
data() {
|
|
55
60
|
return {
|
|
@@ -65,27 +70,36 @@ export default defineComponent({
|
|
|
65
70
|
return this.$store.state.categories;
|
|
66
71
|
},
|
|
67
72
|
categories(): Array<Category> {
|
|
73
|
+
let arrayCategories: Array<Category> = [];
|
|
68
74
|
if (this.filterOrga) {
|
|
69
|
-
|
|
75
|
+
arrayCategories = this.$store.state.categoriesOrga.filter((c: Category) => {
|
|
70
76
|
return c.podcastOrganisationCount;
|
|
71
77
|
});
|
|
78
|
+
}else{
|
|
79
|
+
arrayCategories = this.$store.state.categories.filter((c: Category) => {
|
|
80
|
+
if (this.isPodcastmaker) return c.podcastOrganisationCount;
|
|
81
|
+
return c.podcastCount;
|
|
82
|
+
});
|
|
72
83
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return c.podcastCount;
|
|
76
|
-
});
|
|
84
|
+
this.$emit('categoriesLength', arrayCategories.length);
|
|
85
|
+
return arrayCategories;
|
|
77
86
|
},
|
|
78
87
|
filterOrga(): string {
|
|
79
88
|
return this.$store.state.filter.organisationId;
|
|
80
89
|
},
|
|
81
90
|
},
|
|
82
91
|
watch: {
|
|
83
|
-
|
|
84
|
-
deep: true,
|
|
85
|
-
handler(){
|
|
92
|
+
isDisplay():void{
|
|
86
93
|
this.$nextTick(() => {
|
|
87
94
|
this.resizeWindow();
|
|
88
95
|
});
|
|
96
|
+
},
|
|
97
|
+
categories: {
|
|
98
|
+
deep: true,
|
|
99
|
+
handler(){
|
|
100
|
+
this.$nextTick(() => {
|
|
101
|
+
this.resizeWindow();
|
|
102
|
+
});
|
|
89
103
|
}
|
|
90
104
|
},
|
|
91
105
|
filterOrga(): void {
|
|
@@ -96,6 +96,9 @@ export default defineComponent({
|
|
|
96
96
|
methods: {
|
|
97
97
|
async fetchContent(reset: boolean): Promise<void> {
|
|
98
98
|
this.loading = true;
|
|
99
|
+
if (reset) {
|
|
100
|
+
this.dfirst = 0;
|
|
101
|
+
}
|
|
99
102
|
const data = await octopusApi.fetchParticipants({
|
|
100
103
|
first: this.dfirst,
|
|
101
104
|
size: this.dsize,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
</h1>
|
|
14
14
|
<div
|
|
15
|
-
class="d-flex flex-column align-items-center"
|
|
15
|
+
class="d-flex flex-column align-items-center mb-3"
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
18
18
|
class="img-box-circle mb-3"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<div class="saooti-rss-bounty" />
|
|
44
44
|
</a>
|
|
45
45
|
</div>
|
|
46
|
-
<div class="d-flex">
|
|
46
|
+
<div class="d-flex mt-3">
|
|
47
47
|
<EditBox
|
|
48
48
|
v-if="editRight && isEditBox"
|
|
49
49
|
:participant="participant"
|