@saooti/octopus-sdk 30.0.31 → 30.0.35
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
|
@@ -528,4 +528,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
528
528
|
* 30.0.28 Limiter caractères des commentaires
|
|
529
529
|
* 30.0.29 Pour podcastmaker sudPresse
|
|
530
530
|
* 30.0.30 Problème fetch participants
|
|
531
|
-
* 30.0.31 Amélioration interface
|
|
531
|
+
* 30.0.31 Amélioration interface
|
|
532
|
+
* 30.0.32 Amélioration interface
|
|
533
|
+
* 30.0.33 Pb categories list
|
|
534
|
+
* 30.0.34 Bouton css
|
|
535
|
+
* 30.0.35 Commentaires
|
package/package.json
CHANGED
|
@@ -120,26 +120,28 @@
|
|
|
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 !important;
|
|
125
|
+
font-size: 1.1rem;
|
|
126
126
|
display: inline-flex;
|
|
127
127
|
align-items: center;
|
|
128
128
|
justify-content: center;
|
|
129
129
|
color : $octopus-primary-dark;
|
|
130
|
+
flex-shrink: 0;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
.share-btn {
|
|
135
136
|
font-size: 1.3rem;
|
|
136
|
-
width: 2.5rem;
|
|
137
|
+
width: 2.5rem !important;
|
|
137
138
|
height: 2.5rem !important;
|
|
138
139
|
padding: 0.5rem;
|
|
139
140
|
display: inline-flex;
|
|
140
141
|
align-items: center;
|
|
141
142
|
justify-content: center;
|
|
142
143
|
color : $octopus-primary-dark;
|
|
144
|
+
flex-shrink: 0;
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
.btn-rss {
|
|
@@ -52,6 +52,7 @@ export default defineComponent({
|
|
|
52
52
|
|
|
53
53
|
props: {
|
|
54
54
|
isFilter: { default: false, type: Boolean },
|
|
55
|
+
isDisplay: { default: false, type: Boolean },
|
|
55
56
|
},
|
|
56
57
|
emits:['categoriesLength'],
|
|
57
58
|
|
|
@@ -88,6 +89,11 @@ export default defineComponent({
|
|
|
88
89
|
},
|
|
89
90
|
},
|
|
90
91
|
watch: {
|
|
92
|
+
isDisplay():void{
|
|
93
|
+
this.$nextTick(() => {
|
|
94
|
+
this.resizeWindow();
|
|
95
|
+
});
|
|
96
|
+
},
|
|
91
97
|
categories: {
|
|
92
98
|
deep: true,
|
|
93
99
|
handler(){
|
|
@@ -162,25 +162,25 @@ export default defineComponent({
|
|
|
162
162
|
);
|
|
163
163
|
},
|
|
164
164
|
commentIsNotInList(commentIdReferer:undefined|number):boolean{
|
|
165
|
-
return !this.isFlat && undefined!==commentIdReferer && this.comId !==commentIdReferer;
|
|
165
|
+
return !this.isFlat && undefined!==commentIdReferer && null!==commentIdReferer && this.comId !==commentIdReferer;
|
|
166
166
|
},
|
|
167
167
|
deleteComment(comment: CommentPodcast): void {
|
|
168
168
|
if (this.commentIsNotInList(comment.commentIdReferer)){
|
|
169
|
-
const comItem = (this.$refs['comItem' + comment.commentIdReferer] as InstanceType<typeof CommentItem
|
|
169
|
+
const comItem = (this.$refs['comItem' + comment.commentIdReferer] as Array<InstanceType<typeof CommentItem>>)[0];
|
|
170
170
|
comItem.receiveCommentEvent({ type: 'Delete', comment: comment });
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
const index = this.findCommentIndex(comment.comId);
|
|
174
174
|
if (-1 === index) return;
|
|
175
175
|
this.totalCount -= 1;
|
|
176
|
-
|
|
176
|
+
if (0 !== this.first) {
|
|
177
177
|
this.first -= 1;
|
|
178
|
-
}
|
|
178
|
+
}
|
|
179
179
|
this.comments.splice(index, 1);
|
|
180
180
|
},
|
|
181
181
|
updateComment(data: {type?: string; comment: CommentPodcast; status?: string; oldStatus?:string }): void {
|
|
182
182
|
if (this.commentIsNotInList(data.comment.commentIdReferer)){
|
|
183
|
-
const comItem = (this.$refs['comItem' + data.comment.commentIdReferer] as InstanceType<typeof CommentItem
|
|
183
|
+
const comItem = (this.$refs['comItem' + data.comment.commentIdReferer] as Array<InstanceType<typeof CommentItem>>)[0];
|
|
184
184
|
comItem.receiveCommentEvent({ ...data, type: 'Update' });
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
@@ -228,14 +228,14 @@ export default defineComponent({
|
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
230
|
if (this.commentIsNotInList(comment.commentIdReferer)){
|
|
231
|
-
const comItem = (this.$refs['comItem' + comment.commentIdReferer] as InstanceType<typeof CommentItem
|
|
231
|
+
const comItem = (this.$refs['comItem' + comment.commentIdReferer] as Array<InstanceType<typeof CommentItem>>)[0];
|
|
232
232
|
comItem.receiveCommentEvent({ type: 'Create', comment: comment });
|
|
233
233
|
return;
|
|
234
234
|
}
|
|
235
235
|
const index = this.findCommentIndex(comment.comId);
|
|
236
236
|
if (-1 === index) {
|
|
237
237
|
this.totalCount += 1;
|
|
238
|
-
|
|
238
|
+
this.first += 1;
|
|
239
239
|
if (!this.status || this.status === comment.status) {
|
|
240
240
|
this.comments.unshift(comment);
|
|
241
241
|
}
|