@saooti/octopus-sdk 30.0.64 → 30.0.67

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
@@ -560,4 +560,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
560
560
  * 30.0.61 Page podcast -> init recherche
561
561
  * 30.0.62 Italian translation
562
562
  * 30.0.63 Italian translation
563
- * 30.0.64 Modif Le soir
563
+ * 30.0.64 Modif Le soir
564
+ * 30.0.65 OAuthType
565
+ * 30.0.66 ScrollBehavior
566
+ * 30.0.67 Parlement européen
567
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.64",
3
+ "version": "30.0.67",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -122,7 +122,7 @@ export default defineComponent({
122
122
  this.$store.commit('filterRubrique', filter);
123
123
  const queries = this.$route.query;
124
124
  const queryString = filter.map(value => value.rubriquageId+':'+value.rubriqueId).join();
125
- this.$router.push({ query: { ...queries, ...{ rubriquesId: queryString }} });
125
+ this.$router.replace({ query: { ...queries, ...{ rubriquesId: queryString }} });
126
126
  }
127
127
  },
128
128
  getRubriques(rubriquageId: number): Array<Rubrique>{
@@ -138,7 +138,7 @@ export default defineComponent({
138
138
  const queries = this.$route.query;
139
139
  if(this.categoryFilter){
140
140
  if (queries.iabId) {
141
- this.$router.push({ query: {...queries, ...{iabId: undefined} } });
141
+ this.$router.replace({ query: {...queries, ...{iabId: undefined} } });
142
142
  }
143
143
  this.$store.commit('filterIab', undefined);
144
144
  }else{
@@ -147,9 +147,9 @@ export default defineComponent({
147
147
  if (queries.rubriquesId) {
148
148
  const queryString = newFilter.map(value => value.rubriquageId+':'+value.rubriqueId).join();
149
149
  if("" !== queryString){
150
- this.$router.push({ query: { ...queries, ...{ rubriquesId: queryString }} });
150
+ this.$router.replace({ query: { ...queries, ...{ rubriquesId: queryString }} });
151
151
  }else{
152
- this.$router.push({ query: { ...queries, ...{ rubriquesId: undefined }} });
152
+ this.$router.replace({ query: { ...queries, ...{ rubriquesId: undefined }} });
153
153
  }
154
154
  }
155
155
  this.$store.commit('filterRubrique', newFilter);
@@ -139,7 +139,7 @@ export default defineComponent({
139
139
  }
140
140
  const queries = this.$route.query;
141
141
  if(!queries.iabId || ('string'===typeof queries.iabId && parseInt(queries.iabId ,10) !== category.id)) {
142
- this.$router.push({ query: { ...queries, ...{ iabId: category.id.toString() }} });
142
+ this.$router.replace({ query: { ...queries, ...{ iabId: category.id.toString() }} });
143
143
  }
144
144
  this.$store.commit('filterIab',category);
145
145
  },
@@ -132,13 +132,13 @@ export default defineComponent({
132
132
  sortText(): string {
133
133
  switch (this.sort) {
134
134
  case 'SCORE':
135
- return this.$t('sort by score').toString();
135
+ return " "+this.$t('sort by score').toString();
136
136
  case 'LAST_PODCAST_DESC':
137
- return this.$t('sort by date').toString();
137
+ return " "+this.$t('sort by date').toString();
138
138
  case 'NAME':
139
- return this.$t('sort by alphabetical').toString();
139
+ return " "+this.$t('sort by alphabetical').toString();
140
140
  default:
141
- return this.$t('sort by date').toString();
141
+ return " "+this.$t('sort by date').toString();
142
142
  }
143
143
  },
144
144
  filterOrga(): string {
@@ -105,7 +105,7 @@ export default defineComponent({
105
105
  }
106
106
  const queries = this.$route.query;
107
107
  if (queries.iabId) {
108
- this.$router.push({ query: {...queries, ...{iabId: undefined} } });
108
+ this.$router.replace({ query: {...queries, ...{iabId: undefined} } });
109
109
  }
110
110
  this.$store.commit('filterIab', undefined);
111
111
  }
@@ -229,7 +229,7 @@ export default defineComponent({
229
229
  }
230
230
  const queries = this.$route.query;
231
231
  if (queries.rubriquesId) {
232
- this.$router.push({ query: {...queries, ...{rubriquesId: undefined} } });
232
+ this.$router.replace({ query: {...queries, ...{rubriquesId: undefined} } });
233
233
  }
234
234
  this.$store.commit('filterRubrique', []);
235
235
  }
@@ -128,10 +128,7 @@ export default defineComponent({
128
128
  return (state.podcastsPage.podcastBorderBottom as boolean);
129
129
  },
130
130
  date(): string {
131
- if('fr' === this.$i18n.locale){
132
- return moment(this.podcast.pubDate).format('D MMMM YYYY [à] HH[h]mm');
133
- }
134
- return moment(this.podcast.pubDate).format('D MMMM YYYY [at] HH[h]mm');
131
+ return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
135
132
  },
136
133
  displayDate(): string {
137
134
  return moment(this.podcast.pubDate).format('X');
@@ -118,13 +118,13 @@ export default defineComponent({
118
118
  sortText(): string {
119
119
  switch (this.sortCriteria) {
120
120
  case 'SCORE':
121
- return this.$t('sort by score').toString();
121
+ return " "+this.$t('sort by score').toString();
122
122
  case 'DATE':
123
- return this.$t('sort by date').toString();
123
+ return " "+this.$t('sort by date').toString();
124
124
  case 'NAME':
125
- return this.$t('sort by alphabetical').toString();
125
+ return " "+this.$t('sort by alphabetical').toString();
126
126
  default:
127
- return this.$t('sort by date').toString();
127
+ return " "+this.$t('sort by date').toString();
128
128
  }
129
129
  },
130
130
  isProduction(): boolean {
@@ -130,7 +130,7 @@ export default defineComponent({
130
130
  this.$store.commit('filterRubrique', newFilter);
131
131
  const queries = this.$route.query;
132
132
  const queryString = newFilter.map(value => value.rubriquageId+':'+value.rubriqueId).join();
133
- this.$router.push({ query: { ...queries, ...{ rubriquesId: queryString }} });
133
+ this.$router.replace({ query: { ...queries, ...{ rubriquesId: queryString }} });
134
134
  this.selectNewRubriquage();
135
135
  },
136
136
  selectNewRubriquage(){
@@ -258,10 +258,7 @@ export default defineComponent({
258
258
 
259
259
  date(): string {
260
260
  if (1970 !== moment(this.podcast.pubDate).year()){
261
- if('fr' === this.$i18n.locale){
262
- return moment(this.podcast.pubDate).format('D MMMM YYYY [à] HH[h]mm');
263
- }
264
- return moment(this.podcast.pubDate).format('D MMMM YYYY [at] HH[h]mm');
261
+ return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
265
262
  }
266
263
  return '';
267
264
  },
package/src/locale/en.ts CHANGED
@@ -154,10 +154,10 @@ export default{
154
154
  'Podcast in error': 'Podcast in error',
155
155
  'See podcasts no visible':
156
156
  'See podcasts not visible to the audience',
157
- 'Number podcasts': '{nb} of podcasts',
158
- 'Number emissions': '{nb} of series',
159
- 'Number participants': '{nb} of speakers',
160
- 'Number productors': '{nb} of Producers',
157
+ 'Number podcasts': '{nb} podcasts',
158
+ 'Number emissions': '{nb} series',
159
+ 'Number participants': '{nb} speakers',
160
+ 'Number productors': '{nb} Producers',
161
161
  'Display next': 'Display the following episodes',
162
162
  'Display previous': 'Display previous episodes',
163
163
  Play: 'Play',
@@ -240,9 +240,9 @@ export default{
240
240
  'All live emission button': "All lives in the serie",
241
241
  'player parameters': 'Setting of player',
242
242
  'Start at': 'Start at',
243
- 'sort by score': ' by relevancy score',
244
- 'sort by alphabetical': ' sorted alphabetically',
245
- 'sort by date': ' sorted by date',
243
+ 'sort by score': 'by relevancy score',
244
+ 'sort by alphabetical': 'sorted alphabetically',
245
+ 'sort by date': 'sorted by date',
246
246
  'Be the first to react': 'Be the first to react',
247
247
  "Podcast's comments": "Podcast's comments",
248
248
  '()': '({nb})',
package/src/locale/fr.ts CHANGED
@@ -240,9 +240,9 @@ export default{
240
240
  'All live emission button': "Tous les lives de l'émission",
241
241
  'player parameters': 'Paramètres du player',
242
242
  'Start at': 'Démarrer à',
243
- 'sort by score': ' triés par pertinence',
244
- 'sort by alphabetical': ' triés par ordre alphabétique',
245
- 'sort by date': ' triés par ordre antéchronologique',
243
+ 'sort by score': 'triés par pertinence',
244
+ 'sort by alphabetical': 'triés par ordre alphabétique',
245
+ 'sort by date': 'triés par ordre antéchronologique',
246
246
  'Be the first to react': 'Soyez le premier à réagir à ce podcast',
247
247
  "Podcast's comments": "Commentaires de l'épisode",
248
248
  '()': '({nb})',
package/src/locale/it.ts CHANGED
@@ -151,10 +151,10 @@ export default{
151
151
  'Podcast in error': 'Podcast in errore',
152
152
  'See podcasts no visible':
153
153
  'Vedi podcast non visibili al pubblico',
154
- 'Number podcasts': '{nb} di podcast',
155
- 'Number emissions': '{nb} di serie',
156
- 'Number participants': '{nb} di speaker',
157
- 'Number productors': '{nb} di producer',
154
+ 'Number podcasts': '{nb} podcast',
155
+ 'Number emissions': '{nb} serie',
156
+ 'Number participants': '{nb} speaker',
157
+ 'Number productors': '{nb} producer',
158
158
  'Display next': 'Mostra episodi seguenti',
159
159
  'Display previous': 'Mostra episodi precedenti',
160
160
  Play: 'Play',
@@ -185,9 +185,7 @@ export interface OctopusApi{
185
185
  oAuthParam?: {
186
186
  accessToken: string,
187
187
  refreshToken: string,
188
- accessTokenUri: string,
189
188
  expiration: string,
190
- clientId: string,
191
189
  },
192
190
  rubriqueIdFilter?: Array<number>,
193
191
  }
@@ -138,8 +138,6 @@ export function emptyPodcastData(): Podcast{
138
138
  oAuthParam: {
139
139
  accessToken: string | undefined;
140
140
  refreshToken: string | undefined;
141
- accessTokenUri: string | undefined;
142
- clientId: string | undefined;
143
141
  expiration: number | undefined;
144
142
  };
145
143
  media: Media;
@@ -250,8 +248,6 @@ export function emptyPodcastData(): Podcast{
250
248
  oAuthParam: {
251
249
  accessToken: undefined ,
252
250
  refreshToken: undefined ,
253
- accessTokenUri: undefined ,
254
- clientId: undefined ,
255
251
  expiration:undefined
256
252
  },
257
253
  media: {