@saooti/octopus-sdk 31.0.4 → 31.0.7
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 +11 -0
- package/package.json +2 -2
- package/src/assets/bootstrap-diff.scss +6 -0
- package/src/components/display/emission/EmissionList.vue +4 -4
- package/src/components/display/filter/ProductorSearch.vue +1 -1
- package/src/components/display/organisation/OrganisationChooserLight.vue +1 -1
- package/src/components/display/podcasts/PodcastInlineList.vue +29 -7
- package/src/components/display/podcasts/PodcastItem.vue +1 -4
- package/src/components/display/podcasts/PodcastList.vue +4 -4
- package/src/components/display/podcasts/PodcastModuleBox.vue +1 -15
- package/src/components/display/sharing/ShareButtons.vue +33 -9
- package/src/components/misc/HomeDropdown.vue +7 -7
- package/src/components/misc/Player.vue +1 -1
- package/src/components/misc/PlayerProgressBar.vue +24 -18
- package/src/components/misc/modal/NewsletterModal.vue +1 -4
- package/src/components/pages/Emission.vue +1 -1
- package/src/components/pages/Participant.vue +1 -1
- package/src/components/pages/Playlist.vue +1 -1
- package/src/components/pages/Podcast.vue +1 -1
- package/src/locale/de.ts +300 -0
- package/src/locale/en.ts +8 -8
- package/src/locale/es.ts +300 -0
- package/src/locale/fr.ts +3 -3
- package/src/locale/it.ts +7 -7
- package/src/locale/messages.ts +6 -0
- package/src/locale/sl.ts +300 -0
- package/src/store/class/general/organisation.ts +1 -1
- package/src/store/class/rubrique/rubriquage.ts +1 -0
- package/src/store/class/rubrique/rubrique.ts +1 -0
- package/src/store/paramStore.ts +7 -7
package/README.md
CHANGED
|
@@ -563,12 +563,23 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
563
563
|
* 30.0.64 Modif Le soir
|
|
564
564
|
* 30.0.65 OAuthType
|
|
565
565
|
* 30.0.66 ScrollBehavior
|
|
566
|
+
* 30.0.67 Parlement européen
|
|
567
|
+
* 30.0.68 Parlement européen
|
|
568
|
+
* 30.0.69 Parlement européen
|
|
569
|
+
* 30.0.70 Améliorations 30
|
|
570
|
+
* 30.0.71 Parlement européen
|
|
571
|
+
* 30.0.72 Ajout des traductions
|
|
572
|
+
|
|
566
573
|
|
|
567
574
|
* 31.0.0 Passage en 31
|
|
568
575
|
* 31.0.1 Ajout pocket casts
|
|
569
576
|
* 31.0.2 Gestion des 403
|
|
570
577
|
* 31.0.3 Merge 30
|
|
571
578
|
* 31.0.4 Selection des customPlayers
|
|
579
|
+
* 31.0.5 Merge 30
|
|
580
|
+
* 31.0.6 Erreur de Merge 30
|
|
581
|
+
* 31.0.7 Sécurisation
|
|
582
|
+
|
|
572
583
|
|
|
573
584
|
|
|
574
585
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "31.0.
|
|
3
|
+
"version": "31.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"main": "./dist/octopus.common.js",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@popperjs/core": "^2.11.0",
|
|
18
|
-
"@saooti/octopus-api": "^0.31.
|
|
18
|
+
"@saooti/octopus-api": "^0.31.1",
|
|
19
19
|
"@vue/cli": "^5.0.0-rc.1",
|
|
20
20
|
"@vue/compat": "^3.2.26",
|
|
21
21
|
"axios": "^0.24.0",
|
|
@@ -136,13 +136,13 @@ export default defineComponent({
|
|
|
136
136
|
sortText(): string {
|
|
137
137
|
switch (this.sort) {
|
|
138
138
|
case 'SCORE':
|
|
139
|
-
return this.$t('sort by score').toString();
|
|
139
|
+
return " "+this.$t('sort by score').toString();
|
|
140
140
|
case 'LAST_PODCAST_DESC':
|
|
141
|
-
return this.$t('sort by date').toString();
|
|
141
|
+
return " "+this.$t('sort by date').toString();
|
|
142
142
|
case 'NAME':
|
|
143
|
-
return this.$t('sort by alphabetical').toString();
|
|
143
|
+
return " "+this.$t('sort by alphabetical').toString();
|
|
144
144
|
default:
|
|
145
|
-
return this.$t('sort by date').toString();
|
|
145
|
+
return " "+this.$t('sort by date').toString();
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
filterOrga(): string {
|
|
@@ -119,7 +119,7 @@ export default defineComponent({
|
|
|
119
119
|
this.keepOrganisation = false;
|
|
120
120
|
if (organisation && organisation.id) {
|
|
121
121
|
this.$emit('updateOrganisationId', organisation.id);
|
|
122
|
-
if(organisation.
|
|
122
|
+
if(organisation.privacy){
|
|
123
123
|
this.$nextTick(() => {
|
|
124
124
|
this.onKeepOrganisation();
|
|
125
125
|
});
|
|
@@ -82,7 +82,7 @@ export default defineComponent({
|
|
|
82
82
|
const data = await octopusApi.fetchOrganisation(this.value);
|
|
83
83
|
this.organisation = data;
|
|
84
84
|
this.actual = data.id;
|
|
85
|
-
this.privateOrganisation = data.
|
|
85
|
+
this.privateOrganisation = "PUBLIC"!==data.privacy;
|
|
86
86
|
this.init = true;
|
|
87
87
|
},
|
|
88
88
|
},
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
<div class="d-flex">
|
|
9
9
|
<button
|
|
10
10
|
class="btn btn-underline"
|
|
11
|
-
:class="{ active: popularSort }"
|
|
12
|
-
@click="
|
|
11
|
+
:class="{ active: !popularSort }"
|
|
12
|
+
@click="sortChrono()"
|
|
13
13
|
>
|
|
14
|
-
{{ $t('
|
|
14
|
+
{{ $t('Last added') }}
|
|
15
15
|
</button>
|
|
16
16
|
<button
|
|
17
17
|
class="btn btn-underline"
|
|
18
|
-
:class="{ active:
|
|
19
|
-
@click="
|
|
18
|
+
:class="{ active: popularSort }"
|
|
19
|
+
@click="sortPopular()"
|
|
20
20
|
>
|
|
21
|
-
{{ $t('
|
|
21
|
+
{{ $t('Most popular') }}
|
|
22
22
|
</button>
|
|
23
23
|
</div>
|
|
24
24
|
<div
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
<router-link
|
|
69
69
|
class="btn btn-link align-self-center width-fit-content m-4"
|
|
70
70
|
:to="refTo"
|
|
71
|
+
@click="handleSeeMoreButton"
|
|
71
72
|
>
|
|
72
73
|
{{ buttonText }}
|
|
73
74
|
<div
|
|
@@ -91,6 +92,7 @@ import { RubriquageFilter } from '@/store/class/rubrique/rubriquageFilter';
|
|
|
91
92
|
import { defineComponent } from 'vue'
|
|
92
93
|
import { RouteLocationRaw } from 'vue-router';
|
|
93
94
|
import { AxiosError } from 'axios';
|
|
95
|
+
import { Rubrique } from '@/store/class/rubrique/rubrique';
|
|
94
96
|
export default defineComponent({
|
|
95
97
|
name: 'PodcastInlineList',
|
|
96
98
|
|
|
@@ -126,7 +128,7 @@ export default defineComponent({
|
|
|
126
128
|
first: 0 as number,
|
|
127
129
|
size: 5 as number,
|
|
128
130
|
totalCount: 0 as number,
|
|
129
|
-
popularSort:
|
|
131
|
+
popularSort: false as boolean,
|
|
130
132
|
allPodcasts: [] as Array<Podcast>,
|
|
131
133
|
direction: 1 as number,
|
|
132
134
|
alignLeft: false as boolean,
|
|
@@ -214,6 +216,26 @@ export default defineComponent({
|
|
|
214
216
|
this.fetchNext();
|
|
215
217
|
},
|
|
216
218
|
methods: {
|
|
219
|
+
handleSeeMoreButton(event: { preventDefault: () => void; }){
|
|
220
|
+
if(!this.rubriqueId || this.noRubriquageId.length){
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
event.preventDefault();
|
|
224
|
+
const rubriqueChosenId = this.rubriqueId[this.rubriqueId.length - 1];
|
|
225
|
+
const rubriqueChosen = this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriques.find((element: Rubrique) => element.rubriqueId === rubriqueChosenId);
|
|
226
|
+
const filterToAdd = {
|
|
227
|
+
rubriquageId: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriquageId,
|
|
228
|
+
rubriqueId: rubriqueChosenId,
|
|
229
|
+
nameRubriquage: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].title,
|
|
230
|
+
nameRubrique: rubriqueChosen.name
|
|
231
|
+
};
|
|
232
|
+
const newFilter: Array<RubriquageFilter> = Array.from(this.$store.state.filter.rubriqueFilter);
|
|
233
|
+
newFilter.push(filterToAdd);
|
|
234
|
+
this.$store.commit('filterRubrique', newFilter);
|
|
235
|
+
const queries = this.$route.query;
|
|
236
|
+
const queryString = newFilter.map(value => value.rubriquageId+':'+value.rubriqueId).join();
|
|
237
|
+
this.$router.push({ name: 'podcasts',query: { ...queries, ...{ rubriquesId: queryString }} });
|
|
238
|
+
},
|
|
217
239
|
async fetchNext(): Promise<void> {
|
|
218
240
|
try {
|
|
219
241
|
const data = await octopusApi.fetchPodcasts({
|
|
@@ -128,10 +128,7 @@ export default defineComponent({
|
|
|
128
128
|
return (state.podcastsPage.podcastBorderBottom as boolean);
|
|
129
129
|
},
|
|
130
130
|
date(): string {
|
|
131
|
-
|
|
132
|
-
return moment(this.podcast.pubDate).format('D MMMM YYYY [à] HH[h]mm');
|
|
133
|
-
}
|
|
134
|
-
return moment(this.podcast.pubDate).format('D MMMM YYYY [at] HH[h]mm');
|
|
131
|
+
return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
|
|
135
132
|
},
|
|
136
133
|
displayDate(): string {
|
|
137
134
|
return moment(this.podcast.pubDate).format('X');
|
|
@@ -122,13 +122,13 @@ export default defineComponent({
|
|
|
122
122
|
sortText(): string {
|
|
123
123
|
switch (this.sortCriteria) {
|
|
124
124
|
case 'SCORE':
|
|
125
|
-
return this.$t('sort by score').toString();
|
|
125
|
+
return " "+this.$t('sort by score').toString();
|
|
126
126
|
case 'DATE':
|
|
127
|
-
return this.$t('sort by date').toString();
|
|
127
|
+
return " "+this.$t('sort by date').toString();
|
|
128
128
|
case 'NAME':
|
|
129
|
-
return this.$t('sort by alphabetical').toString();
|
|
129
|
+
return " "+this.$t('sort by alphabetical').toString();
|
|
130
130
|
default:
|
|
131
|
-
return this.$t('sort by date').toString();
|
|
131
|
+
return " "+this.$t('sort by date').toString();
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
isProduction(): boolean {
|
|
@@ -139,12 +139,6 @@
|
|
|
139
139
|
:message="$t('Podcast not validated')"
|
|
140
140
|
/>
|
|
141
141
|
</div>
|
|
142
|
-
<ShareButtons
|
|
143
|
-
v-if="isDownloadButton"
|
|
144
|
-
:podcast="podcast"
|
|
145
|
-
:big-round="true"
|
|
146
|
-
:audio-url="podcast.audioUrl"
|
|
147
|
-
/>
|
|
148
142
|
</div>
|
|
149
143
|
</div>
|
|
150
144
|
</div>
|
|
@@ -168,14 +162,12 @@ import { Podcast } from '@/store/class/general/podcast';
|
|
|
168
162
|
import { Conference } from '@/store/class/conference/conference';
|
|
169
163
|
|
|
170
164
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
|
171
|
-
const ShareButtons = defineAsyncComponent(() => import('../sharing/ShareButtons.vue'));
|
|
172
165
|
const ErrorMessage = defineAsyncComponent(() => import('../../misc/ErrorMessage.vue'));
|
|
173
166
|
export default defineComponent({
|
|
174
167
|
name: "PodcastModuleBox",
|
|
175
168
|
components: {
|
|
176
169
|
PodcastImage,
|
|
177
170
|
ParticipantDescription,
|
|
178
|
-
ShareButtons,
|
|
179
171
|
TagList,
|
|
180
172
|
ErrorMessage,
|
|
181
173
|
PodcastPlayBar
|
|
@@ -209,15 +201,9 @@ export default defineComponent({
|
|
|
209
201
|
isOuestFrance(): boolean {
|
|
210
202
|
return (state.podcastPage.ouestFranceStyle as boolean);
|
|
211
203
|
},
|
|
212
|
-
isDownloadButton(): boolean {
|
|
213
|
-
return (state.podcastPage.downloadButton as boolean);
|
|
214
|
-
},
|
|
215
204
|
date(): string {
|
|
216
205
|
if (this.podcast && 1970 !== moment(this.podcast.pubDate).year()){
|
|
217
|
-
|
|
218
|
-
return moment(this.podcast.pubDate).format('D MMMM YYYY [à] HH[h]mm');
|
|
219
|
-
}
|
|
220
|
-
return moment(this.podcast.pubDate).format('D MMMM YYYY [at] HH[h]mm');
|
|
206
|
+
return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
|
|
221
207
|
}
|
|
222
208
|
return '';
|
|
223
209
|
},
|
|
@@ -32,17 +32,18 @@
|
|
|
32
32
|
verticalDisplay ? 'd-flex-row' : '',
|
|
33
33
|
]"
|
|
34
34
|
>
|
|
35
|
-
<
|
|
36
|
-
v-if="
|
|
37
|
-
class="
|
|
35
|
+
<button
|
|
36
|
+
v-if="isDownloadButton"
|
|
37
|
+
class="text-dark"
|
|
38
|
+
:class="[
|
|
39
|
+
bigRound ? 'btn btn-big-round' : 'btn share-btn mb-2',
|
|
40
|
+
verticalDisplay ? '' : 'mx-2',
|
|
41
|
+
]"
|
|
38
42
|
:title="$t('Downloading')"
|
|
39
|
-
|
|
40
|
-
rel="noopener"
|
|
41
|
-
target="_blank"
|
|
42
|
-
download
|
|
43
|
+
@click="onDownload(podcast.audioUrl, podcast.title)"
|
|
43
44
|
>
|
|
44
45
|
<div class="saooti-download-bounty" />
|
|
45
|
-
</
|
|
46
|
+
</button>
|
|
46
47
|
<a
|
|
47
48
|
rel="noopener"
|
|
48
49
|
target="_blank"
|
|
@@ -283,6 +284,12 @@ export default defineComponent({
|
|
|
283
284
|
},
|
|
284
285
|
|
|
285
286
|
computed: {
|
|
287
|
+
isDownloadButton(): boolean{
|
|
288
|
+
return this.isDownloadButtonParam && undefined!==this.podcast && (!this.podcast.tags || !this.podcast.tags.includes('copyright'));
|
|
289
|
+
},
|
|
290
|
+
isDownloadButtonParam(): boolean {
|
|
291
|
+
return (state.podcastPage.downloadButton as boolean);
|
|
292
|
+
},
|
|
286
293
|
urlPage(): string{
|
|
287
294
|
return window.location.href;
|
|
288
295
|
},
|
|
@@ -334,7 +341,24 @@ export default defineComponent({
|
|
|
334
341
|
let check = false;
|
|
335
342
|
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent);
|
|
336
343
|
return check;
|
|
337
|
-
}
|
|
344
|
+
},
|
|
345
|
+
onDownload(urlToDownload: string, nameOfDownload: string): void{
|
|
346
|
+
const xhr = new XMLHttpRequest();
|
|
347
|
+
xhr.open('GET', urlToDownload, true);
|
|
348
|
+
xhr.responseType = 'blob';
|
|
349
|
+
xhr.onload = function() {
|
|
350
|
+
const urlCreator = window.URL || window.webkitURL;
|
|
351
|
+
const imageUrl = urlCreator.createObjectURL(this.response);
|
|
352
|
+
const tag = document.createElement('a');
|
|
353
|
+
tag.href = imageUrl;
|
|
354
|
+
tag.target = '_blank';
|
|
355
|
+
tag.download = nameOfDownload.replace(/ /g, '_');
|
|
356
|
+
document.body.appendChild(tag);
|
|
357
|
+
tag.click();
|
|
358
|
+
document.body.removeChild(tag);
|
|
359
|
+
};
|
|
360
|
+
xhr.send();
|
|
361
|
+
},
|
|
338
362
|
},
|
|
339
363
|
})
|
|
340
364
|
</script>
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
>
|
|
82
82
|
{{ $t('TutoMag') }}
|
|
83
83
|
</a>
|
|
84
|
-
<hr class="dropdown-divider">
|
|
85
|
-
<a
|
|
86
|
-
class="dropdown-item"
|
|
87
|
-
href="/sso/logout"
|
|
88
|
-
>
|
|
89
|
-
{{ $t('Logout') }}
|
|
90
|
-
</a>
|
|
91
84
|
</template>
|
|
85
|
+
<hr class="dropdown-divider">
|
|
86
|
+
<a
|
|
87
|
+
class="dropdown-item"
|
|
88
|
+
href="/sso/logout"
|
|
89
|
+
>
|
|
90
|
+
{{ $t('Logout') }}
|
|
91
|
+
</a>
|
|
92
92
|
</template>
|
|
93
93
|
</div>
|
|
94
94
|
</div>
|
|
@@ -147,24 +147,30 @@ export default defineComponent({
|
|
|
147
147
|
|
|
148
148
|
<style lang="scss">
|
|
149
149
|
.octopus-app{
|
|
150
|
-
.player-grow-content {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
150
|
+
.player-grow-content {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
flex-grow: 1;
|
|
154
|
+
flex-shrink: 1;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
font-size: 0.8rem;
|
|
157
|
+
.progress {
|
|
158
|
+
height: 4px;
|
|
159
|
+
position: relative;
|
|
160
|
+
@media (max-width: 960px) {
|
|
161
|
+
height: 8px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.progress-bar-duration {
|
|
165
|
+
width: 10px;
|
|
166
|
+
}
|
|
167
|
+
.progress-bar {
|
|
168
|
+
height: 4px;
|
|
169
|
+
position: absolute;
|
|
170
|
+
@media (max-width: 960px) {
|
|
171
|
+
height: 8px;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
167
174
|
}
|
|
168
175
|
}
|
|
169
|
-
}
|
|
170
176
|
</style>
|
|
@@ -258,10 +258,7 @@ export default defineComponent({
|
|
|
258
258
|
|
|
259
259
|
date(): string {
|
|
260
260
|
if (1970 !== moment(this.podcast.pubDate).year()){
|
|
261
|
-
|
|
262
|
-
return moment(this.podcast.pubDate).format('D MMMM YYYY [à] HH[h]mm');
|
|
263
|
-
}
|
|
264
|
-
return moment(this.podcast.pubDate).format('D MMMM YYYY [at] HH[h]mm');
|
|
261
|
+
return moment(this.podcast.pubDate).format('D MMMM YYYY, HH[h]mm');
|
|
265
262
|
}
|
|
266
263
|
return '';
|
|
267
264
|
},
|
|
@@ -246,7 +246,7 @@ export default defineComponent({
|
|
|
246
246
|
try {
|
|
247
247
|
const data: Emission = await octopusApi.fetchEmission(this.emissionId);
|
|
248
248
|
this.emission = data;
|
|
249
|
-
if(this.emission.orga.
|
|
249
|
+
if("PUBLIC"!==this.emission.orga.privacy && this.filterOrga!==this.emission.orga.id){
|
|
250
250
|
this.initError();
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
@@ -186,7 +186,7 @@ export default defineComponent({
|
|
|
186
186
|
this.loaded = false;
|
|
187
187
|
try {
|
|
188
188
|
const data = await octopusApi.fetchParticipant(this.participantId ? this.participantId.toString(): "");
|
|
189
|
-
if(data && data.orga && data.orga.
|
|
189
|
+
if(data && data.orga && "PUBLIC"!==data.orga.privacy && this.filterOrga!==data.orga.id){
|
|
190
190
|
this.initError();
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
@@ -143,7 +143,7 @@ export default defineComponent({
|
|
|
143
143
|
this.error = false;
|
|
144
144
|
const data: Playlist = await octopusApi.fetchPlaylist(this.playlistId ? this.playlistId.toString(): "");
|
|
145
145
|
this.playlist = data;
|
|
146
|
-
if(this.playlist.organisation.
|
|
146
|
+
if("PUBLIC"!==this.playlist.organisation.privacy && this.filterOrga!==this.playlist.organisation.id){
|
|
147
147
|
this.initError();
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
@@ -327,7 +327,7 @@ export default defineComponent({
|
|
|
327
327
|
async getPodcastDetails(podcastId: number): Promise<void> {
|
|
328
328
|
try {
|
|
329
329
|
const data : Podcast = await octopusApi.fetchPodcast(podcastId.toString());
|
|
330
|
-
if(data.organisation.
|
|
330
|
+
if("PUBLIC"!==data.organisation.privacy && this.filterOrga!==data.organisation.id){
|
|
331
331
|
this.initError();
|
|
332
332
|
return;
|
|
333
333
|
}
|