@saooti/octopus-sdk 38.1.12 → 38.1.14

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": "38.1.12",
3
+ "version": "38.1.14",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -133,6 +133,7 @@
133
133
  <TagList
134
134
  v-if="undefined !== podcast.tags && 0 !== podcast.tags.length"
135
135
  :tag-list="podcast.tags"
136
+ :podcast-annotations="podcast.annotations"
136
137
  />
137
138
  </div>
138
139
  </template>
@@ -6,7 +6,7 @@
6
6
  <div>
7
7
  {{ $t("Podcast tags") + ": " }}
8
8
  </div>
9
- <div v-for="(tag, index) in tagList" :key="tag" class="tag-list-element">
9
+ <div v-for="(tag, index) in tagList" :key="tag" class="tag-list-element" :class="ouestFranceMainTag === tag ? 'main-of-tag':''">
10
10
  <div
11
11
  :id="'tag-list-from-podcast-page' + index"
12
12
  role="button"
@@ -38,9 +38,7 @@ import { defineAsyncComponent, defineComponent } from "vue";
38
38
  const ClassicPopover = defineAsyncComponent(
39
39
  () => import("../../misc/ClassicPopover.vue"),
40
40
  );
41
- const tagOfMixins = defineAsyncComponent(
42
- () => import("../../mixins/tagOfMixins"),
43
- );
41
+ import tagOfMixins from "../../mixins/tagOfMixins";
44
42
  export default defineComponent({
45
43
  name: "TagList",
46
44
  components: {
@@ -49,7 +47,20 @@ export default defineComponent({
49
47
  mixins: [tagOfMixins],
50
48
  props: {
51
49
  tagList: { default: () => [], type: Array as () => Array<string> },
50
+ podcastAnnotations: { default: () => {}, type: Object as () => { [key: string]: string | number | boolean | undefined } },
52
51
  },
52
+ computed:{
53
+ ouestFranceMainTag():string|undefined{
54
+ if(this.podcastAnnotations?.["mainOfTag"]){
55
+ for (var key in this.podcastAnnotations) {
56
+ if(this.podcastAnnotations[key] === this.podcastAnnotations["mainOfTag"] && key!=="mainOfTag"){
57
+ return '[of]'+key;
58
+ }
59
+ }
60
+ }
61
+ return undefined;
62
+ }
63
+ }
53
64
  });
54
65
  </script>
55
66
 
@@ -70,6 +81,10 @@ export default defineComponent({
70
81
  border: 1px solid #999;
71
82
  border-radius: $octopus-borderradius;
72
83
  }
84
+ .main-of-tag{
85
+ box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
86
+ font-size: 0.9rem;
87
+ }
73
88
  }
74
89
  }
75
90
  </style>
@@ -10,9 +10,10 @@ export default {
10
10
  return value.toString();
11
11
  },
12
12
  formatDuration(totalSeconds: number, separator="'", isLast=true): string {
13
+ const secondSeparator = "'"===separator ? "''": separator;
13
14
  const hours = Math.floor(totalSeconds / 3600);
14
15
  const minutes = Math.floor((totalSeconds - hours * 3600) / 60);
15
16
  const seconds = totalSeconds - hours * 3600 - minutes * 60;
16
- return (hours > 0? this.formatToString(hours)+separator:"") + this.formatToString(minutes) +separator+ this.formatToString(seconds) + (isLast?separator:'' );
17
+ return (hours > 0? this.formatToString(hours)+separator:"") + this.formatToString(minutes) +separator+ this.formatToString(seconds) + (isLast?secondSeparator:'' );
17
18
  },
18
19
  };
@@ -13,7 +13,7 @@ const state: ParamStore = {
13
13
  isProduction: true,
14
14
  isContribution: true,
15
15
  isRadio: true,
16
- ApiUri: "https://api.dev2.saooti.org/",
16
+ ApiUri: "https://api.preprod.saooti.org/",
17
17
  podcastmaker: false,
18
18
  buttonPlus: true,
19
19
  allCategories: [],
@@ -27,8 +27,8 @@ const state: ParamStore = {
27
27
  SharePlayer: true,
28
28
  ShareButtons: true,
29
29
  ShareDistribution: true,
30
- MiniplayerUri: "https://playerbeta.dev2.saooti.org/",
31
- hlsUri: "https://hls.live.dev2.saooti.org/",
30
+ MiniplayerUri: "https://playerbeta.preprod.saooti.org/",
31
+ hlsUri: "https://hls.live.preprod.saooti.org/",
32
32
  mainRubrique: 0,
33
33
  resourceUrl: undefined,
34
34
  podcastItemShowEmission: false,
@@ -80,14 +80,14 @@ const state: ParamStore = {
80
80
  userName: "",
81
81
  },
82
82
  octopusApi: {
83
- url: "https://api.dev2.saooti.org/",
84
- commentsUrl: "https://comments.dev2.saooti.org/",
85
- imageUrl: "https://imageproxy.dev2.saooti.org/",
86
- studioUrl: "https://studio.dev2.saooti.org/",
87
- playerUrl: "https://playerbeta.dev2.saooti.org/",
88
- speechToTextUrl: "https://speech2text.dev2.saooti.org/",
89
- radioUrl:"https://radio.dev2.saooti.org/",
90
- recoUrl: "https://reco.dev2.saooti.org/",
83
+ url: "https://api.preprod.saooti.org/",
84
+ commentsUrl: "https://comments.preprod.saooti.org/",
85
+ imageUrl: "https://imageproxy.preprod.saooti.org/",
86
+ studioUrl: "https://studio.preprod.saooti.org/",
87
+ playerUrl: "https://playerbeta.preprod.saooti.org/",
88
+ speechToTextUrl: "https://speech2text.preprod.saooti.org/",
89
+ radioUrl:"https://radio.preprod.saooti.org/",
90
+ recoUrl: "https://reco.preprod.saooti.org/",
91
91
  organisationId: undefined,
92
92
  rubriqueIdFilter: undefined,
93
93
  },