@saooti/octopus-sdk 30.0.34 → 30.0.38

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
@@ -531,4 +531,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
531
531
  * 30.0.31 Amélioration interface
532
532
  * 30.0.32 Amélioration interface
533
533
  * 30.0.33 Pb categories list
534
- * 30.0.34 Bouton css
534
+ * 30.0.34 Bouton css
535
+ * 30.0.35 Commentaires
536
+ * 30.0.36 LiveList
537
+ * 30.0.37 Commentaires
538
+ * 30.0.38 EmissionList expose
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
- /*import EmissionList from "./src/components/display/emission/EmissionList.vue";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.34",
3
+ "version": "30.0.38",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -122,6 +122,7 @@ export default defineComponent({
122
122
  methods: {
123
123
  async fetchContent(reset=true): Promise<void> {
124
124
  this.loading = true;
125
+ this.error = false;
125
126
  if(reset){
126
127
  this.first = 0;
127
128
  }
@@ -134,7 +135,7 @@ export default defineComponent({
134
135
  first: this.first,
135
136
  size: this.size,
136
137
  podcastId: this.podcastId,
137
- status:this.editRight && this.status?[this.status]:['Valid'],
138
+ status:this.editRight && this.status?[this.status]: this.editRight? ['Valid','Pending', 'Invalid']:['Valid'],
138
139
  organisationId: undefined === this.podcastId? this.organisation: undefined,
139
140
  };
140
141
  if (!this.isFlat) {
@@ -162,25 +163,25 @@ export default defineComponent({
162
163
  );
163
164
  },
164
165
  commentIsNotInList(commentIdReferer:undefined|number):boolean{
165
- return !this.isFlat && undefined!==commentIdReferer && this.comId !==commentIdReferer;
166
+ return !this.isFlat && undefined!==commentIdReferer && null!==commentIdReferer && this.comId !==commentIdReferer;
166
167
  },
167
168
  deleteComment(comment: CommentPodcast): void {
168
169
  if (this.commentIsNotInList(comment.commentIdReferer)){
169
- const comItem = (this.$refs['comItem' + comment.commentIdReferer] as InstanceType<typeof CommentItem>);
170
+ const comItem = (this.$refs['comItem' + comment.commentIdReferer] as Array<InstanceType<typeof CommentItem>>)[0];
170
171
  comItem.receiveCommentEvent({ type: 'Delete', comment: comment });
171
172
  return;
172
173
  }
173
174
  const index = this.findCommentIndex(comment.comId);
174
175
  if (-1 === index) return;
175
176
  this.totalCount -= 1;
176
- /* if (0 !== this.first) {
177
+ if (0 !== this.first) {
177
178
  this.first -= 1;
178
- } */
179
+ }
179
180
  this.comments.splice(index, 1);
180
181
  },
181
182
  updateComment(data: {type?: string; comment: CommentPodcast; status?: string; oldStatus?:string }): void {
182
183
  if (this.commentIsNotInList(data.comment.commentIdReferer)){
183
- const comItem = (this.$refs['comItem' + data.comment.commentIdReferer] as InstanceType<typeof CommentItem>);
184
+ const comItem = (this.$refs['comItem' + data.comment.commentIdReferer] as Array<InstanceType<typeof CommentItem>>)[0];
184
185
  comItem.receiveCommentEvent({ ...data, type: 'Update' });
185
186
  return;
186
187
  }
@@ -209,9 +210,9 @@ export default defineComponent({
209
210
  if (-1 !== indexNewComment) {
210
211
  if (!this.status || this.status === data.status) {
211
212
  this.comments.splice(indexNewComment, 0, data.comment);
212
- } else {
213
+ } /* else {
213
214
  this.comments.splice(indexNewComment, 1);
214
- }
215
+ } */
215
216
  } else if (!this.status || this.status === data.status) {
216
217
  this.comments.push(data.comment);
217
218
  }
@@ -228,14 +229,14 @@ export default defineComponent({
228
229
  return;
229
230
  }
230
231
  if (this.commentIsNotInList(comment.commentIdReferer)){
231
- const comItem = (this.$refs['comItem' + comment.commentIdReferer] as InstanceType<typeof CommentItem>);
232
+ const comItem = (this.$refs['comItem' + comment.commentIdReferer] as Array<InstanceType<typeof CommentItem>>)[0];
232
233
  comItem.receiveCommentEvent({ type: 'Create', comment: comment });
233
234
  return;
234
235
  }
235
236
  const index = this.findCommentIndex(comment.comId);
236
237
  if (-1 === index) {
237
238
  this.totalCount += 1;
238
- /* this.first += 1; */
239
+ this.first += 1;
239
240
  if (!this.status || this.status === comment.status) {
240
241
  this.comments.unshift(comment);
241
242
  }
@@ -179,7 +179,7 @@ export default defineComponent({
179
179
  });
180
180
  }else if("PENDING"===this.livesArray[i].status){
181
181
  dataLivesToBe = dataLives;
182
- for (let index = 0, len = this.livesArray[i].lives.length; index < len; index++) {
182
+ for (let index = 0, len = dataLives.length; index < len; index++) {
183
183
  if (moment(dataLives[index].date).isBefore(moment())) {
184
184
  this.livesArray[i].lives.push(dataLives[index]);
185
185
  indexPast = index + 1;
@@ -26,7 +26,6 @@ $octopus-secondary-color : #ddd;
26
26
  $octopus-primary-linear-background: #7fd8ab;
27
27
  $octopus-third-color: #fdff7b;
28
28
  $octopus-primary-dark : #32815C;
29
- $primaryColorReallyTransparent : #05050593;
30
29
 
31
30
  $primaryColorTransparent : #40a37193;
32
31
  $primaryColorMoreTransparent : #40a37154;