@saooti/octopus-sdk 32.0.33 → 32.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
@@ -684,3 +684,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
684
684
  * 32.0.31 Merge live IOS
685
685
  * 32.0.32 Error player parameters
686
686
  * 32.0.33 Pétouilles graphiques ou d'UX diverses
687
+ * 32.0.34 Modale RSS
688
+ * 32.0.35 Enlever Dummy param
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "32.0.33",
3
+ "version": "32.0.35",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -162,7 +162,6 @@ export default defineComponent({
162
162
  return {
163
163
  activeEmission: true as boolean,
164
164
  podcasts: [] as Array<Podcast>,
165
- dummyParam: new Date().getTime().toString() as string,
166
165
  };
167
166
  },
168
167
 
@@ -71,12 +71,6 @@ export default defineComponent({
71
71
  props: {
72
72
  playlist: { default: ()=>({}), type: Object as ()=>Playlist},
73
73
  },
74
-
75
- data() {
76
- return {
77
- dummyParam: new Date().getTime().toString() as string,
78
- };
79
- },
80
74
 
81
75
  computed: {
82
76
  isPodcastmaker(): boolean {
@@ -174,17 +174,17 @@ export default defineComponent({
174
174
  if (this.emission){
175
175
  return api +'emission/' + this.emission.emissionId + '.rss';
176
176
  }
177
- if (this.organisationId){
178
- return api +'productor/' + this.organisationId + '.rss';
179
- }
180
177
  if (this.participantId){
181
178
  return api +'participant/' + this.participantId + '.rss';
182
179
  }
180
+ if (this.organisationId){
181
+ return api +'productor/' + this.organisationId + '.rss';
182
+ }
183
183
  return '';
184
184
  },
185
185
  },
186
186
  async created(){
187
- if(this.organisationId){
187
+ if(this.organisationId || this.participantId){
188
188
  this.displayRss = await octopusApi.fetchDataPublic<boolean>(0,`rss/participants/allowed/${this.organisationId}`);
189
189
  }else{
190
190
  this.displayRss = true;
@@ -98,7 +98,6 @@ export default defineComponent({
98
98
  minScroll: 0 as number,
99
99
  organisationId: undefined as string | undefined,
100
100
  reset: false as boolean,
101
- dummyParam: new Date().getTime().toString() as string,
102
101
  };
103
102
  },
104
103
  computed: {
@@ -131,7 +130,7 @@ export default defineComponent({
131
130
  },
132
131
  imgUrl(): string {
133
132
  if (!this.$store.state.filter.imgUrl?.includes('emptypodcast'))
134
- return `${this.$store.state.filter.imgUrl}?dummy=${this.dummyParam}`;
133
+ return `${this.$store.state.filter.imgUrl}`;
135
134
  return '';
136
135
  },
137
136
  },
@@ -28,7 +28,7 @@
28
28
  >
29
29
  </p>
30
30
  <RssSection
31
- v-if="emission"
31
+ v-if="emission && authenticated"
32
32
  :emission="emission"
33
33
  />
34
34
  </div>
@@ -54,6 +54,11 @@ export default defineComponent({
54
54
  emission: { default: undefined, type: Object as ()=> Emission},
55
55
  },
56
56
  emits: ['close', 'copy'],
57
+ computed: {
58
+ authenticated(): boolean {
59
+ return this.$store.state.authentication.isAuthenticated;
60
+ },
61
+ },
57
62
  mounted(){
58
63
  (this.$refs.focusElement as HTMLElement)?.focus();
59
64
  },
@@ -123,7 +123,6 @@ export default defineComponent({
123
123
  ftpEmission: false as boolean,
124
124
  exclusive: false as boolean,
125
125
  notExclusive: false as boolean,
126
- dummyParam: new Date().getTime().toString() as string,
127
126
  fetchLive: true as boolean,
128
127
  };
129
128
  },
@@ -148,7 +147,7 @@ export default defineComponent({
148
147
  return this.emission?.name??'';
149
148
  },
150
149
  imageUrl(): string {
151
- return this.emission? `${this.emission.imageUrl}?dummy=${this.dummyParam}`:'';
150
+ return this.emission? `${this.emission.imageUrl}`:'';
152
151
  },
153
152
  description(): string {
154
153
  return this.emission?.description??'';
@@ -98,8 +98,7 @@ export default defineComponent({
98
98
  return this.playlist?.title ??'';
99
99
  },
100
100
  imageUrl(): string {
101
- const dummy = new Date().getTime().toString();
102
- return this.playlist ? this.playlist.imageUrl + '?dummy=' + dummy : '';
101
+ return this.playlist?.imageUrl ?? '';
103
102
  },
104
103
  description(): string {
105
104
  return this.playlist?.description ??'';