@saooti/octopus-sdk 33.0.1 → 33.0.2

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": "33.0.1",
3
+ "version": "33.0.2",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
Binary file
@@ -32,11 +32,6 @@
32
32
  border: 0;
33
33
  }
34
34
  }
35
- .icon-caution {
36
- margin-right: 5px;
37
- margin-bottom: 2px;
38
- height: 25px;
39
- }
40
35
 
41
36
  .vue-swatches__trigger{
42
37
  border: solid 1px black;
@@ -18,16 +18,16 @@
18
18
  :alt="$t('Emission name image', {name:emission.name})"
19
19
  >
20
20
  <div class="emission-item-text">
21
- <div
22
- class="emission-name"
23
- >
24
- <img
21
+ <div class="d-flex align-items-center">
22
+ <span
25
23
  v-if="!activeEmission && !isPodcastmaker && editRight"
26
- class="icon-caution"
27
- src="/img/caution.png"
28
24
  :title="$t('Emission have not podcasts')"
29
- :alt="$t('Emission have not podcasts')"
30
- >{{ emission.name }}
25
+ class="saooti-warning text-danger me-1"/>
26
+ <div
27
+ class="emission-name"
28
+ >
29
+ {{ emission.name }}
30
+ </div>
31
31
  </div>
32
32
  <div
33
33
  ref="descriptionEmissionContainer"
@@ -18,14 +18,14 @@
18
18
  :alt="$t('Animator image')"
19
19
  class="img-box-circle"
20
20
  >
21
- <div class="participant-name">
22
- <img
21
+ <div class="d-flex align-items-center">
22
+ <span
23
23
  v-if="!activeParticipant && !isPodcastmaker && editRight"
24
- src="/img/caution.png"
25
- class="icon-caution"
26
24
  :title="$t('Participant have not podcasts')"
27
- :alt="$t('Participant have not podcasts')"
28
- >{{ name }}
25
+ class="saooti-warning text-danger me-1"/>
26
+ <div class="participant-name">
27
+ {{ name }}
28
+ </div>
29
29
  </div>
30
30
  <div
31
31
  ref="descriptionParticipantContainer"
@@ -19,14 +19,14 @@
19
19
  class="img-box"
20
20
  >
21
21
  <div class="emission-item-text">
22
- <div class="emission-name">
23
- <img
22
+ <div class="d-flex align-items-center">
23
+ <span
24
24
  v-if="!activePlaylist && !isPodcastmaker"
25
- class="icon-caution"
26
- src="/img/caution.png"
27
25
  :title="$t('Playlist have not podcasts')"
28
- :alt="$t('Playlist have not podcasts')"
29
- >{{ name }}
26
+ class="saooti-warning text-danger me-1"/>
27
+ <div class="emission-name">
28
+ {{ name }}
29
+ </div>
30
30
  </div>
31
31
  <div
32
32
  ref="descriptionPlaylistContainer"
@@ -6,11 +6,9 @@
6
6
  <div
7
7
  class="d-flex align-items-center bg-error-message p-2 rounded my-1"
8
8
  >
9
- <img
10
- src="/img/caution.png"
11
- :alt="$t('Warning')"
12
- class="icon-caution"
13
- >
9
+ <span
10
+ :title="$t('Warning')"
11
+ class="saooti-warning text-danger me-1"/>
14
12
  <div class="alert-text">
15
13
  {{ message }}
16
14
  </div>
@@ -14,7 +14,7 @@
14
14
  @click="onDisplayMenu(true)"
15
15
  >
16
16
  <img
17
- :src="!filterOrga || '' === imgUrl ? logoUrl : proxyImageUrl(imgUrl, '160')"
17
+ :src="!filterOrga || '' === imgUrl ? logoUrl : proxyImageUrl(imgUrl, '', '50')"
18
18
  :alt="!filterOrga || '' === imgUrl ? $t('Logo of main page') : $t('Visual', {name: $store.state.filter?.name})"
19
19
  :class="isEducation ? 'educationLogo' : ''"
20
20
  >
@@ -9,12 +9,13 @@ export const selenium ={
9
9
  };
10
10
  export const imageProxy ={
11
11
  methods: {
12
- proxyImageUrl(url:string, width:string): string{
12
+ proxyImageUrl(url:string, width:string, height?:string): string{
13
13
  if(!url){
14
14
  return "";
15
15
  }
16
16
  if(state.octopusApi.imageUrl && url.includes('http')){
17
- return state.octopusApi.imageUrl+"image/"+btoa(url)+"?width="+width+"&useWebp=true";
17
+ const size = height ? "height="+height:"width="+width;
18
+ return state.octopusApi.imageUrl+"image/"+btoa(url)+"?"+size+"&useWebp=true";
18
19
  }
19
20
  return url;
20
21
  },
package/src/main.ts CHANGED
@@ -10,7 +10,7 @@ import paramStore from '@/store/paramStore';
10
10
  const nameEQ = 'octopus-language=';
11
11
  const ca = document.cookie.split(';');
12
12
  let language = "";
13
- for (let valueCookie in ca) {
13
+ for (let valueCookie of ca) {
14
14
  let c = valueCookie;
15
15
  while (c.charAt(0) == ' ') c = c.substring(1, c.length);
16
16
  if (0 === c.indexOf(nameEQ)){
@@ -2,7 +2,7 @@
2
2
  $body-bg: #f8fafc;
3
3
 
4
4
  // Typography
5
- $font-family-sans-serif: 'Roboto', sans-serif;
5
+ $font-family-sans-serif: sans-serif;
6
6
  $font-size-base: 0.9rem;
7
7
  $line-height-base: 1.6;
8
8
  $primary: #32815C;
Binary file
Binary file