@saooti/octopus-sdk 37.0.7 → 37.0.8

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/index.ts CHANGED
@@ -20,7 +20,7 @@ export const getAccordion = () => import("./src/components/misc/ClassicAccordion
20
20
  export const getNav = () => import("./src/components/misc/ClassicNav.vue");
21
21
  export const getProgressBar = () => import("./src/components/misc/ProgressBar.vue");
22
22
  export const getSpinner = () => import("./src/components/misc/ClassicSpinner.vue");
23
- export const getFooter = () => import("./src/components/misc/Footer.vue");
23
+ export const getFooter = () => import("./src/components/misc/FooterSection.vue");
24
24
  export const getLeftMenu = () => import("./src/components/misc/LeftMenu.vue");
25
25
  export const getPlayer = () => import("./src/components/misc/player/PlayerComponent.vue");
26
26
  export const getSnackbar = () => import("./src/components/misc/SnackBar.vue");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "37.0.7",
3
+ "version": "37.0.8",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -10,8 +10,6 @@
10
10
  "dev": "vite",
11
11
  "lint": "eslint --ext .js,.vue --fix src",
12
12
  "build_bundle": "vue-cli-service build --target lib --name octopus ./index.js",
13
- "prettifile": "prettier --single-quote --trailing-comma es5 --write",
14
- "prettify": "prettier --single-quote --trailing-comma es5 --write src/**/**/**/*.{js,vue}",
15
13
  "sonar": "node sonarqube-scanner.js",
16
14
  "test": "jest --coverage"
17
15
  },
@@ -2,7 +2,7 @@
2
2
  .arrow-transform {
3
3
  transform: rotate(180deg);
4
4
  }
5
- .bloc-paddle {
5
+ .bloc-paddle{
6
6
  align-items: flex-end;
7
7
  display: flex;
8
8
  width: 0.9rem;
@@ -17,34 +17,45 @@
17
17
  margin: 0.05rem;
18
18
  background: #fff;
19
19
  }
20
-
21
20
  .paddle1 {
22
- animation-duration: 0.6s;
23
- animation-name: slidein;
24
- animation-iteration-count: infinite;
25
- animation-direction: alternate;
21
+ height: 50%;
26
22
  }
27
-
28
23
  .paddle2 {
29
- animation-duration: 0.3s;
30
- animation-name: slidein2;
31
- animation-iteration-count: infinite;
32
- animation-direction: alternate;
24
+ height: 25%;
33
25
  }
34
-
35
26
  .paddle3 {
36
- animation-duration: 0.5s;
37
- animation-name: slidein3;
38
- animation-iteration-count: infinite;
39
- animation-direction: alternate;
27
+ height: 80%;
28
+ }
29
+
30
+ &.play-animation{
31
+ .paddle1 {
32
+ animation-duration: 0.6s;
33
+ animation-name: slidein;
34
+ animation-iteration-count: infinite;
35
+ animation-direction: alternate;
36
+ }
37
+
38
+ .paddle2 {
39
+ animation-duration: 0.3s;
40
+ animation-name: slidein2;
41
+ animation-iteration-count: infinite;
42
+ animation-direction: alternate;
43
+ }
44
+
45
+ .paddle3 {
46
+ animation-duration: 0.5s;
47
+ animation-name: slidein3;
48
+ animation-iteration-count: infinite;
49
+ animation-direction: alternate;
50
+ }
40
51
  }
41
52
  @keyframes slidein {
42
- 0% {
43
- height: 0;
44
- }
45
- 100% {
46
- height: 1rem;
47
- }
53
+ 0% {
54
+ height: 0;
55
+ }
56
+ 100% {
57
+ height: 1rem;
58
+ }
48
59
  }
49
60
 
50
61
  @keyframes slidein2 {
@@ -64,6 +75,7 @@
64
75
  height: 0;
65
76
  }
66
77
  }
78
+
67
79
  }
68
80
  .out-left-enter-active,
69
81
  .out-left-leave-active,
