@saooti/octopus-sdk 37.0.59 → 37.1.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": "37.0.59",
3
+ "version": "37.1.0",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
Binary file
@@ -46,7 +46,7 @@
46
46
  <glyph unicode="&#xe924;" glyph-name="send" horiz-adv-x="820" d="M425 422.657l-334.37-33.308-88.397-281.845c-7.687-23.062 5.126-47.402 28.184-55.087 10.249-3.843 21.778-2.562 32.029 2.562l734.080 354.87c20.499 10.251 29.465 34.587 19.218 56.37-3.843 8.968-10.251 15.373-19.218 19.216l-732.799 356.151c-21.778 10.251-47.4 1.281-58.93-20.499-5.126-10.249-6.405-21.778-2.56-32.027l88.397-281.843 334.37-32.029c14.094-1.279 25.622-14.094 23.062-29.465 0-12.811-10.249-21.778-23.062-23.062v0z" />
47
47
  <glyph unicode="&#xe925;" glyph-name="search" horiz-adv-x="820" d="M803.702 129.737l-132.279 132.279c47.436 63.527 73.349 142.309 73.349 223.599 0 99.052-38.451 192.253-108.247 262.677-70.214 70.841-164.042 109.71-264.14 109.71-98.634 0-191.836-38.869-262.677-109.71s-109.71-164.251-109.71-262.886c0-100.097 39.078-193.925 109.71-264.14 70.423-69.796 163.624-108.247 262.677-108.247 81.29 0 160.072 25.912 223.599 73.349l132.279-132.279c10.24-10.24 23.823-16.091 37.824-16.091s27.375 5.642 37.824 16.091 16.091 23.823 16.091 37.824c-0.418 14.001-6.060 27.375-16.3 37.824zM637.152 485.406c0-146.071-118.696-264.766-264.766-264.766s-264.766 118.696-264.766 264.766c0 143.563 121.203 264.766 264.766 264.766 145.862 0 264.766-118.696 264.766-264.766z" />
48
48
  <glyph unicode="&#xe926;" glyph-name="facebook" horiz-adv-x="820" d="M666.262 960.001h-132.917c-148.868 0-245.632-98.892-245.632-252.011v-115.906h-132.917c-11.695 0-21.269-9.569-21.269-21.269v-168.008c0-11.698 9.569-21.267 21.269-21.267h132.917v-424.274c0-11.698 9.569-21.267 21.269-21.267h174.389c11.698 0 21.269 9.569 21.269 21.267v425.337h156.312c11.698 0 21.267 9.569 21.267 21.267v168.008c0 5.318-2.129 10.632-6.377 14.885s-9.569 6.377-14.887 6.377h-157.374v97.827c0 46.786 11.698 71.244 72.307 71.244h89.319c11.698 0 21.267 9.569 21.267 21.269v155.247c0 11.695-8.506 21.269-20.203 21.269z" />
