@saooti/octopus-sdk 37.0.23 → 37.0.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "37.0.23",
3
+ "version": "37.0.24",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -2,14 +2,7 @@
2
2
  <ClassicRadio
3
3
  v-model:textInit="sort"
4
4
  id-radio="sort-radio"
5
- :options="[
6
- { title: $t('Sort score'), value: 'SCORE' },
7
- {
8
- title: $t('Sort last'),
9
- value: isEmission ? 'LAST_PODCAST_DESC' : 'DATE',
10
- },
11
- { title: $t('Sort name'), value: 'NAME' },
12
- ]"
5
+ :options="optionsArray"
13
6
  />
14
7
  </template>
15
8
 
@@ -31,6 +24,22 @@ export default defineComponent({
31
24
  sort: this.sortCriteria,
32
25
  };
33
26
  },
27
+ computed:{
28
+ optionsArray(){
29
+ let options = [
30
+ { title: this.$t('Sort score'), value: 'SCORE' },
31
+ {
32
+ title: this.$t('Sort last'),
33
+ value: this.isEmission ? 'LAST_PODCAST_DESC' : 'DATE',
34
+ },
35
+ { title: this.$t('Sort name'), value: 'NAME' },
36
+ ];
37
+ if(!this.isEmission){
38
+ options.splice(2,0, { title: this.$t('Chronological'), value: 'DATE_ASC' });
39
+ }
40
+ return options;
41
+ }
42
+ },
34
43
  watch: {
35
44
  sort(): void {
36
45
  this.$emit("updateSortCriteria", this.sort);
@@ -188,10 +188,13 @@ export default defineComponent({
188
188
  return state.generalParameters.podcastmaker as boolean;
189
189
  },
190
190
  date(): string {
191
- if (this.podcast && 1970 !== dayjs(this.podcast.pubDate).year()) {
192
- return dayjs(this.podcast.pubDate).format("D MMMM YYYY");
191
+ if (!this.podcast || 1970 === dayjs(this.podcast.pubDate).year()) {
192
+ return "";
193
193
  }
194
- return "";
194
+ if(this.isLiveReadyToRecord){
195
+ return dayjs(this.podcast.pubDate).format("D MMMM YYYY - HH:mm");
196
+ }
197
+ return dayjs(this.podcast.pubDate).format("D MMMM YYYY");
195
198
  },
196
199
  duration(): string {
197
200
  if (!this.podcast || this.podcast.duration <= 1) return "";
@@ -261,7 +264,9 @@ export default defineComponent({
261
264
  },
262
265
  methods: {
263
266
  removeDeleted(): void {
264
- if (window.history.length > 1) {
267
+ if(this.isLiveReadyToRecord){
268
+ this.$router.push("/main/pub/lives");
269
+ }else if (window.history.length > 1) {
265
270
  this.$router.go(-1);
266
271
  } else {
267
272
  this.$router.push("/");
package/src/locale/de.ts CHANGED
@@ -346,4 +346,5 @@ export default {
346
346
  "Show only episodes with video":"Nur Episoden mit Video anzeigen",
347
347
  "Video":"Video",
348
348
  "Video Version":"Videoversion",
349
+ "Chronological":"Chronologisch",
349
350
  }
package/src/locale/en.ts CHANGED
@@ -346,4 +346,5 @@ export default {
346
346
  "Show only episodes with video":"Show only episodes with video",
347
347
  "Video":"Video",
348
348
  "Video Version":"Video version",
349
+ "Chronological":"Chronological",
349
350
  };
package/src/locale/es.ts CHANGED
@@ -347,4 +347,5 @@ export default {
347
347
  "Show only episodes with video":"Mostrar solo episodios con video",
348
348
  "Video":"Video",
349
349
  "Video Version":"Versión de vídeo",
350
+ "Chronological":"Cronológico",
350
351
  }
package/src/locale/fr.ts CHANGED
@@ -350,9 +350,8 @@ export default {
350
350
  "Display HTML":"Afficher HTML",
351
351
  "Video is unavailable":"La vidéo est indisponible",
352
352
  'Full Large version': 'Version en longueur complète',
353
-
354
-
355
353
  "Show only episodes with video":"Afficher uniquement les épisodes avec une vidéo",
356
354
  "Video":"Vidéo",
357
355
  "Video Version":"Version vidéo",
356
+ "Chronological":"Chronologique",
358
357
  };
package/src/locale/it.ts CHANGED
@@ -339,4 +339,5 @@ export default{
339
339
  "Show only episodes with video":"Mostra solo episodi con video",
340
340
  "Video":"Video",
341
341
  "Video Version":"Versione video",
342
+ "Chronological":"Cronologico",
342
343
  };
package/src/locale/sl.ts CHANGED
@@ -336,4 +336,5 @@ export default {
336
336
  "Show only episodes with video":"Prikaži samo epizode z videom",
337
337
  "Video":"Video",
338
338
  "Video Version":"Video različica",
339
+ "Chronological":"Kronološko",
339
340
  }