@@ -125,16 +125,23 @@ export default defineComponent({
125
125
  ${this.iabId}|${this.rubriqueId}|${this.rubriquageId}|${this.before}|${this.after}|${this.sort}|${this.noRubriquageId}`;
126
126
  },
127
127
  sortText(): string {
128
+ let textSort = "";
128
129
  switch (this.sort) {
129
130
  case "SCORE":
130
- return " " + this.$t("sort by score");
131
+ textSort = " " + this.$t("sort by score");
132
+ break;
131
133
  case "LAST_PODCAST_DESC":
132
- return " " + this.$t("sort by date");
134
+ textSort = " " + this.$t("sort by date");
135
+ break;
133
136
  case "NAME":
134
- return " " + this.$t("sort by alphabetical");
137
+ textSort = " " + this.$t("sort by alphabetical");
138
+ break;
135
139
  default:
136
- return " " + this.$t("sort by date");
140
+ textSort = " " + this.$t("sort by date");
141
+ break;
137
142
  }
143
+
144
+ return textSort.replace("triés", "triées");
138
145
  },
139
146
  organisation(): string | undefined {
140
147
  return this.organisationId ? this.organisationId : this.filterOrgaId;
@@ -41,7 +41,11 @@
41
41
  class="special-icon-play-button"
42
42
  :class="iconName"
43
43
  />
44
- <div v-if="playingPodcast" class="bloc-paddle">
44
+ <div
45
+ v-if="playingPodcast"
46
+ :class="'PLAYING' === playerStatus ? 'play-animation' : ''"
47
+ class="bloc-paddle"
48
+ >
45
49
  <span class="paddle1" />
46
50
  <span class="paddle2" />
47
51
  <span class="paddle3" />
@@ -2,7 +2,7 @@
2
2
  <div class="wysiwyg-editor">
3
3
  <div v-if="editor" class="editor-menubar">
4
4
  <button
5
- title="Bold"
5
+ :title="$t('Bold')"
6
6
  data-selenium="Bold"
7
7
  :class="{ 'is-active': editor.isActive('bold') }"
8
8
  @click="editor.chain().focus().toggleBold().run()"
@@ -15,7 +15,7 @@
15
15
  </svg>
16
16
  </button>
17
17
  <button
18
- title="Italic"
18
+ :title="$t('Italic')"
19
19
  data-selenium="Italic"
20
20
  :class="{ 'is-active': editor.isActive('italic') }"
21
21
  @click="editor.chain().focus().toggleItalic().run()"
@@ -28,7 +28,7 @@
28
28
  </svg>
29
29
  </button>
30
30
  <button
31
- title="Underline"
31
+ :title="$t('Underline')"
32
32
  data-selenium="Underline"
33
33
  :class="{ 'is-active': editor.isActive('underline') }"
34
34
  @click="editor.chain().focus().toggleUnderline().run()"
@@ -41,7 +41,7 @@
41
41
  </svg>
42
42
  </button>
43
43
  <button
44
- title="Link"
44
+ :title="$t('Link')"
45
45
  data-selenium="Link"
46
46
  :class="{ 'is-active': editor.isActive('link') }"
47
47
  @click="setLink"
@@ -80,7 +80,7 @@
80
80
  </svg>
81
81
  </button>
82
82
  <button
83
- title="Heading3"
83
+ :title="$t('Heading3')"
84
84
  data-selenium="Heading3"
85
85
  :class="{ 'is-active': editor.isActive('heading', { level: 3 }) }"
86
86
  @click="editor.chain().focus().toggleHeading({ level: 3 }).run()"
@@ -88,7 +88,7 @@
88
88
  H3
89
89
  </button>
90
90
  <button
91
- title="Heading4"
91
+ :title="$t('Heading4')"
92
92
  data-selenium="Heading4"
93
93
  :class="{ 'is-active': editor.isActive('heading', { level: 4 }) }"
94
94
  @click="editor.chain().focus().toggleHeading({ level: 4 }).run()"
@@ -96,7 +96,7 @@
96
96
  H4
97
97
  </button>
98
98
  <button
99
- title="UnorderedList"
99
+ :title="$t('UnorderedList')"
100
100
  data-selenium="UnorderedList"
101
101
  class="saooti-ul"
102
102
  :class="{ 'is-active': editor.isActive('bulletList') }"
@@ -121,7 +121,7 @@
121
121
  </svg>
122
122
  </button>
123
123
  <button
124
- title="List"
124
+ :title="$t('List')"
125
125
  data-selenium="List"
126
126
  :class="{ 'is-active': editor.isActive('orderedList') }"
127
127
  @click="editor.chain().focus().toggleOrderedList().run()"
@@ -134,7 +134,7 @@
134
134
  </svg>
135
135
  </button>
136
136
  <button
137
- title="Display HTML"
137
+ :title="$t('Display HTML')"
138
138
  data-selenium="Display-HTML"
139
139
  class="html-button"
140
140
  :class="{ 'is-active': isHtmlDisplay }"
@@ -1,26 +1,29 @@
1
1
  <template>
2
- <div class="octopus-accordion my-2">
3
- <button
4
- :id="'accordion-' + idComposer"
5
- class="btn-transparent bg-white w-100 p-2 text-start d-flex align-items-center"
6
- :class="isOpen ? 'really-light-primary-bg' : ''"
7
- @click="isOpen = !isOpen"
8
- >
9
- <span v-if="icon" class="img-accordion text-primary" :class="icon" />
10
- <img
11
- v-if="imageUrl"
12
- width="30"
13
- height="30"
14
- class="img-accordion"
15
- :src="imageUrl"
16
- :alt="title"
17
- />
18
- <span class="flex-grow-1">{{ title }}</span>
19
- <span :class="isOpen ? 'saooti-up' : 'saooti-down'" />
20
- </button>
21
- <div v-show="isOpen" class="body p-2">
22
- <slot />
23
- </div>
2
+ <div class="my-2" :class="displayAccordion ? 'octopus-accordion' : ''">
3
+ <template v-if="displayAccordion">
4
+ <button
5
+ :id="'accordion-' + idComposer"
6
+ class="btn-transparent bg-white w-100 p-2 text-start d-flex align-items-center"
7
+ :class="isOpen ? 'really-light-primary-bg' : ''"
8
+ @click="isOpen = !isOpen"
9
+ >
10
+ <span v-if="icon" class="img-accordion text-primary" :class="icon" />
11
+ <img
12
+ v-if="imageUrl"
13
+ width="30"
14
+ height="30"
15
+ class="img-accordion"
16
+ :src="imageUrl"
17
+ :alt="title"
18
+ />
19
+ <span class="flex-grow-1">{{ title }}</span>
20
+ <span :class="isOpen ? 'saooti-up' : 'saooti-down'" />
21
+ </button>
22
+ <div v-show="isOpen" class="body p-2">
23
+ <slot />
24
+ </div>
25
+ </template>
26
+ <slot v-else />
24
27
  </div>
25
28
  </template>
26
29
 
@@ -33,6 +36,7 @@ export default defineComponent({
33
36
  idComposer: { default: "", type: String },
34
37
  icon: { default: undefined, type: String },
35
38
  imageUrl: { default: undefined, type: String },
39
+ displayAccordion: { default: true, type: Boolean },
36
40
  },
37
41
  emits: ["open"],
38
42
  data() {
@@ -36,7 +36,7 @@
36
36
  :reset="reset"
37
37
  @selected="onOrganisationSelected"
38
38
  />
39
- <div class="d-flex justify-content-end flex-grow-1">
39
+ <div class="d-flex align-items-center justify-content-end flex-grow-1">
40
40
  <template v-for="link in routerLinkArray" :key="link.routeName">
41
41
  <router-link
42
42
  v-if="link.condition"
package/src/locale/de.ts CHANGED
@@ -334,4 +334,13 @@ export default {
334
334
  "Characters number calculated over HTML code":
335
335
  "Die Zeichenzahl wird mit dem HTML-Code ermittelt, der mit diesem Editor erstellt wurde. Über den HTML-Button können Sie diesen Code einsehen.",
336
336
  Previously: "Bisher",
337
+ "Bold":"Deutlich",
338
+ "Italic":"Kursiv",
339
+ "Underline":"Unterstreichen",
340
+ "Link":"Verknüpfung",
341
+ "Heading3":"Überschrift 3",
342
+ "Heading4":"Überschrift 4",
343
+ "UnorderedList":"Ungeordnete Liste",
344
+ "List":"Aufführen",
345
+ "Display HTML":"HTML anzeigen",
337
346
  };
package/src/locale/en.ts CHANGED
@@ -334,4 +334,13 @@ export default {
334
334
  "Characters number calculated over HTML code":
335
335
  'The number of characters is calculated from the HTML code generated by this editor. You can see this code using the "html" button.',
336
336
  Previously: "Previously",
337
+ "Bold":"Bold",
338
+ "Italic":"Italic",
339
+ "Underline":"Underline",
340
+ "Link":"Link",
341
+ "Heading3":"Heading 3",
342
+ "Heading4":"Heading 4",
343
+ "UnorderedList":"Unordered list",
344
+ "List":"List",
345
+ "Display HTML":"Display HTML",
337
346
  };
package/src/locale/es.ts CHANGED
@@ -335,4 +335,13 @@ export default {
335
335
  "Characters number calculated over HTML code":
336
336
  "El número de caracteres se calcula a partir del código HTML generado por este editor. Puedes visualizar este código pulsando en «html».",
337
337
  Previously: "Previamente",
338
+ "Bold":"Atrevido",
339
+ "Italic":"Itálico",
340
+ "Underline":"Subrayar",
341
+ "Link":"Enlace",
342
+ "Heading3":"Título 3",
343
+ "Heading4":"Título 4",
344
+ "UnorderedList":"Lista desordenada",
345
+ "List":"Lista",
346
+ "Display HTML":"Mostrar HTML",
338
347
  };
package/src/locale/fr.ts CHANGED
@@ -341,4 +341,13 @@ export default {
341
341
  "Characters number calculated over HTML code":
342
342
  'Le nombre de caractères est calculé à partir du code HTML généré par cet éditeur. Vous pouvez voir ce code grâce au bouton "html".',
343
343
  Previously: "Précédemment",
344
+ "Bold":"Gras",
345
+ "Italic":"Italique",
346
+ "Underline":"Souligner",
347
+ "Link":"Lien",
348
+ "Heading3":"Titre 3",
349
+ "Heading4":"Titre 4",
350
+ "UnorderedList":"Liste non ordonnée",
351
+ "List":"Liste",
352
+ "Display HTML":"Afficher HTML",
344
353
  };
package/src/locale/it.ts CHANGED
@@ -329,4 +329,13 @@ export default {
329
329
  "Characters number calculated over HTML code":
330
330
  'Il numero di caratteri è calcolato dal codice HTML generato da questo editor. È possibile visualizzare il codice cliccando su "html".',
331
331
  Previously: "In precedenza",
332
+ "Bold":"Grassetto",
333
+ "Italic":"Corsivo",
334
+ "Underline":"Sottolineare",
335
+ "Link":"Collegamento",
336
+ "Heading3":"Titolo 3",
337
+ "Heading4":"Titolo 4",
338
+ "UnorderedList":"Lista non ordinata",
339
+ "List":"Elenco",
340
+ "Display HTML":"Visualizza HTML",
332
341
  };
package/src/locale/sl.ts CHANGED
@@ -324,4 +324,13 @@ export default {
324
324
  "Characters number calculated over HTML code":
325
325
  "Število znakov se izračuna iz kode HTML, ki jo ustvari ta urejevalnik. Ogledate si jo lahko s klikom na gumb „html“.",
326
326
  Previously: "Prej",
327
+ "Bold":"Krepko",
328
+ "Italic":"Ležeče",
329
+ "Underline":"Podčrtaj",
330
+ "Link":"Povezava",
331
+ "Heading3":"Naslov 3",
332
+ "Heading4":"Naslov 4",
333
+ "UnorderedList":"Neurejen seznam",
334
+ "List":"Seznam",
335
+ "Display HTML":"Prikaži HTML",
327
336
  };