49
- <glyph unicode="&#xe927;" glyph-name="twitter" d="M1024.001 765.577c-37.644-16.731-78.156-28.020-120.664-33.072 43.401 25.983 76.681 67.14 92.374 116.236-40.595-24.090-85.535-41.573-133.406-51.010-38.309 40.824-92.915 66.352-153.341 66.352-116.009 0-210.069-94.059-210.069-210.089 0-16.442 1.849-32.469 5.445-47.873-174.605 8.771-329.423 92.397-433.044 219.506-18.083-31.013-28.436-67.1-28.436-105.636 0-72.877 37.082-137.19 93.456-174.854-34.422 1.102-66.828 10.56-95.16 26.295-0.023-0.872-0.023-1.768-0.023-2.662 0-101.77 72.421-186.662 168.537-205.992-17.628-4.78-36.188-7.359-55.355-7.359-13.553 0-26.709 1.31-39.534 3.781 26.753-83.455 104.326-144.216 196.245-145.901-71.901-56.353-162.466-89.943-260.912-89.943-16.942 0-33.675 0.998-50.115 2.952 92.998-59.635 203.417-94.39 322.043-94.39 386.441 0 597.733 320.11 597.733 597.733 0 9.104-0.187 18.187-0.582 27.21 41.034 29.559 76.66 66.578 104.804 108.713z" />
49
+ <glyph unicode="&#xe927;" glyph-name="twitter" d="M2.632 927.298l395.466-528.706-398.099-429.89h89.501l348.286 376.229 281.463-376.229h304.75l-417.538 558.472 370.357 400.123h-89.501l-320.747-346.666-259.189 346.666h-304.75zM134.252 861.285h139.922l618.207-826.571h-139.922l-618.207 826.571z" />
50
50
  <glyph unicode="&#xe928;" glyph-name="remove" horiz-adv-x="820" d="M58.572 799.427l702.857-702.857zM761.43 38.001c-17.569 0-29.29 5.862-41 17.569l-702.857 702.857c-23.431 23.431-23.431 58.569 0 81.999s58.569 23.431 81.999 0l702.857-702.857c23.431-23.431 23.431-58.569 0-81.999-11.71-11.71-23.431-17.569-41-17.569zM761.43 799.427l-702.857-702.857zM58.572 38.001c-17.569 0-29.29 5.862-41 17.569-23.431 23.431-23.431 58.569 0 81.999l702.857 702.857c23.431 23.431 58.569 23.431 81.999 0s23.431-58.569 0-81.999l-702.857-702.857c-11.71-11.71-23.431-17.569-41-17.569z" />
51
51
  <glyph unicode="&#xe929;" glyph-name="rss" horiz-adv-x="820" d="M170.835 140.497c0-37.741-30.593-68.334-68.334-68.334s-68.334 30.595-68.334 68.334c0 37.741 30.593 68.334 68.334 68.334s68.334-30.595 68.334-68.334zM102.501 37.998c-54.666 0-102.501 47.833-102.501 102.501s47.833 102.501 102.501 102.501 102.501-47.833 102.501-102.501-47.833-102.501-102.501-102.501zM102.501 174.664c-20.499 0-34.165-13.666-34.165-34.167s13.666-34.165 34.165-34.165 34.165 13.666 34.165 34.165-13.666 34.165-34.165 34.165zM478.335 37.998c-41 0-68.334 27.334-68.334 68.334 0 191.335-150.335 341.667-341.667 341.667-41 0-68.334 27.334-68.334 68.334s27.334 68.334 68.334 68.334c266.502 0 478.336-211.836 478.336-478.336 0-41-27.334-68.334-68.334-68.334zM751.668 37.998c-41 0-68.334 27.334-68.334 68.334 0 341.667-273.335 615.002-615.002 615.002-41 0-68.334 27.334-68.334 68.334s27.334 68.334 68.334 68.334c416.837 0 751.669-334.834 751.669-751.669 0-41-27.334-68.334-68.334-68.334z" />
52
52
  <glyph unicode="&#xe92a;" glyph-name="stop" horiz-adv-x="820" d="M75.524 851.067h668.949c41.617 0 75.528-33.91 75.528-75.528v-655.077c0-41.617-33.91-75.528-75.528-75.528h-668.949c-41.615 0-75.526 33.91-75.526 75.528v655.077c0 41.617 33.91 75.526 75.526 75.526z" />
