@saooti/octopus-sdk 32.0.38 → 33.0.0

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": "32.0.38",
3
+ "version": "33.0.0",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -121,7 +121,7 @@ export default defineComponent({
121
121
  list-style: none;
122
122
  position: relative;
123
123
  width: 13rem;
124
- height: 21.4rem;
124
+ height: 22rem;
125
125
  overflow: hidden;
126
126
  display: flex;
127
127
  flex-direction: column;
@@ -10,6 +10,7 @@
10
10
  v-model="textValue"
11
11
  :disabled="isDisabled"
12
12
  class="c-hand"
13
+ :style="getFontFamily"
13
14
  >
14
15
  <option
15
16
  v-for="option in options"
@@ -24,6 +25,7 @@
24
25
  </template>
25
26
  <script lang="ts">
26
27
  import { defineComponent } from 'vue';
28
+ import { displayMethods } from '../mixins/functions';
27
29
  export default defineComponent({
28
30
  name: 'ClassicSelect',
29
31
  props: {
@@ -40,6 +42,17 @@ export default defineComponent({
40
42
  textValue: undefined as string|undefined,
41
43
  };
42
44
  },
45
+ computed:{
46
+ getFontFamily(): string{
47
+ const item = this.options.find((x) => {
48
+ return this.textValue === x.value;
49
+ });
50
+ if(item && item.fontFamily){
51
+ return 'font-family:'+item.fontFamily;
52
+ }
53
+ return "";
54
+ }
55
+ },
43
56
  watch: {
44
57
  textValue(){
45
58
  if(this.textInit !== this.textValue){
@@ -54,7 +67,7 @@ export default defineComponent({
54
67
  }
55
68
  },
56
69
  },
57
- }
70
+ },
58
71
  });
59
72
  </script>
60
73
  <style lang="scss">
@@ -13,7 +13,7 @@ export const imageProxy ={
13
13
  if(!url){
14
14
  return "";
15
15
  }
16
- if(state.octopusApi.imageUrl){
16
+ if(state.octopusApi.imageUrl && url.includes('http')){
17
17
  return state.octopusApi.imageUrl+"image/"+btoa(url)+"?width="+width+"&useWebp=true";
18
18
  }
19
19
  return url;
@@ -9,7 +9,7 @@ const state:paramStore = {
9
9
  isRoleLive: true,
10
10
  isCommments: true,
11
11
  isOrganisation: true,
12
- isPlaylist: false,
12
+ isPlaylist: true,
13
13
  isProduction: true,
14
14
  isContribution: true,
15
15
  ApiUri: 'https://api.dev2.saooti.org/',
@@ -209,6 +209,9 @@ const definedProps = (obj: GeneralParameters|PodcastPage|PodcastsPage|EmissionsP
209
209
  const initialize = function initialize(initObject: paramStore): Promise<void> {
210
210
  return new Promise<void>((resolve, reject) => {
211
211
  state.generalParameters = Object.assign(state.generalParameters, definedProps(initObject.generalParameters));
212
+ if(!state.generalParameters.authenticated){
213
+ state.generalParameters.organisationId = undefined;
214
+ }
212
215
  state.podcastPage = Object.assign(state.podcastPage, definedProps(initObject.podcastPage));
213
216
  state.podcastsPage = Object.assign(state.podcastsPage, definedProps(initObject.podcastsPage));
214
217
  state.emissionsPage = Object.assign(state.emissionsPage, definedProps(initObject.emissionsPage));