@saooti/octopus-sdk 36.0.35 → 36.0.37

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": "36.0.35",
3
+ "version": "36.0.37",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -69,7 +69,7 @@ input:not([class^="vs__"]), button:not([class^="vs__"]), select:not([class^="vs_
69
69
  }
70
70
  .btn{
71
71
  display: inline-block;
72
- padding: 0.5rem;
72
+ padding: 0.4rem;
73
73
  line-height: 1.5;
74
74
  color: #212529;
75
75
  text-align: center;
@@ -1,6 +1,7 @@
1
1
  .octopus-app{
2
2
  .octopus-form-item{
3
3
  min-height: 1.44rem;
4
+ padding: 0.4rem 0;
4
5
  }
5
6
  .form-label {
6
7
  display: block;
@@ -182,7 +182,7 @@ export default defineComponent({
182
182
  .octopus-app{
183
183
  .header-img{
184
184
  display: flex;
185
- min-height: 15rem;
185
+ min-height: 10rem;
186
186
  background-size: cover;
187
187
  background-position: center;
188
188
  h1{
@@ -14,9 +14,8 @@
14
14
  :label="$t('From the :')"
15
15
  />
16
16
  <ClassicDatePicker
17
- class="ps-3 pe-3"
18
17
  :date="fromDate"
19
- template-class="px-2 py-1 border rounded focus:border-blue-300"
18
+ template-class="mx-2 px-2 py-1 border rounded focus:border-blue-300"
20
19
  @updateDate="fromDate=$event;updateFromDate"
21
20
  />
22
21
  </div>
@@ -28,9 +27,8 @@
28
27
  :label="$t('To the :')"
29
28
  />
30
29
  <ClassicDatePicker
31
- class="ps-3"
32
30
  :date="toDate"
33
- template-class="px-2 py-1 border rounded focus:border-blue-300"
31
+ template-class="ms-2 px-2 py-1 border rounded focus:border-blue-300"
34
32
  @updateDate="toDate=$event;updateToDate"
35
33
  />
36
34
  </div>
@@ -11,7 +11,7 @@
11
11
  />
12
12
  <div
13
13
  v-if="isRubriquage"
14
- class="d-flex flex-column mb-2 flex-grow-1"
14
+ class="d-flex ms-1 flex-column mb-2 flex-grow-1"
15
15
  >
16
16
  <RubriqueChoice
17
17
  v-for="(filter, index) in arrayFilter"
@@ -214,7 +214,7 @@ export default defineComponent({
214
214
  case 'RECORDING':
215
215
  return this.$t('In live');
216
216
  case 'DEBRIEFING':
217
- if (!this.isAnimatorLive) return '';
217
+ /* if (!this.isAnimatorLive) return ''; */
218
218
  if ('READY_TO_RECORD' === this.podcast.processingStatus)
219
219
  return this.$t('Not recording');
220
220
  return this.$t('Debriefing');
@@ -318,10 +318,10 @@ export default defineComponent({
318
318
  .image-play-button .play-button-error-icon {
319
319
  background: #0000009d !important;
320
320
  cursor: default !important;
321
- align-self: center;
322
- margin-bottom: calc(50% - 1rem);
321
+ /* align-self: center;
322
+ margin-bottom: calc(50% - 1rem); */
323
323
  .big-icon-error {
324
- font-size: 2rem;
324
+ font-size: 1.5rem;
325
325
  position: relative;
326
326
  }
327
327
  }
@@ -135,7 +135,6 @@
135
135
  v-if="
136
136
  !!fetchConference &&
137
137
  isLiveReadyToRecord &&
138
- !isNotRecorded &&
139
138
  isOctopusAndAnimator
140
139
  "
141
140
  :podcast="podcast"
@@ -147,6 +146,7 @@
147
146
  <EditBox
148
147
  v-else-if="editRight && isEditBox"
149
148
  :podcast="podcast"
149
+ :displayStudioAccess="isDebriefing"
150
150
  @validatePodcast="$emit('updatePodcast', $event)"
151
151
  />
152
152
  <TagList
@@ -243,9 +243,8 @@ export default defineComponent({
243
243
  'READY' === this.podcast?.processingStatus
244
244
  );
245
245
  },
246
- isNotRecorded(): boolean {
246
+ isDebriefing(): boolean {
247
247
  return (
248
- this.isLiveReadyToRecord &&
249
248
  undefined!==this.fetchConference &&
250
249
  'DEBRIEFING' === this.fetchConference.status
251
250
  );
@@ -174,6 +174,9 @@ import vSelect from "vue-select";
174
174
  .vs__dropdown-option{
175
175
  white-space: initial;
176
176
  }
177
+ .vs--searchable .vs__dropdown-toggle{
178
+ cursor: pointer;
179
+ }
177
180
  .vs__search:focus{
178
181
  min-width: 150px;
179
182
  }
@@ -7,7 +7,7 @@
7
7
  v-for="option in options"
8
8
  :key="option.title"
9
9
  class="octopus-form-item"
10
- :class="isColumn? 'mb-2':'me-2'"
10
+ :class="isColumn? 'd-flex align-items-center':'me-2'"
11
11
  >
12
12
  <input
13
13
  :id="idRadio + option.value"
@@ -167,9 +167,9 @@ export default defineComponent({
167
167
  z-index: 9999;
168
168
  &.octopus-dropdown{
169
169
  min-width: 200px;
170
- padding: 0.5rem 1rem;
171
170
  .octopus-dropdown-item{
172
- display: block;
171
+ display: flex;
172
+ justify-content: center;
173
173
  color: rgb(29, 29, 29);
174
174
  width: 100%;
175
175
  padding: 0.25rem 1rem;
@@ -59,6 +59,7 @@
59
59
  </div>
60
60
  <div class="d-flex align-items-center flex-grow-1">
61
61
  <button
62
+ title="-15''"
62
63
  class="btn fs-1 bg-transparent text-light saooti-backward"
63
64
  @click="seekClick(-15)"
64
65
  />
@@ -78,6 +79,7 @@
78
79
  />
79
80
  </button>
80
81
  <button
82
+ title="+15''"
81
83
  class="btn fs-1 bg-transparent text-light saooti-forward"
82
84
  @click="seekClick(15)"
83
85
  />
@@ -223,18 +223,25 @@ export default defineComponent({
223
223
  },
224
224
 
225
225
  methods: {
226
+ async fetchConferencePublic(){
227
+ const data = await octopusApi.fetchData<string>(9, 'conference/realstatus/'+this.podcast.conferenceId);
228
+ this.fetchConference = {
229
+ status: data,
230
+ conferenceId: this.podcast.conferenceId,
231
+ title:'',
232
+ };
233
+ },
226
234
  async initConference(){
227
- if (!this.podcast || !this.isLiveReadyToRecord) return;
228
- if (this.isOctopusAndAnimator && undefined!==this.podcast.conferenceId) {
229
- const data = await crudApi.fetchData<Conference>(9,'conference/'+this.podcast.conferenceId);
230
- this.fetchConference = data ? data : {conferenceId:-1, title:''};
231
- } else if(undefined!==this.podcast.conferenceId){
232
- const data = await octopusApi.fetchData<string>(9, 'conference/realstatus/'+this.podcast.conferenceId);
233
- this.fetchConference = {
234
- status: data,
235
- conferenceId: this.podcast.conferenceId,
236
- title:'',
237
- };
235
+ if (!this.podcast || undefined==this.podcast.conferenceId) return;
236
+ if (this.isOctopusAndAnimator ) {
237
+ try {
238
+ const data = await crudApi.fetchData<Conference>(9,'conference/'+this.podcast.conferenceId);
239
+ this.fetchConference = data ? data : {conferenceId:-1, title:''};
240
+ } catch {
241
+ await this.fetchConferencePublic();
242
+ }
243
+ } else{
244
+ await this.fetchConferencePublic();
238
245
  }
239
246
  if (
240
247
  this.fetchConference &&
@@ -12,7 +12,7 @@ const state:ParamStore = {
12
12
  isPlaylist: false,
13
13
  isProduction: false,
14
14
  isContribution: true,
15
- ApiUri: 'https://api.dev2.saooti.org/',
15
+ ApiUri: 'https://api.staging.saooti.org/',
16
16
  podcastmaker: false,
17
17
  buttonPlus: true,
18
18
  allCategories: [],
@@ -26,8 +26,8 @@ const state:ParamStore = {
26
26
  SharePlayer: true,
27
27
  ShareButtons: true,
28
28
  ShareDistribution: true,
29
- MiniplayerUri: 'https://playerbeta.dev2.saooti.org/',
30
- hlsUri: 'https://hls.dev2.saooti.org/',
29
+ MiniplayerUri: 'https://playerbeta.staging.saooti.org/',
30
+ hlsUri: 'https://hls.staging.saooti.org/',
31
31
  mainRubrique: 0,
32
32
  resourceUrl: undefined,
33
33
  podcastItemShowEmission: false,
@@ -79,13 +79,13 @@ const state:ParamStore = {
79
79
  userName: '',
80
80
  },
81
81
  octopusApi: {
82
- url: 'https://api.dev2.saooti.org/',
83
- commentsUrl: 'https://comments.dev2.saooti.org/',
84
- imageUrl:'https://imageproxy.dev2.saooti.org/',
85
- studioUrl: 'https://studio.dev2.saooti.org/',
86
- playerUrl: 'https://playerbeta.dev2.saooti.org/',
87
- speechToTextUrl:'https://speech2text.dev2.saooti.org/',
88
- recoUrl: 'https://reco.dev2.saooti.org/',
82
+ url: 'https://api.staging.saooti.org/',
83
+ commentsUrl: 'https://comments.staging.saooti.org/',
84
+ imageUrl:'https://imageproxy.staging.saooti.org/',
85
+ studioUrl: 'https://studio.staging.saooti.org/',
86
+ playerUrl: 'https://playerbeta.staging.saooti.org/',
87
+ speechToTextUrl:'https://speech2text.staging.saooti.org/',
88
+ recoUrl: 'https://reco.staging.saooti.org/',
89
89
  organisationId: undefined,
90
90
  rubriqueIdFilter: undefined,
91
91
  },