Binary file
Binary file
@@ -1,10 +1,10 @@
1
1
  @font-face {
2
2
  font-family: 'icomoon';
3
- src: url('/css/fonts/icomoon.eot?gdc25d');
4
- src: url('/css/fonts/icomoon.eot?gdc25d#iefix') format('embedded-opentype'),
5
- url('/css/fonts/icomoon.ttf?gdc25d') format('truetype'),
6
- url('/css/fonts/icomoon.woff?gdc25d') format('woff'),
7
- url('/css/fonts/icomoon.svg?gdc25d#icomoon') format('svg');
3
+ src: url('/css/fonts/icomoon.eot?yi2y5s');
4
+ src: url('/css/fonts/icomoon.eot?yi2y5s#iefix') format('embedded-opentype'),
5
+ url('/css/fonts/icomoon.ttf?yi2y5s') format('truetype'),
6
+ url('/css/fonts/icomoon.woff?yi2y5s') format('woff'),
7
+ url('/css/fonts/icomoon.svg?yi2y5s#icomoon') format('svg');
8
8
  font-weight: normal;
9
9
  font-style: normal;
10
10
  font-display: block;
package/src/App.vue CHANGED
@@ -6,7 +6,7 @@
6
6
  :is-education="false"
7
7
  @close="displayMenu = false"
8
8
  />
9
- <CategoryFilter />
9
+ <CategoryFilter v-if="firstDisplayCategoryFilter" />
10
10
  <router-view />
11
11
  <ClassicLazy
12
12
  v-if="pageFullyLoad"
@@ -22,7 +22,6 @@
22
22
  <script lang="ts">
23
23
  import TopBar from "@/components/misc/TopBar.vue";
24
24
  import PlayerComponent from "@/components/misc/player/PlayerComponent.vue";
25
- import CategoryFilter from "@/components/display/categories/CategoryFilter.vue";
26
25
  import ClassicLazy from "@/components/misc/ClassicLazy.vue";
27
26
  import { state } from "./stores/ParamSdkStore";
28
27
  import { Rubriquage } from "./stores/class/rubrique/rubriquage";
@@ -40,6 +39,9 @@ const LeftMenu = defineAsyncComponent(
40
39
  const FooterOctopus = defineAsyncComponent(
41
40
  () => import("@/components/misc/FooterSection.vue"),
42
41
  );
42
+ const CategoryFilter = defineAsyncComponent(
43
+ () => import("@/components/display/categories/CategoryFilter.vue"),
44
+ );
43
45
  export default defineComponent({
44
46
  name: "App",
45
47
 
@@ -59,7 +61,8 @@ export default defineComponent({
59
61
  displayMenu: false as boolean,
60
62
  reload: false as boolean,
61
63
  isInit: false as boolean,
62
- pageFullyLoad: false as boolean
64
+ pageFullyLoad: false as boolean,
65
+ firstDisplayCategoryFilter: false as boolean,
63
66
  };
64
67
  },
65
68
 
@@ -69,6 +72,17 @@ export default defineComponent({
69
72
  },
70
73
 
71
74
  watch: {
75
+ $route: {
76
+ deep: true,
77
+ immediate: true,
78
+ async handler() {
79
+ if(this.firstDisplayCategoryFilter){
80
+ return;
81
+ }
82
+ const namesRouteWithCategoryFilter = ["homePriv", "home", "podcasts", "emissions", "participants", "playlists"];
83
+ this.firstDisplayCategoryFilter = namesRouteWithCategoryFilter.includes(this.$route.name?.toString()?? "");
84
+ },
85
+ },
72
86
  "$i18n.locale"() {
73
87
  this.$forceUpdate();
74
88
  this.reload = !this.reload;
@@ -227,7 +227,7 @@ input:not([class^="vs__"]), button:not([class^="vs__"]), select:not([class^="vs_
227
227
  }
228
228
  .btn-twitter {
229
229
  background: #d2ecfc !important;
230
- color: #1da1f2 !important;
230
+ //color: #1da1f2 !important;
231
231
  &:hover {
232
232
  background: #bbe3fb !important;
233
233
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="isComments" class="module-box">
2
+ <div class="module-box">
3
3
  <div class="d-flex align-items-center">
4
4
  <h2 class="mb-0 me-2" data-selenium="episode-comment-counter">
5
5
  {{ commentTitle }}
@@ -29,15 +29,19 @@
29
29
  </template>
30
30
 
31
31
  <script lang="ts">
32
- import CommentList from "./CommentList.vue";
33
- import CommentInput from "./CommentInput.vue";
34
32
  import cookies from "../../mixins/cookies";
35
33
  import { Podcast } from "@/stores/class/general/podcast";
36
34
  import { Conference } from "@/stores/class/conference/conference";
37
35
  import { useCommentStore } from "@/stores/CommentStore";
38
36
  import { mapState, mapActions } from "pinia";
39
- import { defineComponent } from "vue";
37
+ import { defineAsyncComponent, defineComponent } from "vue";
40
38
  import { CommentPodcast } from "@/stores/class/general/comment";
39
+ const CommentList = defineAsyncComponent(
40
+ () => import("./CommentList.vue"),
41
+ );
42
+ const CommentInput = defineAsyncComponent(
43
+ () => import("./CommentInput.vue"),
44
+ );
41
45
  export default defineComponent({
42
46
  name: "CommentSection",
43
47
  components: {
@@ -65,27 +69,6 @@ export default defineComponent({
65
69
  : "";
66
70
  return this.$t("Podcast's comments") + count;
67
71
  },
68
- isComments(): boolean {
69
- if (!this.podcast) return true;
70
- let podcastComment = "INHERIT";
71
- if (this.podcast.annotations && this.podcast.annotations.COMMENTS) {
72
- podcastComment = this.podcast.annotations.COMMENTS as string;
73
- }
74
- let organisationComment = "LIVE_ONLY";
75
- if (this.podcast.organisation.comments) {
76
- organisationComment = this.podcast.organisation.comments;
77
- }
78
- return !(
79
- "NO" === podcastComment ||
80
- ("INHERIT" === podcastComment && "NO" === organisationComment) ||
81
- ("LIVE_RECORD" === podcastComment &&
82
- "READY_TO_RECORD" !== this.podcast.processingStatus) ||
83
- ("INHERIT" === podcastComment &&
84
- "LIVE_ONLY" === organisationComment &&
85
- !this.podcast.conferenceId &&
86
- 0 !== this.podcast.conferenceId)
87
- );
88
- },
89
72
  knownIdentity: {
90
73
  get(): string | null {
91
74
  return this.commentKnownIdentity;
@@ -39,9 +39,6 @@ export default defineComponent({
39
39
 
40
40
  computed: {
41
41
  ...mapState(useFilterStore, ["filterOrgaId"]),
42
- idPopover(): string {
43
- return this.isGuest ? "popover-guests-help" : "popover-animators-help";
44
- },
45
42
  title(): string {
46
43
  return this.isGuest ? this.$t("Guests") : this.$t("Animated by");
47
44
  },
@@ -125,14 +125,13 @@
125
125
  :display-studio-access="isDebriefing"
126
126
  @validate-podcast="$emit('updatePodcast', $event)"
127
127
  />
128
- <TagList :tag-list="podcast.tags" />
128
+ <TagList v-if="undefined !== podcast.tags && 0 !== podcast.tags.length" :tag-list="podcast.tags" />
129
129
  </div>
130
130
  </template>
131
131
 
132
132
  <script lang="ts">
133
133
  import PodcastImage from "./PodcastImage.vue";
134
134
  import ParticipantDescription from "./ParticipantDescription.vue";
135
- import TagList from "./TagList.vue";
136
135
  import { state } from "../../../stores/ParamSdkStore";
137
136
  import dayjs from "dayjs";
138
137
  // @ts-ignore
@@ -155,6 +154,9 @@ const EditBox = defineAsyncComponent(
155
154
  const PodcastPlayBar = defineAsyncComponent(
156
155
  () => import("./PodcastPlayBar.vue"),
157
156
  );
157
+ const TagList = defineAsyncComponent(
158
+ () => import("./TagList.vue"),
159
+ );
158
160
  export default defineComponent({
159
161
  name: "PodcastModuleBox",
160
162
  components: {
@@ -176,7 +176,7 @@ export default defineComponent({
176
176
  condition: true,
177
177
  },
178
178
  {
179
- title: "Twitter",
179
+ title: "X",
180
180
  icon: "saooti-twitter",
181
181
  className: "btn-twitter",
182
182
  url: `https://twitter.com/intent/tweet?text=${this.urlPage}`,
@@ -35,8 +35,8 @@ export default {
35
35
  const shouldRender = ref(false);
36
36
  const targetEl = ref();
37
37
  const fixedMinHeight = ref(0);
38
- let unrenderTimer;
39
- let renderTimer;
38
+ let unrenderTimer: ReturnType<typeof setTimeout> | undefined;
39
+ let renderTimer: ReturnType<typeof setTimeout> | undefined;
40
40
 
41
41
  const { stop } = useIntersectionObserver(
42
42
  targetEl,
@@ -57,7 +57,7 @@ export default {
57
57
  // if the component was set to render, cancel that
58
58
  clearTimeout(renderTimer);
59
59
  unrenderTimer = setTimeout(() => {
60
- fixedMinHeight.value = targetEl.value.clientHeight;
60
+ fixedMinHeight.value = targetEl.value?.clientHeight ?? 0;
61
61
  shouldRender.value = false;
62
62
  }, props.unrenderDelay);
63
63
  }
@@ -51,12 +51,12 @@
51
51
  <script lang="ts">
52
52
  import { CommentPodcast } from "@/stores/class/general/comment";
53
53
  import { playerLogic } from "../../mixins/player/playerLogic";
54
- import PlayerCompact from "../player/PlayerCompact.vue";
55
- import PlayerLarge from "../player/PlayerLarge.vue";
56
54
  import { usePlayerStore } from "@/stores/PlayerStore";
57
55
  import { mapState, mapActions } from "pinia";
58
56
  import { defineComponent, defineAsyncComponent } from "vue";
59
57
  const PlayerVideo = defineAsyncComponent(() => import("./PlayerVideo.vue"));
58
+ const PlayerCompact = defineAsyncComponent(() => import("../player/PlayerCompact.vue"));
59
+ const PlayerLarge = defineAsyncComponent(() => import("../player/PlayerLarge.vue"));
60
60
  export default defineComponent({
61
61
  name: "PlayerComponent",
62
62
 
@@ -34,7 +34,7 @@
34
34
  :emission="podcast.emission"
35
35
  />
36
36
  <CommentSection
37
- v-if="!isPodcastmaker"
37
+ v-if="!isPodcastmaker && isComments"
38
38
  ref="commentSection"
39
39
  :podcast="podcast"
40
40
  :fetch-conference="fetchConference"
@@ -154,6 +154,27 @@ export default defineComponent({
154
154
 
155
155
  computed: {
156
156
  ...mapState(useGeneralStore, ["storedCategories"]),
157
+ isComments(): boolean {
158
+ if (!this.podcast) return true;
159
+ let podcastComment = "INHERIT";
160
+ if (this.podcast.annotations && this.podcast.annotations.COMMENTS) {
161
+ podcastComment = this.podcast.annotations.COMMENTS as string;
162
+ }
163
+ let organisationComment = "LIVE_ONLY";
164
+ if (this.podcast.organisation.comments) {
165
+ organisationComment = this.podcast.organisation.comments;
166
+ }
167
+ return !(
168
+ "NO" === podcastComment ||
169
+ ("INHERIT" === podcastComment && "NO" === organisationComment) ||
170
+ ("LIVE_RECORD" === podcastComment &&
171
+ "READY_TO_RECORD" !== this.podcast.processingStatus) ||
172
+ ("INHERIT" === podcastComment &&
173
+ "LIVE_ONLY" === organisationComment &&
174
+ !this.podcast.conferenceId &&
175
+ 0 !== this.podcast.conferenceId)
176
+ );
177
+ },
157
178
  backgroundDisplay(): string {
158
179
  if (!this.podcast) {
159
180
  return "";