@saooti/octopus-sdk 37.0.57 → 37.0.58
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/emission/EmissionPlayerItem.vue +5 -3
- package/src/components/display/podcasts/PodcastItemInfo.vue +8 -3
- package/src/components/display/podcasts/PodcastModuleBox.vue +7 -1
- package/src/components/display/podcasts/PodcastPlayBar.vue +1 -5
- package/src/components/display/podcasts/TagList.vue +7 -3
- package/src/components/display/sharing/ShareButtonsIntern.vue +15 -5
- package/src/components/display/sharing/ShareDistribution.vue +12 -4
- package/src/components/misc/LeftMenu.vue +1 -1
- package/src/components/misc/TopBar.vue +1 -1
- package/src/stores/ParamSdkStore.ts +5 -5
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
{{ p.title }}
|
|
60
60
|
</div>
|
|
61
61
|
</router-link>
|
|
62
|
-
<PodcastPlayBar :podcast-id="p.podcastId" :duration="p.duration" />
|
|
62
|
+
<PodcastPlayBar v-else :podcast-id="p.podcastId" :duration="p.duration" />
|
|
63
63
|
</div>
|
|
64
64
|
<button
|
|
65
65
|
v-if="
|
|
@@ -99,13 +99,15 @@ import octopusApi from "@saooti/octopus-api";
|
|
|
99
99
|
import { Emission } from "@/stores/class/general/emission";
|
|
100
100
|
import { Podcast } from "@/stores/class/general/podcast";
|
|
101
101
|
import { state } from "../../../stores/ParamSdkStore";
|
|
102
|
-
import PodcastPlayBar from "../podcasts/PodcastPlayBar.vue";
|
|
103
102
|
import imageProxy from "../../mixins/imageProxy";
|
|
104
103
|
import displayMethods from "../../mixins/displayMethods";
|
|
105
104
|
import { usePlayerStore } from "@/stores/PlayerStore";
|
|
106
105
|
import { useFilterStore } from "@/stores/FilterStore";
|
|
107
106
|
import { mapState, mapActions } from "pinia";
|
|
108
|
-
import { defineComponent } from "vue";
|
|
107
|
+
import { defineAsyncComponent, defineComponent } from "vue";
|
|
108
|
+
const PodcastPlayBar = defineAsyncComponent(
|
|
109
|
+
() => import("../podcasts/PodcastPlayBar.vue"),
|
|
110
|
+
);
|
|
109
111
|
export default defineComponent({
|
|
110
112
|
name: "EmissionPlayerItem",
|
|
111
113
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
>
|
|
14
14
|
{{ title }}
|
|
15
15
|
</router-link>
|
|
16
|
-
<PodcastPlayBar :podcast-id="podcastId" :duration="duration" class="mx-2" />
|
|
16
|
+
<PodcastPlayBar v-if="isProgressBar" :podcast-id="podcastId" :duration="duration" class="mx-2" />
|
|
17
17
|
|
|
18
18
|
<div class="mx-2 d-flex align-items-center justify-content-between mt-2">
|
|
19
19
|
<div v-if="isPodcastmaker" class="useless-div-for-podcastmaker" />
|
|
@@ -42,9 +42,11 @@ import AnimatorsItem from "./AnimatorsItem.vue";
|
|
|
42
42
|
import { state } from "../../../stores/ParamSdkStore";
|
|
43
43
|
import { orgaComputed } from "../../mixins/orgaComputed";
|
|
44
44
|
import dayjs from "dayjs";
|
|
45
|
-
import
|
|
46
|
-
import { defineComponent } from "vue";
|
|
45
|
+
import { defineAsyncComponent, defineComponent } from "vue";
|
|
47
46
|
import { Participant } from "@/stores/class/general/participant";
|
|
47
|
+
const PodcastPlayBar = defineAsyncComponent(
|
|
48
|
+
() => import("./PodcastPlayBar.vue"),
|
|
49
|
+
);
|
|
48
50
|
export default defineComponent({
|
|
49
51
|
name: "PodcastItemInfo",
|
|
50
52
|
|
|
@@ -66,6 +68,9 @@ export default defineComponent({
|
|
|
66
68
|
},
|
|
67
69
|
|
|
68
70
|
computed: {
|
|
71
|
+
isProgressBar(): boolean {
|
|
72
|
+
return state.emissionsPage.progressBar as boolean;
|
|
73
|
+
},
|
|
69
74
|
isPodcastmaker(): boolean {
|
|
70
75
|
return state.generalParameters.podcastmaker as boolean;
|
|
71
76
|
},
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
:is-guest="true"
|
|
94
94
|
/>
|
|
95
95
|
<PodcastPlayBar
|
|
96
|
+
v-if="isProgressBar"
|
|
96
97
|
:podcast-id="podcast.podcastId"
|
|
97
98
|
:duration="podcast.duration"
|
|
98
99
|
/>
|
|
@@ -129,7 +130,6 @@
|
|
|
129
130
|
</template>
|
|
130
131
|
|
|
131
132
|
<script lang="ts">
|
|
132
|
-
import PodcastPlayBar from "./PodcastPlayBar.vue";
|
|
133
133
|
import PodcastImage from "./PodcastImage.vue";
|
|
134
134
|
import ParticipantDescription from "./ParticipantDescription.vue";
|
|
135
135
|
import TagList from "./TagList.vue";
|
|
@@ -152,6 +152,9 @@ const RecordingItemButton = defineAsyncComponent(
|
|
|
152
152
|
const EditBox = defineAsyncComponent(
|
|
153
153
|
() => import("@/components/display/edit/EditBox.vue"),
|
|
154
154
|
);
|
|
155
|
+
const PodcastPlayBar = defineAsyncComponent(
|
|
156
|
+
() => import("./PodcastPlayBar.vue"),
|
|
157
|
+
);
|
|
155
158
|
export default defineComponent({
|
|
156
159
|
name: "PodcastModuleBox",
|
|
157
160
|
components: {
|
|
@@ -187,6 +190,9 @@ export default defineComponent({
|
|
|
187
190
|
isPodcastmaker(): boolean {
|
|
188
191
|
return state.generalParameters.podcastmaker as boolean;
|
|
189
192
|
},
|
|
193
|
+
isProgressBar(): boolean {
|
|
194
|
+
return state.emissionsPage.progressBar as boolean;
|
|
195
|
+
},
|
|
190
196
|
date(): string {
|
|
191
197
|
if (!this.podcast || 1970 === dayjs(this.podcast.pubDate).year()) {
|
|
192
198
|
return "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div class="d-flex align-items-center podcast-play-bar">
|
|
3
3
|
<div class="me-2">
|
|
4
4
|
{{ playedTime }}
|
|
5
5
|
</div>
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
import ProgressBar from "../../misc/ProgressBar.vue";
|
|
21
21
|
import DurationHelper from "../../../helper/duration";
|
|
22
22
|
import displayMethods from "../../mixins/displayMethods";
|
|
23
|
-
import { state } from "../../../stores/ParamSdkStore";
|
|
24
23
|
import { usePlayerStore } from "@/stores/PlayerStore";
|
|
25
24
|
import { mapState, mapActions } from "pinia";
|
|
26
25
|
import { defineComponent } from "vue";
|
|
@@ -40,9 +39,6 @@ export default defineComponent({
|
|
|
40
39
|
"playerElapsed",
|
|
41
40
|
"playerTotal",
|
|
42
41
|
]),
|
|
43
|
-
isProgressBar(): boolean {
|
|
44
|
-
return state.emissionsPage.progressBar as boolean;
|
|
45
|
-
},
|
|
46
42
|
percentProgress(): number {
|
|
47
43
|
if (this.podcastId !== this.playerPodcast?.podcastId) {
|
|
48
44
|
return 0;
|
|
@@ -34,9 +34,13 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script lang="ts">
|
|
37
|
-
import
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
import { defineAsyncComponent, defineComponent } from "vue";
|
|
38
|
+
const ClassicPopover = defineAsyncComponent(
|
|
39
|
+
() => import("../../misc/ClassicPopover.vue"),
|
|
40
|
+
);
|
|
41
|
+
const tagOfMixins = defineAsyncComponent(
|
|
42
|
+
() => import("../../mixins/tagOfMixins"),
|
|
43
|
+
);
|
|
40
44
|
export default defineComponent({
|
|
41
45
|
name: "TagList",
|
|
42
46
|
components: {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
:url-page="urlPage"
|
|
101
101
|
@close="qrCode = false"
|
|
102
102
|
/>
|
|
103
|
-
<SnackBar ref="snackbar" position="bottom-left" />
|
|
103
|
+
<SnackBar v-if="lazyLoadingSnackbar" ref="snackbar" position="bottom-left" />
|
|
104
104
|
</div>
|
|
105
105
|
</template>
|
|
106
106
|
|
|
@@ -111,7 +111,6 @@ import octopusApi from "@saooti/octopus-api";
|
|
|
111
111
|
import { Emission } from "@/stores/class/general/emission";
|
|
112
112
|
import { Podcast } from "@/stores/class/general/podcast";
|
|
113
113
|
import { state } from "../../../stores/ParamSdkStore";
|
|
114
|
-
import SnackBar from "../../misc/SnackBar.vue";
|
|
115
114
|
import displayMethods from "../../mixins/displayMethods";
|
|
116
115
|
import { defineComponent, defineAsyncComponent } from "vue";
|
|
117
116
|
import { Playlist } from "@/stores/class/general/playlist";
|
|
@@ -124,6 +123,9 @@ const NewsletterModal = defineAsyncComponent(
|
|
|
124
123
|
const QrCodeModal = defineAsyncComponent(
|
|
125
124
|
() => import("../../misc/modal/QrCodeModal.vue"),
|
|
126
125
|
);
|
|
126
|
+
const SnackBar = defineAsyncComponent(
|
|
127
|
+
() => import("../../misc/SnackBar.vue"),
|
|
128
|
+
);
|
|
127
129
|
export default defineComponent({
|
|
128
130
|
components: {
|
|
129
131
|
ClipboardModal,
|
|
@@ -150,6 +152,7 @@ export default defineComponent({
|
|
|
150
152
|
newsletter: false as boolean,
|
|
151
153
|
qrCode: false as boolean,
|
|
152
154
|
displayRss: false as boolean,
|
|
155
|
+
lazyLoadingSnackbar: false as boolean,
|
|
153
156
|
};
|
|
154
157
|
},
|
|
155
158
|
computed: {
|
|
@@ -237,9 +240,16 @@ export default defineComponent({
|
|
|
237
240
|
this.dataRSSSave = !this.dataRSSSave;
|
|
238
241
|
},
|
|
239
242
|
afterCopy(): void {
|
|
240
|
-
(this
|
|
241
|
-
this
|
|
242
|
-
|
|
243
|
+
if(!this.lazyLoadingSnackbar){
|
|
244
|
+
this.lazyLoadingSnackbar = true;
|
|
245
|
+
setTimeout(() => {
|
|
246
|
+
this.afterCopy();
|
|
247
|
+
}, 500);
|
|
248
|
+
}else{
|
|
249
|
+
(this.$refs.snackbar as InstanceType<typeof SnackBar>).open(
|
|
250
|
+
this.$t("Link in clipboard"),
|
|
251
|
+
);
|
|
252
|
+
}
|
|
243
253
|
},
|
|
244
254
|
},
|
|
245
255
|
});
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span :class="platform.icon" />{{ platform.title }}
|
|
28
28
|
</router-link>
|
|
29
29
|
</div>
|
|
30
|
-
<SnackBar ref="snackbar" position="bottom-left" />
|
|
30
|
+
<SnackBar v-if="lazyLoadingSnackbar" ref="snackbar" position="bottom-left" />
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
|
|
@@ -56,6 +56,7 @@ export default defineComponent({
|
|
|
56
56
|
return {
|
|
57
57
|
emission: undefined as Emission | undefined,
|
|
58
58
|
rss: "" as string,
|
|
59
|
+
lazyLoadingSnackbar: false as boolean,
|
|
59
60
|
};
|
|
60
61
|
},
|
|
61
62
|
computed: {
|
|
@@ -128,9 +129,16 @@ export default defineComponent({
|
|
|
128
129
|
this.rss = `${state.octopusApi.url}rss/emission/${this.emissionId}.rss`;
|
|
129
130
|
},
|
|
130
131
|
afterCopy(): void {
|
|
131
|
-
(this
|
|
132
|
-
this
|
|
133
|
-
|
|
132
|
+
if(!this.lazyLoadingSnackbar){
|
|
133
|
+
this.lazyLoadingSnackbar = true;
|
|
134
|
+
setTimeout(() => {
|
|
135
|
+
this.afterCopy();
|
|
136
|
+
}, 500);
|
|
137
|
+
}else{
|
|
138
|
+
(this.$refs.snackbar as InstanceType<typeof SnackBar>).open(
|
|
139
|
+
this.$t("Link in clipboard"),
|
|
140
|
+
);
|
|
141
|
+
}
|
|
134
142
|
},
|
|
135
143
|
},
|
|
136
144
|
});
|
|
@@ -3,15 +3,15 @@ import { Category } from "./class/general/category";
|
|
|
3
3
|
|
|
4
4
|
const state: ParamStore = {
|
|
5
5
|
generalParameters: {
|
|
6
|
-
organisationId: /* "
|
|
7
|
-
authenticated:
|
|
8
|
-
isAdmin:
|
|
9
|
-
isRoleLive:
|
|
6
|
+
organisationId: undefined/* "ecbd98d9-79bd-4312-ad5e-fc7c1c4a191c" */,
|
|
7
|
+
authenticated: false,
|
|
8
|
+
isAdmin: false,
|
|
9
|
+
isRoleLive: false,
|
|
10
10
|
isCommments: false,
|
|
11
11
|
isOrganisation: false,
|
|
12
12
|
isPlaylist: false,
|
|
13
13
|
isProduction: false,
|
|
14
|
-
isContribution:
|
|
14
|
+
isContribution: false,
|
|
15
15
|
ApiUri: "https://api.dev2.saooti.org/",
|
|
16
16
|
podcastmaker: false,
|
|
17
17
|
buttonPlus: true,
|