@saooti/octopus-sdk 31.0.40 → 31.0.43

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
@@ -588,7 +588,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
588
588
  * 30.0.89 Podcastmaker newest (swiper list)
589
589
  * 30.0.90 Podcastmaker newest (swiper list)
590
590
  * 30.0.91 Encore newest
591
-
591
+ * 30.0.92 Encore newest
592
+
592
593
  * 31.0.0 Passage en 31
593
594
  * 31.0.1 Ajout pocket casts
594
595
  * 31.0.2 Gestion des 403
@@ -630,4 +631,6 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
630
631
  * 31.0.38 Changement reponsive topbar
631
632
  * 31.0.39 Erreur refactor
632
633
  * 31.0.40 Erreur locale
633
-
634
+ * 31.0.41 #11220
635
+ * 31.0.42 #11222
636
+ * 31.0.43 #10963
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "31.0.40",
3
+ "version": "31.0.43",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "main": "./dist/octopus.common.js",
16
16
  "dependencies": {
17
- "@saooti/octopus-api": "^0.31.3",
17
+ "@saooti/octopus-api": "^0.31.5",
18
18
  "@vue/cli": "^5.0.4",
19
19
  "@vue/compat": "^3.2.31",
20
20
  "axios": "^0.24.0",
@@ -110,7 +110,7 @@ export default defineComponent({
110
110
  this.isCategories = 0!==length;
111
111
  },
112
112
  onRubriqueSelected(index: number, rubrique: Rubrique): void {
113
- if(!rubrique ||this.rubriqueFilter[index].rubriqueId === rubrique.rubriqueId ||rubrique.rubriqueId){
113
+ if(!rubrique ||this.rubriqueFilter[index].rubriqueId === rubrique.rubriqueId){
114
114
  return;
115
115
  }
116
116
  const filter = Array.from(this.rubriqueFilter);
@@ -11,7 +11,7 @@
11
11
  <PodcastImage
12
12
  :podcast="podcast"
13
13
  :hide-play="!podcastItemDescription || (podcastItemDescription && (!hover || !description))"
14
- :display-description="description && podcastItemDescription"
14
+ :display-description="0!==description.length && podcastItemDescription"
15
15
  :arrow-direction="arrowDirection"
16
16
  @hideDescription="hideDescription"
17
17
  @showDescription="showDescription"
@@ -37,6 +37,9 @@
37
37
  >
38
38
  {{ date }}
39
39
  </div>
40
+ <div>
41
+ {{ $t('Duration', { duration: duration }) }}
42
+ </div>
40
43
  <div
41
44
  v-if="isLiveReady"
42
45
  class="text-danger"
@@ -32,12 +32,12 @@
32
32
  </a>
33
33
  </template>
34
34
  <a
35
- v-if="''!==rssUrl"
35
+ v-if="''!==rssUrl && displayRss"
36
36
  rel="noopener"
37
37
  target="_blank"
38
38
  :class="getClass()"
39
39
  :href="rssUrl"
40
- :title="$t('Subscribe to this emission')"
40
+ :title="titleRssButton"
41
41
  @click.prevent="openPopup()"
42
42
  >
43
43
  <div class="saooti-rss-bounty" />
@@ -96,6 +96,7 @@
96
96
  </template>
97
97
 
98
98
  <script lang="ts">
99
+ import octopusApi from '@saooti/octopus-api';
99
100
  import { Emission } from '@/store/class/general/emission';
100
101
  import { Podcast } from '@/store/class/general/podcast';
101
102
  import { state } from '../../../store/paramStore';
@@ -129,9 +130,19 @@ export default defineComponent({
129
130
  dataRSSSave: false as boolean,
130
131
  newsletter: false as boolean,
131
132
  qrCode: false as boolean,
133
+ displayRss: false as boolean,
132
134
  };
133
135
  },
134
136
  computed: {
137
+ titleRssButton(): string{
138
+ if(this.participantId){
139
+ return this.$t('Subscribe to this participant');
140
+ }
141
+ if(this.emission){
142
+ return this.$t('Subscribe to this emission');
143
+ }
144
+ return this.$t('Subscribe to this RSS feed');
145
+ },
135
146
  arrayShareButtons(){
136
147
  return [
137
148
  { title: 'Facebook', icon:'saooti-facebook-bounty', nbPath:0, className:'btn-facebook', url :`https://www.facebook.com/sharer/sharer.php?u=${this.urlPage}`, condition: true},
@@ -174,6 +185,13 @@ export default defineComponent({
174
185
  return '';
175
186
  },
176
187
  },
188
+ async created(){
189
+ if(this.organisationId){
190
+ this.displayRss = await octopusApi.fetchDataPublic<boolean>(`rss/participants/allowed/${this.organisationId}`);
191
+ }else{
192
+ this.displayRss = true;
193
+ }
194
+ },
177
195
 
178
196
  methods: {
179
197
  getClass(className='btn-rss'): string{
@@ -49,9 +49,12 @@
49
49
  </template>
50
50
  <template v-if="!isEducation">
51
51
  <hr class="dropdown-divider">
52
- <template v-for="helpLink in helpLinks" :key="helpLink.title">
52
+ <template
53
+ v-for="helpLink in helpLinks"
54
+ :key="helpLink.title"
55
+ >
53
56
  <a
54
- :href="helpLink.href"
57
+ :href="helpLink.href"
55
58
  class="dropdown-item"
56
59
  rel="noopener"
57
60
  target="_blank"
@@ -83,12 +86,16 @@
83
86
  import { state } from '../../store/paramStore';
84
87
 
85
88
  import { defineComponent } from 'vue'
89
+ import { Organisation } from '@/store/class/general/organisation';
86
90
  export default defineComponent({
87
91
  name: 'HomeDropdown',
88
92
  props: {
89
93
  isEducation: { default: false, type: Boolean},
90
94
  },
91
95
  computed: {
96
+ organisationsAvailable(): Array<Organisation>{
97
+ return this.$store.state.profile.organisations?? [];
98
+ },
92
99
  helpLinks(){
93
100
  return [
94
101
  {title:this.$t('Help'), href:'https://help.octopus.saooti.com/Aide/'},
@@ -99,7 +106,7 @@ export default defineComponent({
99
106
  {title:this.$t('Upload'),class:"btn btn-primary w-100", path:'/main/priv/upload', condition: (state.generalParameters.isContribution as boolean)},
100
107
  {title:this.$t('My space'),class:"show-phone dropdown-item", path:'/main/priv/backoffice', condition: true},
101
108
  {title:this.$t('Edit my profile'),class:"dropdown-item", path:'/main/priv/edit/profile', condition: true},
102
- {title:this.$t('Edit my organisation'),class:"dropdown-item", path:'/main/priv/edit/organisation', condition: (state.generalParameters.isOrganisation as boolean)}];
109
+ {title:this.$t('Edit my organisation'),class:"dropdown-item", path:'/main/priv/edit/organisation', condition: (state.generalParameters.isOrganisation as boolean) || 1<this.organisationsAvailable.length}];
103
110
  },
104
111
 
105
112
  isPodcastmaker(): boolean {
@@ -33,6 +33,7 @@
33
33
  <ShareButtons
34
34
  v-if="pageParameters.isShareButtons"
35
35
  :participant-id="participantId"
36
+ :organisation-id="participant.orga.id"
36
37
  />
37
38
  </div>
38
39
  </div>
package/src/locale/de.ts CHANGED
@@ -115,6 +115,7 @@ export default{
115
115
  Downloading: "Wird heruntergeladen",
116
116
  'Subscribe to this emission': "Diese Reihe abonnieren",
117
117
  'Subscribe to this participant': "Diese Sprecher abonnieren",
118
+ 'Subscribe to this RSS feed': "Abonnieren Sie diesen RSS-Feed",
118
119
  'Emission have not podcasts': "In dieser Reihe gibt es keine Podcasts.",
119
120
  'Participant have not podcasts':
120
121
  "Dieser Sprecher ist keinem Podcast zugeordnet.",
package/src/locale/en.ts CHANGED
@@ -115,6 +115,7 @@ export default{
115
115
  Downloading: 'Downloading',
116
116
  'Subscribe to this emission': "Subscribe to this series",
117
117
  'Subscribe to this participant': "Subscribe to this speakers",
118
+ 'Subscribe to this RSS feed': "Subscribe to this RSS feed",
118
119
  'Emission have not podcasts': "This series does not have any podcasts",
119
120
  'Participant have not podcasts':
120
121
  'Speaker is not associated to any podcasts',
package/src/locale/es.ts CHANGED
@@ -115,6 +115,7 @@ export default{
115
115
  Downloading: 'Descargando',
116
116
  'Subscribe to this emission': "Subscríbete a este programa",
117
117
  'Subscribe to this participant': "Subscríbete a estos participantes",
118
+ 'Subscribe to this RSS feed': "Suscríbete a esta fuente RSS",
118
119
  'Emission have not podcasts': "No hay pódcast para este programa",
119
120
  'Participant have not podcasts':
120
121
  'No hay pódcast para este participante',
package/src/locale/fr.ts CHANGED
@@ -115,6 +115,7 @@ export default{
115
115
  Downloading: 'Téléchargement',
116
116
  'Subscribe to this emission': "S'abonner à cette émission",
117
117
  'Subscribe to this participant': "S'abonner à cet intervenant",
118
+ 'Subscribe to this RSS feed': "S'abonner à ce flux RSS",
118
119
  'Emission have not podcasts': "Cette émission n'a pas d'épisodes",
119
120
  'Participant have not podcasts':
120
121
  'Cet intervenant ne participe à aucun épisode',
package/src/locale/it.ts CHANGED
@@ -113,6 +113,7 @@ export default{
113
113
  Downloading: 'In download',
114
114
  'Subscribe to this emission': "Iscriviti a questa serie",
115
115
  'Subscribe to this participant': "Iscriviti a questo speaker",
116
+ 'Subscribe to this RSS feed': "Iscriviti a questo feed RSS",
116
117
  'Emission have not podcasts': "Questa serie non ha alcun podcast",
117
118
  'Participant have not podcasts':
118
119
  'Questo speaker non è associato ad alcun podcast',
package/src/locale/sl.ts CHANGED
@@ -115,6 +115,7 @@ export default{
115
115
  Downloading: 'Prenos',
116
116
  'Subscribe to this emission': "Naroči se na to oddajo",
117
117
  'Subscribe to this participant': "Naroči se na te napovedovalce",
118
+ 'Subscribe to this RSS feed': "Naroči se na ta vir RSS",
118
119
  'Emission have not podcasts': "Ta oddaja nima podkastov",
119
120
  'Participant have not podcasts':
120
121
  'Napovedovalec ni povezan z nobenim podkastom',