@saooti/octopus-sdk 41.0.17 → 41.0.18
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/CHANGELOG.md +18 -1
- package/package.json +1 -1
- package/src/components/display/emission/EmissionItem.vue +17 -6
- package/src/components/display/emission/EmissionList.vue +9 -1
- package/src/components/form/ClassicCheckbox.vue +9 -0
- package/src/components/misc/ClassicAlert.vue +9 -1
- package/src/components/misc/ClassicHelpButton.vue +3 -0
- package/src/components/misc/ClassicImageBanner.vue +33 -0
- package/src/components/misc/ErrorMessage.vue +4 -2
- package/src/components/pages/EmissionPage.vue +17 -1
- package/src/locale/de.ts +2 -0
- package/src/locale/en.ts +2 -0
- package/src/locale/es.ts +2 -0
- package/src/locale/fr.ts +2 -0
- package/src/locale/it.ts +2 -0
- package/src/locale/sl.ts +2 -0
- package/src/stores/class/general/emission.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## En cours 41.0.18 (XX/11/2025)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Changements pour les émissions non publiées (`visible = false`) :
|
|
8
|
+
- La recherche permet de les afficher quand on affiche les épisodes non
|
|
9
|
+
publiés
|
|
10
|
+
- Un bandeau s'affiche pour indiquer que l'émission n'est pas disponible aux
|
|
11
|
+
auditeurs
|
|
12
|
+
|
|
13
|
+
**Misc**
|
|
14
|
+
|
|
15
|
+
- Ajout d'une propriété `relative` pour faire fonctionner les
|
|
16
|
+
`ClassicHelpButton` quand un parent a une position relative.
|
|
17
|
+
- Correction alignement du texte dans `ClassicAlert`
|
|
18
|
+
- Ajout d'un slot `after-label` sur `ClassicCheckbox`
|
|
19
|
+
|
|
3
20
|
## 41.0.17 (07/11/2025)
|
|
4
21
|
|
|
5
22
|
**Features**
|
|
@@ -20,4 +37,4 @@
|
|
|
20
37
|
|
|
21
38
|
- Bannière 'en cours de traitement' ne s'affiche plus dans les listes
|
|
22
39
|
- Ajustements sur `ClassicSelect` & `ClassicHelpButton`
|
|
23
|
-
- Ajout de ClassicAlert
|
|
40
|
+
- Ajout de `ClassicAlert`, pour l'affichage de message
|
package/package.json
CHANGED
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
aria-hidden="true"
|
|
17
17
|
alt=""
|
|
18
18
|
:title="t('Emission name image', { name: emission.name })"
|
|
19
|
-
|
|
19
|
+
>
|
|
20
|
+
<ClassicImageBanner v-if="!emissionVisible">
|
|
21
|
+
{{ t('Emission - Not available for listeners') }}
|
|
22
|
+
</ClassicImageBanner>
|
|
23
|
+
|
|
20
24
|
<div class="classic-element-text">
|
|
21
25
|
<div class="d-flex align-items-center element-name basic-line-clamp">
|
|
22
26
|
<AlertIcon
|
|
@@ -63,12 +67,15 @@ import displayHelper from "../../../helper/displayHelper";
|
|
|
63
67
|
import { computed, onBeforeMount, onMounted, ref, useTemplateRef } from "vue";
|
|
64
68
|
import { Podcast } from "@/stores/class/general/podcast";
|
|
65
69
|
import { ListClassicReturn } from "@/stores/class/general/listReturn";
|
|
70
|
+
|
|
71
|
+
import ClassicImageBanner from '../../misc/ClassicImageBanner.vue';
|
|
72
|
+
|
|
66
73
|
import { useI18n } from "vue-i18n";
|
|
67
74
|
|
|
68
75
|
//Props
|
|
69
76
|
const props = defineProps({
|
|
70
77
|
emission: { default: () => ({}), type: Object as () => Emission },
|
|
71
|
-
})
|
|
78
|
+
});
|
|
72
79
|
|
|
73
80
|
//Data
|
|
74
81
|
const activeEmission = ref(true);
|
|
@@ -80,12 +87,16 @@ const { isPodcastmaker, isEditRights } = useOrgaComputed();
|
|
|
80
87
|
|
|
81
88
|
//Computed
|
|
82
89
|
const editRight = computed(() => isEditRights(props.emission.orga.id));
|
|
83
|
-
|
|
90
|
+
const emissionVisible = computed(() => {
|
|
91
|
+
return props.emission.visible !== false;
|
|
92
|
+
});
|
|
84
93
|
|
|
85
94
|
onBeforeMount(()=>{
|
|
86
|
-
if (!editRight.value)
|
|
95
|
+
if (!editRight.value) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
87
98
|
hasPodcast();
|
|
88
|
-
})
|
|
99
|
+
});
|
|
89
100
|
|
|
90
101
|
onMounted(()=>{
|
|
91
102
|
const emissionDesc = useTemplateRef('descriptionEmission')?.value as HTMLElement;
|
|
@@ -119,4 +130,4 @@ async function hasPodcast(): Promise<void> {
|
|
|
119
130
|
activeEmission.value = false;
|
|
120
131
|
}
|
|
121
132
|
}
|
|
122
|
-
</script>
|
|
133
|
+
</script>
|
|
@@ -190,8 +190,16 @@ async function fetchContent(reset: boolean): Promise<void> {
|
|
|
190
190
|
: undefined,
|
|
191
191
|
rubriqueId: props.rubriqueId.length ? props.rubriqueId : undefined,
|
|
192
192
|
rubriquageId: props.rubriquageId.length ? props.rubriquageId : undefined,
|
|
193
|
-
includeHidden: props.includeHidden
|
|
193
|
+
includeHidden: props.includeHidden
|
|
194
194
|
};
|
|
195
|
+
|
|
196
|
+
// When fetching hidden episodes, also fetch hidden emissions
|
|
197
|
+
if (props.includeHidden === true) {
|
|
198
|
+
param.visible = 'ALL';
|
|
199
|
+
} else {
|
|
200
|
+
param.visible = 'VISIBLE';
|
|
201
|
+
}
|
|
202
|
+
|
|
195
203
|
try {
|
|
196
204
|
const data = await classicApi.fetchData<ListClassicReturn<Emission>>({
|
|
197
205
|
api: 0,
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Simple component to display a checkbox
|
|
3
|
+
Use `v-model:text-init` to bind the value.
|
|
4
|
+
|
|
5
|
+
**Slots:**
|
|
6
|
+
`after-label` : A slot to display additional elements after the label
|
|
7
|
+
-->
|
|
1
8
|
<template>
|
|
2
9
|
<div class="d-flex flex-nowrap align-items-center octopus-form-item">
|
|
3
10
|
<div :class="isSwitch ? 'octopus-form-switch me-2' : ''">
|
|
@@ -27,6 +34,8 @@
|
|
|
27
34
|
@click="clickSlider"
|
|
28
35
|
>
|
|
29
36
|
{{ label }}
|
|
37
|
+
|
|
38
|
+
<slot name="after-label" />
|
|
30
39
|
</label>
|
|
31
40
|
</div>
|
|
32
41
|
</template>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
/>
|
|
21
21
|
|
|
22
22
|
<!-- Main content -->
|
|
23
|
-
<span class="ms-2">
|
|
23
|
+
<span class="ms-2 content">
|
|
24
24
|
<strong v-if="title">
|
|
25
25
|
{{ title }}
|
|
26
26
|
<br>
|
|
@@ -62,6 +62,8 @@ const iconComponent = computed(() => {
|
|
|
62
62
|
return Alert;
|
|
63
63
|
} else if (type === 'error') {
|
|
64
64
|
return CloseCircle;
|
|
65
|
+
} else {
|
|
66
|
+
return null;
|
|
65
67
|
}
|
|
66
68
|
});
|
|
67
69
|
</script>
|
|
@@ -76,6 +78,12 @@ const iconComponent = computed(() => {
|
|
|
76
78
|
align-items: start !important;
|
|
77
79
|
}
|
|
78
80
|
|
|
81
|
+
.content {
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
align-self: center;
|
|
85
|
+
}
|
|
86
|
+
|
|
79
87
|
$types: (
|
|
80
88
|
'success': hsl(from var(--octopus-primary) h s 45),
|
|
81
89
|
'info': var(--octopus-primary),
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
<ClassicPopover
|
|
18
18
|
:target="computedId"
|
|
19
19
|
popover-class="help-popover"
|
|
20
|
+
:relative-class="relative ? 'page-element' : ''"
|
|
20
21
|
>
|
|
21
22
|
<div class="content">
|
|
22
23
|
<slot />
|
|
@@ -33,6 +34,8 @@ import ClassicPopover from './ClassicPopover.vue';
|
|
|
33
34
|
|
|
34
35
|
const { colored, small } = defineProps<{
|
|
35
36
|
colored?: boolean;
|
|
37
|
+
/** Make the popover relative (userful when in page-element) */
|
|
38
|
+
relative?: boolean;
|
|
36
39
|
/** Make the icon smaller if true *(default: false)* */
|
|
37
40
|
small?: boolean;
|
|
38
41
|
}>();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!-- A simple component to display a blur & a banner on an image -->
|
|
2
|
+
<template>
|
|
3
|
+
<div class="blur-with-banner">
|
|
4
|
+
<div class="banner">
|
|
5
|
+
<slot />
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script setup>
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<style lang="scss" scoped>
|
|
14
|
+
.blur-with-banner {
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset: 0;
|
|
17
|
+
background-color:var(--octopus-background-transparent);
|
|
18
|
+
// Allow pointer events to go through (allow click on image beneath blur)
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
|
|
21
|
+
.banner {
|
|
22
|
+
text-align: center;
|
|
23
|
+
width: 100%;
|
|
24
|
+
font-size: 0.6rem;
|
|
25
|
+
padding: 0.2rem 0;
|
|
26
|
+
color: white;
|
|
27
|
+
background: black;
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
<div class="d-flex align-items-center bg-warning p-2 rounded my-1">
|
|
4
4
|
<AlertIcon :title="t('Warning')" class="me-1 text-danger" :size="16" />
|
|
5
5
|
<div class="text-danger">
|
|
6
|
-
{{ message }}
|
|
6
|
+
<slot>{{ message }}</slot>
|
|
7
7
|
</div>
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
|
+
|
|
11
12
|
<script setup lang="ts">
|
|
12
13
|
import AlertIcon from "vue-material-design-icons/Alert.vue";
|
|
13
14
|
import { useI18n } from "vue-i18n";
|
|
@@ -19,4 +20,5 @@ defineProps({
|
|
|
19
20
|
|
|
20
21
|
//Composables
|
|
21
22
|
const { t } = useI18n();
|
|
22
|
-
</script>
|
|
23
|
+
</script>
|
|
24
|
+
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
alt=""
|
|
26
26
|
:title="t('Emission name image', { name: name })"
|
|
27
27
|
class="img-box img-box-podcast mb-3 flex-column justify-content-start align-items-start position-relative flex-shrink-0 float-start me-3"
|
|
28
|
-
|
|
28
|
+
>
|
|
29
|
+
|
|
29
30
|
<div class="d-flex align-items-center justify-content-between">
|
|
30
31
|
<h2>{{ name }}</h2>
|
|
31
32
|
<ShareAnonymous v-if="!editRight" class="d-flex justify-content-end flex-grow-1" :emission="emission" :organisation-id="emission.orga.id"/>
|
|
@@ -36,6 +37,17 @@
|
|
|
36
37
|
v-html="urlify(description)"
|
|
37
38
|
/>
|
|
38
39
|
<!-- eslint-enable -->
|
|
40
|
+
|
|
41
|
+
<ErrorMessage v-if="emission.visible === false">
|
|
42
|
+
<div class="d-flex" style="align-items: center">
|
|
43
|
+
<div>{{ t('Emission - Not available for listeners') }}</div>
|
|
44
|
+
|
|
45
|
+
<ClassicHelpButton relative small>
|
|
46
|
+
{{ t('Emission - Not available explanation') }}
|
|
47
|
+
</ClassicHelpButton>
|
|
48
|
+
</div>
|
|
49
|
+
</ErrorMessage>
|
|
50
|
+
|
|
39
51
|
<div v-if="lastPodcast" class="d-flex align-items-center mt-3">
|
|
40
52
|
<PodcastPlayButton
|
|
41
53
|
:podcast="lastPodcast"
|
|
@@ -116,6 +128,10 @@ import { Podcast } from "@/stores/class/general/podcast";
|
|
|
116
128
|
import { useI18n } from "vue-i18n";
|
|
117
129
|
import { useRoute } from "vue-router";
|
|
118
130
|
import { useSimplePageParam } from "../composable/route/useSimplePageParam";
|
|
131
|
+
|
|
132
|
+
import ErrorMessage from "../misc/ErrorMessage.vue";
|
|
133
|
+
import ClassicHelpButton from "../misc/ClassicHelpButton.vue";
|
|
134
|
+
|
|
119
135
|
const ShareAnonymous = defineAsyncComponent(() => import("../display/sharing/ShareAnonymous.vue"));
|
|
120
136
|
const PodcastFilterList = defineAsyncComponent(
|
|
121
137
|
() => import("../display/podcasts/PodcastFilterList.vue"),
|
package/src/locale/de.ts
CHANGED
|
@@ -415,4 +415,6 @@ export default {
|
|
|
415
415
|
"Copied!":"Kopiert!",
|
|
416
416
|
"Color of the QR Code": "Farbe des QR-Codes",
|
|
417
417
|
"Silent stream":"Stiller Fluss",
|
|
418
|
+
"Emission - Not available for listeners": "Sendung für Hörer nicht sichtbar",
|
|
419
|
+
"Emission - Not available explanation": "Diese Sendung ist für Hörer nicht sichtbar, da sie so konfiguriert wurde, dass ihre Episoden nicht veröffentlicht werden. Diese Konfiguration ist in den erweiterten Einstellungen der Show verfügbar.",
|
|
418
420
|
}
|
package/src/locale/en.ts
CHANGED
|
@@ -418,4 +418,6 @@ export default {
|
|
|
418
418
|
"Copied!":"Copied!",
|
|
419
419
|
"Color of the QR Code": "Color of the QR Code",
|
|
420
420
|
"Silent stream":"Silent stream",
|
|
421
|
+
"Emission - Not available for listeners": "Broadcast not visible to listeners",
|
|
422
|
+
"Emission - Not available explanation": "This show is not visible to listeners because it has been configured so that its episodes are not published. This configuration is available in the advanced settings of the show.",
|
|
421
423
|
};
|
package/src/locale/es.ts
CHANGED
|
@@ -416,4 +416,6 @@ export default {
|
|
|
416
416
|
"Copied!":"¡Copiado!",
|
|
417
417
|
"Color of the QR Code": "Color del código QR",
|
|
418
418
|
"Silent stream":"Flujo silencioso",
|
|
419
|
+
"Emission - Not available for listeners": "Transmisión no visible para los oyentes",
|
|
420
|
+
"Emission - Not available explanation": "Este programa no es visible para los oyentes porque ha sido configurado para que sus episodios no se publiquen. Esta configuración está disponible en la configuración avanzada del programa.",
|
|
419
421
|
}
|
package/src/locale/fr.ts
CHANGED
|
@@ -425,4 +425,6 @@ export default {
|
|
|
425
425
|
"Copied!":"Copié !",
|
|
426
426
|
"Color of the QR Code": "Couleur du Qr Code",
|
|
427
427
|
"Silent stream":"Flux silencieux",
|
|
428
|
+
"Emission - Not available for listeners": "Émission non visible pour les auditeurs",
|
|
429
|
+
"Emission - Not available explanation": "Cette émission n'est pas visible pour les auditeurs car elle a été configurée pour que ses épisodes ne soient pas publiés. Cette configuration est disponible dans les paramètres avancés de l'émission."
|
|
428
430
|
};
|
package/src/locale/it.ts
CHANGED
|
@@ -412,4 +412,6 @@ export default{
|
|
|
412
412
|
"Copied!":"Copiato!",
|
|
413
413
|
"Color of the QR Code": "Colore del codice QR",
|
|
414
414
|
"Silent stream":"Flusso silenzioso",
|
|
415
|
+
"Emission - Not available for listeners": "Trasmissione non visibile agli ascoltatori",
|
|
416
|
+
"Emission - Not available explanation": "Questo programma non è visibile agli ascoltatori perché è stato configurato in modo che i suoi episodi non vengano pubblicati. Questa configurazione è disponibile nelle impostazioni avanzate dello spettacolo.",
|
|
415
417
|
};
|
package/src/locale/sl.ts
CHANGED
|
@@ -407,4 +407,6 @@ export default {
|
|
|
407
407
|
"Copied!":"Kopirano!",
|
|
408
408
|
"Color of the QR Code": "Barva kode QR",
|
|
409
409
|
"Silent stream":"Tihi tok",
|
|
410
|
+
"Emission - Not available for listeners": "Oddaja ni vidna poslušalcem",
|
|
411
|
+
"Emission - Not available explanation": "Ta oddaja ni vidna poslušalcem, ker je bila konfigurirana tako, da njene epizode niso objavljene. Ta konfiguracija je na voljo v naprednih nastavitvah oddaje.",
|
|
410
412
|
}
|
|
@@ -6,6 +6,7 @@ import { ItuneCategory } from "./ituneCategory";
|
|
|
6
6
|
export interface Emission {
|
|
7
7
|
imageUrl?: string;
|
|
8
8
|
annotations?: { [key: string]: string | number | boolean | undefined };
|
|
9
|
+
beneficiaries: string[];
|
|
9
10
|
description: string;
|
|
10
11
|
emissionId: number;
|
|
11
12
|
iabIds?: Array<number>;
|
|
@@ -26,6 +27,11 @@ export interface Emission {
|
|
|
26
27
|
};
|
|
27
28
|
createdByUserId?: string;
|
|
28
29
|
privateRssType?:string;
|
|
30
|
+
/**
|
|
31
|
+
* Indicates that this emission and its episode are visible.
|
|
32
|
+
* *Default: true*
|
|
33
|
+
*/
|
|
34
|
+
visible?: boolean;
|
|
29
35
|
}
|
|
30
36
|
|
|
31
37
|
export function emptyEmissionData(): Emission {
|