@saooti/octopus-sdk 30.0.54 → 30.0.57

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/README.md CHANGED
@@ -550,4 +550,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
550
550
  * 30.0.51 Commentaires live
551
551
  * 30.0.52 Ajout rubriqueIdFilter
552
552
  * 30.0.53 Commentaires live
553
- * 30.0.54 Multiselect not reload on close
553
+ * 30.0.54 Multiselect not reload on close
554
+ * 30.0.55 Align participant img
555
+ * 30.0.56 Popover title
556
+ * 30.0.57 podcastmaker Le soir améliorations
package/index.ts CHANGED
@@ -32,6 +32,7 @@ import EmissionChooser from "./src/components/display/emission/EmissionChooser.v
32
32
  import EmissionList from "./src/components/display/emission/EmissionList.vue";
33
33
  /*import MonetizableFilter from "./src/components/display/filter/MonetizableFilter.vue";
34
34
  import ProductorSearch from "./src/components/display/filter/ProductorSearch.vue";*/
35
+ import AdvancedSearch from "./src/components/display/filter/AdvancedSearch.vue";
35
36
  import OrganisationChooser from "./src/components/display/organisation/OrganisationChooser.vue";
36
37
  /*import ParticipantItem from "./src/components/display/participant/ParticipantItem.vue";
37
38
  import ParticipantList from "./src/components/display/participant/ParticipantList.vue";
@@ -110,7 +111,8 @@ const components = {
110
111
  ClassicSearch,
111
112
  ClassicCheckbox,
112
113
  ClassicRadio,
113
- ClassicLoading
114
+ ClassicLoading,
115
+ AdvancedSearch
114
116
  }
115
117
 
116
118
  export default components;
@@ -162,5 +164,6 @@ export {
162
164
  ClassicSearch,
163
165
  ClassicCheckbox,
164
166
  ClassicRadio,
165
- ClassicLoading
167
+ ClassicLoading,
168
+ AdvancedSearch
166
169
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.54",
3
+ "version": "30.0.57",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -212,6 +212,7 @@ body{
212
212
  border-radius: 50%;
213
213
  background-size: cover;
214
214
  box-shadow: 0px 8px 26px 6px rgba(64, 163, 114, 0.3);
215
+ margin: auto;
215
216
  }
216
217
 
217
218
  .comma {
@@ -43,6 +43,7 @@
43
43
  alignLeft ? 'justify-content-start' : '',
44
44
  overflowScroll ? 'overflowScroll' : '',
45
45
  ]"
46
+ :css="isInlineAnimation"
46
47
  >
47
48
  <EmissionPlayerItem
48
49
  v-for="e in emissions"
@@ -127,7 +128,10 @@ export default defineComponent({
127
128
  },
128
129
  transitionName(): string {
129
130
  return this.direction > 0 ? 'out-left' : 'out-right';
130
- }
131
+ },
132
+ isInlineAnimation(): boolean {
133
+ return (state.generalParameters.isInlineAnimation as boolean);
134
+ },
131
135
  },
132
136
 
133
137
  watch: {
@@ -8,16 +8,12 @@
8
8
  :id="idPopover"
9
9
  tabindex="-1"
10
10
  class="saooti-help m-0"
11
- :title="$t('Help')"
11
+ :title="title"
12
12
  />
13
13
  <span class="mx-1">:</span>
14
14
  <Popover
15
15
  :target="idPopover"
16
16
  >
17
- <div class="text-center font-weight-bold">
18
- {{ title }}
19
- </div>
20
- <hr>
21
17
  <div
22
18
  v-for="participant in participants"
23
19
  :key="'desc-'+participant.participantId"
@@ -55,6 +55,7 @@
55
55
  alignLeft ? 'justify-content-start' : '',
56
56
  overflowScroll ? 'overflowScroll' : '',
57
57
  ]"
58
+ :css="isInlineAnimation"
58
59
  >
59
60
  <PodcastItem
60
61
  v-for="p in podcasts"
@@ -137,6 +138,9 @@ export default defineComponent({
137
138
  overflowScroll(): boolean {
138
139
  return (state.emissionPage.overflowScroll as boolean);
139
140
  },
141
+ isInlineAnimation(): boolean {
142
+ return (state.generalParameters.isInlineAnimation as boolean);
143
+ },
140
144
  filterOrga(): string {
141
145
  return this.$store.state.filter.organisationId;
142
146
  },
@@ -50,6 +50,9 @@ export default defineComponent({
50
50
  return (state.generalParameters.authenticated as boolean);
51
51
  },
52
52
  },
53
+ created(){
54
+ this.initColor();
55
+ },
53
56
  methods:{
54
57
  download(): void{
55
58
  const link = document.createElement('a');
@@ -62,6 +65,10 @@ export default defineComponent({
62
65
  }
63
66
  },
64
67
  async initColor(): Promise<void> {
68
+ if(state.generalParameters.podcastmaker && state.generalParameters.podcastmakerColor){
69
+ this.color = state.generalParameters.podcastmakerColor;
70
+ return;
71
+ }
65
72
  if (!this.authenticated) return;
66
73
  let data;
67
74
  if(this.$store.state.organisation && this.$store.state.organisation.attributes && Object.keys(this.$store.state.organisation.attributes).length > 1){
@@ -51,6 +51,15 @@
51
51
  :player-error="playerError"
52
52
  :listen-time="listenTime"
53
53
  />
54
+ <div
55
+ class="play-button-box primary-bg text-light"
56
+ @click="stopPlayer"
57
+ >
58
+ <div
59
+ class="saooti-cross"
60
+ :title="$t('Close')"
61
+ />
62
+ </div>
54
63
  <PlayerClockAndTimeline
55
64
  v-model:showTimeline="showTimeline"
56
65
  :comments="comments"
@@ -204,6 +213,9 @@ export default defineComponent({
204
213
  },
205
214
 
206
215
  methods: {
216
+ stopPlayer(): void {
217
+ this.$store.commit('playerPlayPodcast');
218
+ },
207
219
  getListenerId(): string{
208
220
  let listenerId = this.getCookie("octopus_listenerId");
209
221
  if(!listenerId){
@@ -23,16 +23,6 @@
23
23
  }"
24
24
  />
25
25
  </div>
26
- <div
27
- v-if="isPlaying || isPaused"
28
- class="play-button-box primary-bg text-light"
29
- @click="stopPlayer"
30
- >
31
- <div
32
- class="saooti-stop-bounty"
33
- :title="$t('Stop')"
34
- />
35
- </div>
36
26
  </template>
37
27
 
38
28
  <script lang="ts">
@@ -114,9 +104,6 @@ export default defineComponent({
114
104
  this.onPause();
115
105
  }
116
106
  },
117
- stopPlayer(): void {
118
- this.$store.commit('playerPlayPodcast');
119
- },
120
107
  onPlay(): void {
121
108
  this.$store.commit('playerPause', false);
122
109
  },
@@ -109,5 +109,8 @@ export default defineComponent({
109
109
  .popover{
110
110
  max-height: 80vh;
111
111
  overflow: auto;
112
+ hr{
113
+ width: 100px;
114
+ }
112
115
  }
113
116
  </style>
@@ -242,9 +242,7 @@ export default defineComponent({
242
242
  `" title="` +
243
243
  this.$t('Listen this episode') +
244
244
  `">
245
- <img width="44" height="44" style="display: inline-block;vertical-align: middle" src="` +
246
- this.resourcesUrl +
247
- `/img/play-podcast.png">
245
+ <img width="44" height="44" style="display: inline-block;vertical-align: middle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAAxElEQVRIie3WMWpCURBG4Q8FSRrtbC2SPhvICmzchVuwtXQLbsE2pVUIkjqQHVgqNmIj6EvxGHhFQAIvcxt/OPVhhrlzh3sKZ4MvTLLFVYNPvJYQB294LiGucMYSw2xxcMQcj9niYIsputni4BvjEuJgjZcS4goXrDDKFgcnLDDIFgd7zNDLFgfvTUHnL23ISJuV7iS3Ooarn1VxkeeUvkDSV2b6J3FQT+pDW8Jb4vRD4Kqe1Kf/Ev4mTj32PhQ6b+9pPT+XHgysHrPM6QAAAABJRU5ErkJggg=="/>
248
246
  </a>
249
247
  <a style="color: #000;text-decoration: none; margin-right:8px" href="` +
250
248
  window.location.href +
@@ -283,6 +281,9 @@ export default defineComponent({
283
281
  });
284
282
  },
285
283
  },
284
+ created(){
285
+ this.initColor();
286
+ },
286
287
  methods: {
287
288
  closePopup(event: { preventDefault: () => void }): void {
288
289
  event.preventDefault();
@@ -302,6 +303,11 @@ export default defineComponent({
302
303
  },
303
304
  afterCopy(): void{
304
305
  (this.$refs.snackbar as InstanceType<typeof SnackbarVue>).open(this.$t('Data in clipboard'));
306
+ },
307
+ initColor(): void {
308
+ if(state.generalParameters.podcastmaker && state.generalParameters.podcastmakerColor){
309
+ this.color = state.generalParameters.podcastmakerColor;
310
+ }
305
311
  }
306
312
  },
307
313
  })
@@ -18,7 +18,8 @@ const state:paramStore = {
18
18
  allCategories: [],
19
19
  isLiveTab: false,
20
20
  isCaptchaTest: true,
21
- podcastItem:13
21
+ podcastItem:13,
22
+ isInlineAnimation:true,
22
23
  },
23
24
  podcastPage: {
24
25
  EditBox: false,
@@ -108,7 +109,9 @@ export interface GeneralParameters{
108
109
  allCategories?: Array<Category>,
109
110
  isLiveTab?: boolean,
110
111
  isCaptchaTest?: boolean,
111
- podcastItem?: number
112
+ podcastItem?: number,
113
+ podcastmakerColor?: string,
114
+ isInlineAnimation?: boolean
112
115
  }
113
116
  export interface PodcastPage{
114
117
  EditBox?: boolean,