@saooti/octopus-sdk 40.2.3 → 40.2.5

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": "40.2.3",
3
+ "version": "40.2.5",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -175,5 +175,9 @@ export default defineComponent({
175
175
  margin-right: -18px;
176
176
  animation: fadein 1s;
177
177
  }
178
+ @keyframes fadein {
179
+ from { opacity: 0; }
180
+ to { opacity: 1; }
181
+ }
178
182
  }
179
183
  </style>
@@ -47,6 +47,7 @@ import "vue3-swatches/dist/style.css";
47
47
  import { Podcast } from "@/stores/class/general/podcast";
48
48
  import { defineComponent } from "vue";
49
49
  import { useSaveFetchStore } from "../../../stores/SaveFetchStore";
50
+ import { useFilterStore } from "../../../stores/FilterStore";
50
51
  import { useAuthStore } from "../../../stores/AuthStore";
51
52
  import { mapState, mapActions } from "pinia";
52
53
  import { Emission } from "@/stores/class/general/emission";
@@ -78,11 +79,25 @@ export default defineComponent({
78
79
  { color: "#000000", mainText: this.$t("Choose text color") },
79
80
  { color: "#FFFFFF", mainText: this.$t("Choose background color") },
80
81
  ],
81
- shareUrl: window.location.href,
82
+ shareUrl: window.location.origin,
82
83
  };
83
84
  },
84
85
  computed: {
86
+ ...mapState(useFilterStore, ["filterOrgaId"]),
85
87
  ...mapState(useAuthStore, ["authOrgaId"]),
88
+ pathShare(){
89
+ const orga = this.filterOrgaId ? "?productor="+this.filterOrgaId : "";
90
+ if(this.podcast){
91
+ return "/main/pub/podcast/"+ this.podcast.podcastId + orga
92
+ }
93
+ if(this.emission){
94
+ return "/main/pub/emission/"+ this.emission.emissionId + orga
95
+ }
96
+ if(this.playlist){
97
+ return "/main/pub/playlist/"+ this.playlist.playlistId + orga
98
+ }
99
+ return "";
100
+ },
86
101
  newsletterInfo() {
87
102
  if (this.podcast) {
88
103
  return {
@@ -98,7 +113,7 @@ export default defineComponent({
98
113
  <div style="font-size:16px; color:${
99
114
  this.arrayColors[1].color
100
115
  }; margin-right:5px;text-wrap: nowrap;">${this.$t("Emission")} :</div>
101
- <a href="${this.shareUrl}" style="font-size: 16px;color: ${
116
+ <a href="${this.shareUrl+this.pathShare}" style="font-size: 16px;color: ${
102
117
  this.arrayColors[0].color
103
118
  };overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">${
104
119
  this.podcast.emission.name
@@ -159,13 +174,13 @@ export default defineComponent({
159
174
  this.newsletterInfo.description
160
175
  }</div></td></tr>
161
176
  <tr><td valign="top" style="padding:5px 0;"><a href="${
162
- this.shareUrl
177
+ this.shareUrl+this.pathShare
163
178
  }" style="color: ${this.arrayColors[0].color};">${this.$t(
164
179
  "See more",
165
180
  )}</a></td></tr>
166
181
  <tr>${this.newsletterInfo.articleHtml}
167
182
  <td width="1" style="padding:5px 0;"><a href="${
168
- this.shareUrl
183
+ this.shareUrl+this.pathShare
169
184
  }" style="font-size: 18px;color: ${
170
185
  this.arrayColors[0].color
171
186
  };text-decoration: none; display:flex;"><svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 24 24"><path fill="currentColor" d="m9.5 16.5l7-4.5l-7-4.5zM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22"/></svg><div style="margin-top: 15px; color:${
@@ -191,10 +206,7 @@ export default defineComponent({
191
206
  Object.hasOwn(attributes, "podcastmakerUrl") &&
192
207
  (attributes.podcastmakerUrl as string | undefined | null)?.length
193
208
  ) {
194
- this.shareUrl =
195
- attributes.podcastmakerUrl +
196
- window.location.pathname +
197
- window.location.search;
209
+ this.shareUrl = attributes.podcastmakerUrl?.toString() ?? window.location.origin;
198
210
  }
199
211
  if (Object.hasOwn(attributes, "COLOR")) {
200
212
  this.arrayColors[0].color = attributes.COLOR as string;
@@ -213,6 +213,7 @@ export default defineComponent({
213
213
  display: flex;
214
214
  flex-direction: column;
215
215
  flex-grow: 1;
216
+ width: 100%;
216
217
  }
217
218
  .header-additional-content, .header-opacity{
218
219
  background: oklch(0 0 0 / 0.5);
@@ -29,7 +29,7 @@
29
29
  :class="platformEducation ? 'education-logo' : ''"
30
30
  />
31
31
  </router-link>
32
- <h1 v-if="titleIsDisplayed" class="text-fadein text-truncate m-0 align-self-center">
32
+ <h1 v-if="titleIsDisplayed" class="text-truncate m-0 align-self-center">
33
33
  {{ titleDisplay }}
34
34
  </h1>
35
35
  <div
@@ -73,7 +73,6 @@
73
73
  <nav role="navigation" :aria-label="$t('Site menu')">
74
74
  <ul class="d-flex">
75
75
  <template v-for="link in routerLinkArray" :key="link.routeName">
76
- <transition name="fade">
77
76
  <li v-if="link.condition" class="li-style-none">
78
77
  <router-link
79
78
  v-show="!isPhone"
@@ -86,7 +85,6 @@
86
85
  {{ link.title }}
87
86
  </router-link>
88
87
  </li>
89
- </transition>
90
88
  </template>
91
89
  </ul>
92
90
  </nav>
@@ -342,18 +340,6 @@ export default defineComponent({
342
340
  max-width: 30px !important;
343
341
  }
344
342
  }
345
- .text-fadein{
346
- animation: fadein 0.3s ease-in-out;
347
- }
348
- .fade-enter-active, .fade-leave-active {
349
- transition: opacity 0.3s;
350
- @starting-style {
351
- opacity: 0;
352
- }
353
- }
354
- .fade-enter, .fade-leave-to {
355
- opacity: 0;
356
- }
357
343
  }
358
344
  }
359
345
  </style>
@@ -84,8 +84,4 @@
84
84
  }
85
85
 
86
86
  }
87
- @keyframes fadein {
88
- from { opacity: 0; }
89
- to { opacity: 1; }
90
- }
91
87
  }