@saooti/octopus-sdk 34.0.8 → 34.0.10
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 +1 -1
- package/src/components/display/sharing/ShareButtons.vue +2 -2
- package/src/components/display/sharing/ShareButtonsIntern.vue +5 -10
- package/src/components/misc/Popover.vue +6 -0
- package/src/components/pages/Emission.vue +1 -1
- package/src/components/pages/Participant.vue +1 -0
- package/src/components/pages/Playlist.vue +1 -0
- package/src/components/pages/Podcast.vue +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="module-box text-center-mobile">
|
|
3
3
|
<template
|
|
4
|
-
v-if="
|
|
4
|
+
v-if="!isVertical"
|
|
5
5
|
>
|
|
6
6
|
<div class="d-flex mb-2">
|
|
7
7
|
<h3 class="mb-0">
|
|
@@ -69,7 +69,7 @@ export default defineComponent({
|
|
|
69
69
|
playlist: { default: undefined, type: Object as ()=>Playlist},
|
|
70
70
|
participantId: { default: undefined, type: Number},
|
|
71
71
|
organisationId: { default: undefined, type: String},
|
|
72
|
-
|
|
72
|
+
isVertical: { default: false, type: Boolean},
|
|
73
73
|
},
|
|
74
74
|
computed: {
|
|
75
75
|
authenticated(): boolean {
|
|
@@ -111,7 +111,7 @@ export default defineComponent({
|
|
|
111
111
|
playlist: { default: undefined, type: Object as ()=>Playlist},
|
|
112
112
|
participantId: { default: undefined, type: Number},
|
|
113
113
|
organisationId: { default: undefined, type: String},
|
|
114
|
-
|
|
114
|
+
isVertical: { default: false, type: Boolean},
|
|
115
115
|
},
|
|
116
116
|
|
|
117
117
|
data() {
|
|
@@ -149,14 +149,6 @@ export default defineComponent({
|
|
|
149
149
|
urlPage(): string{
|
|
150
150
|
return window.location.href;
|
|
151
151
|
},
|
|
152
|
-
verticalDisplay(): boolean {
|
|
153
|
-
return (
|
|
154
|
-
!this.authenticated &&
|
|
155
|
-
!this.participantId &&
|
|
156
|
-
!this.organisationId &&
|
|
157
|
-
!this.notExclusive
|
|
158
|
-
);
|
|
159
|
-
},
|
|
160
152
|
authenticated(): boolean {
|
|
161
153
|
return (state.generalParameters.authenticated as boolean);
|
|
162
154
|
},
|
|
@@ -171,6 +163,9 @@ export default defineComponent({
|
|
|
171
163
|
if (this.organisationId){
|
|
172
164
|
return api +'productor/' + this.organisationId + '.rss';
|
|
173
165
|
}
|
|
166
|
+
if(this.playlist){
|
|
167
|
+
return api +'playlist/' + this.playlist.playlistId + '.rss';
|
|
168
|
+
}
|
|
174
169
|
return '';
|
|
175
170
|
},
|
|
176
171
|
},
|
|
@@ -185,7 +180,7 @@ export default defineComponent({
|
|
|
185
180
|
methods: {
|
|
186
181
|
getClass(className='btn-rss'): string{
|
|
187
182
|
let returnString = `btn ${className} share-btn mb-2 text-dark`;
|
|
188
|
-
returnString+= this.
|
|
183
|
+
returnString+= this.isVertical ? '' : ' mx-2';
|
|
189
184
|
return returnString;
|
|
190
185
|
},
|
|
191
186
|
openPopup(): void {
|
|
@@ -101,6 +101,12 @@ export default defineComponent({
|
|
|
101
101
|
let parentScrollTop = 0;
|
|
102
102
|
if(this.relativeClass){
|
|
103
103
|
const modalBody = document.getElementsByClassName(this.relativeClass)[0];
|
|
104
|
+
if(undefined===modalBody){
|
|
105
|
+
(this.$refs.popover as HTMLElement).style.display = 'block';
|
|
106
|
+
this.posX = 0;
|
|
107
|
+
this.posY = 0;
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
104
110
|
const modalBodyRect = modalBody.getBoundingClientRect();
|
|
105
111
|
parentLeft = modalBodyRect.left;
|
|
106
112
|
parentRight = modalBodyRect.right;
|