@saooti/octopus-sdk 34.0.5 → 34.0.6
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/podcasts/PodcastImage.vue +1 -0
- package/src/components/misc/player/PlayerCompact.vue +3 -3
- package/src/components/pages/Home.vue +0 -18
- package/src/locale/de.ts +1 -0
- package/src/locale/en.ts +1 -0
- package/src/locale/es.ts +1 -0
- package/src/locale/fr.ts +1 -0
- package/src/locale/it.ts +1 -0
- package/src/locale/sl.ts +1 -0
- package/src/store/ApiStore.ts +33 -0
- package/src/store/AppStore.ts +69 -65
- package/src/store/classStore/typeApiStore.ts +43 -0
- package/src/store/classStore/typeAppStore.ts +3 -1
- package/src/store/paramStore.ts +10 -10
package/package.json
CHANGED
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
/>
|
|
66
66
|
</div>
|
|
67
67
|
<button
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
class="
|
|
68
|
+
:title="''!=transcriptText ? $t('View transcript'): $t('Enlarge')"
|
|
69
|
+
class="btn play-button-box btn-transparent text-light"
|
|
70
|
+
:class="''!=transcriptText ? 'saooti-text-to-speech':'saooti-up'"
|
|
71
71
|
@click="changePlayerLargeVersion"
|
|
72
72
|
/>
|
|
73
73
|
<button
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page-box">
|
|
3
|
-
<button @click="playRadio">Radio</button>
|
|
4
|
-
<button @click="playRadioBis">RadioBis</button>
|
|
5
3
|
<template v-if="0 === rubriquageFilter.length">
|
|
6
4
|
<PodcastInlineList
|
|
7
5
|
v-for="c in categories"
|
|
@@ -90,22 +88,6 @@ export default defineComponent({
|
|
|
90
88
|
}
|
|
91
89
|
this.rubriqueId = rubriqueId;
|
|
92
90
|
},
|
|
93
|
-
playRadio(){
|
|
94
|
-
this.$store.commit('player/playPodcast', {
|
|
95
|
-
canalId: 3,
|
|
96
|
-
url: "https://c6884219-e191-45ec-a931-6f34683c6ac7.stream.dev2.saooti.org/live.m3u8",
|
|
97
|
-
metadata : ""
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
playRadioBis(){
|
|
102
|
-
this.$store.commit('player/playPodcast', {
|
|
103
|
-
canalId: 1,
|
|
104
|
-
url: "https://79a52b6b-8475-42f9-9c48-7f7460202649.stream.dev2.saooti.org/live.m3u8",
|
|
105
|
-
metadata : ""
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
}
|
|
109
91
|
}
|
|
110
92
|
})
|
|
111
93
|
</script>
|
package/src/locale/de.ts
CHANGED
package/src/locale/en.ts
CHANGED
package/src/locale/es.ts
CHANGED
package/src/locale/fr.ts
CHANGED
package/src/locale/it.ts
CHANGED
package/src/locale/sl.ts
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApiState, getDefaultApiState } from './classStore/typeApiStore';
|
|
2
|
+
import { Module, MutationTree } from 'vuex';
|
|
3
|
+
import { StoreState } from './classStore/typeAppStore';
|
|
4
|
+
const mutations = <MutationTree<ApiState>>{
|
|
5
|
+
init(state, apiUrls: ApiState) {
|
|
6
|
+
state.apiUrl= apiUrls.apiUrl;
|
|
7
|
+
state.commentUrl= apiUrls.commentUrl;
|
|
8
|
+
state.frontendUrl= apiUrls.frontendUrl;
|
|
9
|
+
state.ftpUrl= apiUrls.ftpUrl;
|
|
10
|
+
state.hlsUrl= apiUrls.hlsUrl;
|
|
11
|
+
state.imageUrl= apiUrls.imageUrl;
|
|
12
|
+
state.keycloakUrl= apiUrls.keycloakUrl;
|
|
13
|
+
state.mediaUrl= apiUrls.mediaUrl;
|
|
14
|
+
state.miniplayerUrl= apiUrls.miniplayerUrl;
|
|
15
|
+
state.processorUrl= apiUrls.processorUrl;
|
|
16
|
+
state.recoUrl= apiUrls.recoUrl;
|
|
17
|
+
state.radioUrl= apiUrls.radioUrl;
|
|
18
|
+
state.rssUrl= apiUrls.rssUrl;
|
|
19
|
+
state.rtmpUrl= apiUrls.rtmpUrl;
|
|
20
|
+
state.speechToTextUrl= apiUrls.speechToTextUrl;
|
|
21
|
+
state.studioUrl= apiUrls.studioUrl;
|
|
22
|
+
state.videoMakerUrl= apiUrls.videoMakerUrl;
|
|
23
|
+
state.storageUrl= apiUrls.storageUrl;
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const ApiModule: Module<ApiState, StoreState> = {
|
|
28
|
+
namespaced: true,
|
|
29
|
+
state: getDefaultApiState(),
|
|
30
|
+
mutations: mutations,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default ApiModule;
|
package/src/store/AppStore.ts
CHANGED
|
@@ -1,72 +1,76 @@
|
|
|
1
|
-
import { createStore } from 'vuex'
|
|
2
|
-
import
|
|
1
|
+
import { createStore, MutationTree } from 'vuex';
|
|
2
|
+
import ApiStore from '@/store/ApiStore';
|
|
3
3
|
import PlayerStore from '@/store/PlayerStore';
|
|
4
|
+
import { AppStoreData, StoreState } from './classStore/typeAppStore';
|
|
5
|
+
|
|
6
|
+
const mutations = <MutationTree<StoreState>>{
|
|
7
|
+
categoriesSet(state, categories) {
|
|
8
|
+
state.categories = categories;
|
|
9
|
+
},
|
|
10
|
+
categoriesOrgaSet(state, categories) {
|
|
11
|
+
state.categoriesOrga = categories;
|
|
12
|
+
},
|
|
13
|
+
filterOrga(state, filter) {
|
|
14
|
+
state.filter.organisationId = filter.orgaId;
|
|
15
|
+
if (filter.imgUrl || !filter.orgaId) {
|
|
16
|
+
state.filter.imgUrl = filter.imgUrl;
|
|
17
|
+
}
|
|
18
|
+
if (filter.name || !filter.orgaId) {
|
|
19
|
+
state.filter.name = filter.name;
|
|
20
|
+
}
|
|
21
|
+
if(filter.rubriquageArray){
|
|
22
|
+
state.filter.rubriquageArray = filter.rubriquageArray;
|
|
23
|
+
}
|
|
24
|
+
state.filter.live = filter.isLive;
|
|
25
|
+
state.filter.iab = undefined;
|
|
26
|
+
},
|
|
27
|
+
filterIab(state, iab) {
|
|
28
|
+
state.filter.iab = iab;
|
|
29
|
+
},
|
|
30
|
+
filterRubrique(state, rubriqueFilter) {
|
|
31
|
+
state.filter.rubriqueFilter = rubriqueFilter;
|
|
32
|
+
},
|
|
33
|
+
filterRubriqueDisplay(state, rubriques) {
|
|
34
|
+
state.filter.rubriqueDisplay = rubriques;
|
|
35
|
+
},
|
|
36
|
+
filterMedia(state, filter) {
|
|
37
|
+
if (filter.type) {
|
|
38
|
+
state.filter.typeMedia = filter.type;
|
|
39
|
+
}
|
|
40
|
+
if (filter.order) {
|
|
41
|
+
state.filter.sortOrder = filter.order;
|
|
42
|
+
}
|
|
43
|
+
if (filter.field) {
|
|
44
|
+
state.filter.sortField = filter.field;
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
initFilter(state, data) {
|
|
48
|
+
state.filter = {
|
|
49
|
+
...state.filter,
|
|
50
|
+
...data,
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
liveUpdate(state, isBeforeLive) {
|
|
54
|
+
state.liveUpdate.isBeforeLive = isBeforeLive;
|
|
55
|
+
},
|
|
56
|
+
setCommentIdentity(state, identity) {
|
|
57
|
+
state.comments.knownIdentity = identity;
|
|
58
|
+
},
|
|
59
|
+
setCommentLoaded(state, data) {
|
|
60
|
+
state.comments.actualPodcastId = data.podcastId;
|
|
61
|
+
state.comments.loadedComments = data.comments;
|
|
62
|
+
},
|
|
63
|
+
isEducation(state, isEducation) {
|
|
64
|
+
state.general.education = isEducation;
|
|
65
|
+
state.general.logoUrl = '/img/logo_education.webp';
|
|
66
|
+
state.general.metaTitle = 'RadioEducation.org';
|
|
67
|
+
},
|
|
68
|
+
};
|
|
4
69
|
export default createStore({
|
|
5
70
|
state: AppStoreData(),
|
|
6
71
|
modules: {
|
|
72
|
+
api : ApiStore,
|
|
7
73
|
player: PlayerStore
|
|
8
74
|
},
|
|
9
|
-
mutations:
|
|
10
|
-
categoriesSet(state, categories) {
|
|
11
|
-
state.categories = categories;
|
|
12
|
-
},
|
|
13
|
-
categoriesOrgaSet(state, categories) {
|
|
14
|
-
state.categoriesOrga = categories;
|
|
15
|
-
},
|
|
16
|
-
filterOrga(state, filter) {
|
|
17
|
-
state.filter.organisationId = filter.orgaId;
|
|
18
|
-
if (filter.imgUrl || !filter.orgaId) {
|
|
19
|
-
state.filter.imgUrl = filter.imgUrl;
|
|
20
|
-
}
|
|
21
|
-
if (filter.name || !filter.orgaId) {
|
|
22
|
-
state.filter.name = filter.name;
|
|
23
|
-
}
|
|
24
|
-
if(filter.rubriquageArray){
|
|
25
|
-
state.filter.rubriquageArray = filter.rubriquageArray;
|
|
26
|
-
}
|
|
27
|
-
state.filter.live = filter.isLive;
|
|
28
|
-
state.filter.iab = undefined;
|
|
29
|
-
},
|
|
30
|
-
filterIab(state, iab) {
|
|
31
|
-
state.filter.iab = iab;
|
|
32
|
-
},
|
|
33
|
-
filterRubrique(state, rubriqueFilter) {
|
|
34
|
-
state.filter.rubriqueFilter = rubriqueFilter;
|
|
35
|
-
},
|
|
36
|
-
filterRubriqueDisplay(state, rubriques) {
|
|
37
|
-
state.filter.rubriqueDisplay = rubriques;
|
|
38
|
-
},
|
|
39
|
-
filterMedia(state, filter) {
|
|
40
|
-
if (filter.type) {
|
|
41
|
-
state.filter.typeMedia = filter.type;
|
|
42
|
-
}
|
|
43
|
-
if (filter.order) {
|
|
44
|
-
state.filter.sortOrder = filter.order;
|
|
45
|
-
}
|
|
46
|
-
if (filter.field) {
|
|
47
|
-
state.filter.sortField = filter.field;
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
initFilter(state, data) {
|
|
51
|
-
state.filter = {
|
|
52
|
-
...state.filter,
|
|
53
|
-
...data,
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
liveUpdate(state, isBeforeLive) {
|
|
57
|
-
state.liveUpdate.isBeforeLive = isBeforeLive;
|
|
58
|
-
},
|
|
59
|
-
setCommentIdentity(state, identity) {
|
|
60
|
-
state.comments.knownIdentity = identity;
|
|
61
|
-
},
|
|
62
|
-
setCommentLoaded(state, data) {
|
|
63
|
-
state.comments.actualPodcastId = data.podcastId;
|
|
64
|
-
state.comments.loadedComments = data.comments;
|
|
65
|
-
},
|
|
66
|
-
isEducation(state, isEducation) {
|
|
67
|
-
state.general.education = isEducation;
|
|
68
|
-
state.general.logoUrl = '/img/logo_education.webp';
|
|
69
|
-
state.general.metaTitle = 'RadioEducation.org';
|
|
70
|
-
},
|
|
71
|
-
},
|
|
75
|
+
mutations: mutations,
|
|
72
76
|
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
export interface ApiState {
|
|
3
|
+
apiUrl: undefined,
|
|
4
|
+
commentUrl: undefined,
|
|
5
|
+
frontendUrl: undefined,
|
|
6
|
+
ftpUrl: undefined,
|
|
7
|
+
hlsUrl: undefined,
|
|
8
|
+
imageUrl: undefined,
|
|
9
|
+
keycloakUrl: undefined,
|
|
10
|
+
mediaUrl: undefined,
|
|
11
|
+
miniplayerUrl:undefined,
|
|
12
|
+
processorUrl: undefined,
|
|
13
|
+
radioUrl: undefined,
|
|
14
|
+
recoUrl:undefined,
|
|
15
|
+
rssUrl: undefined,
|
|
16
|
+
rtmpUrl: undefined,
|
|
17
|
+
speechToTextUrl: undefined,
|
|
18
|
+
studioUrl: undefined,
|
|
19
|
+
videoMakerUrl: undefined,
|
|
20
|
+
storageUrl: undefined,
|
|
21
|
+
}
|
|
22
|
+
export function getDefaultApiState(): ApiState {
|
|
23
|
+
return {
|
|
24
|
+
apiUrl: undefined,
|
|
25
|
+
commentUrl:undefined,
|
|
26
|
+
frontendUrl: undefined,
|
|
27
|
+
ftpUrl: undefined,
|
|
28
|
+
hlsUrl: undefined,
|
|
29
|
+
imageUrl: undefined,
|
|
30
|
+
keycloakUrl: undefined,
|
|
31
|
+
mediaUrl: undefined,
|
|
32
|
+
miniplayerUrl:undefined,
|
|
33
|
+
processorUrl: undefined,
|
|
34
|
+
radioUrl: undefined,
|
|
35
|
+
recoUrl:undefined,
|
|
36
|
+
rssUrl: undefined,
|
|
37
|
+
rtmpUrl: undefined,
|
|
38
|
+
speechToTextUrl: undefined,
|
|
39
|
+
studioUrl: undefined,
|
|
40
|
+
videoMakerUrl: undefined,
|
|
41
|
+
storageUrl: undefined,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Category } from '../class/general/category';
|
|
2
2
|
import { CommentPodcast } from '../class/general/comment';
|
|
3
|
-
import { Player } from '../class/general/player';
|
|
4
3
|
import { Rubriquage } from '../class/rubrique/rubriquage';
|
|
5
4
|
import { RubriquageFilter } from '../class/rubrique/rubriquageFilter';
|
|
6
5
|
import { Rubrique } from '../class/rubrique/rubrique';
|
|
6
|
+
import { ApiState } from './typeApiStore';
|
|
7
7
|
import { AuthState } from './typeAuthStore';
|
|
8
8
|
import { getDefaultPlayerState } from './typePlayerStore';
|
|
9
|
+
import { Player } from '../class/general/player';
|
|
9
10
|
|
|
10
11
|
export interface Filter{
|
|
11
12
|
organisationId: string | undefined;
|
|
@@ -41,6 +42,7 @@ export interface StoreState {
|
|
|
41
42
|
};
|
|
42
43
|
player: Player;
|
|
43
44
|
auth?: AuthState;
|
|
45
|
+
api?: ApiState;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
export function AppStoreData(): StoreState {
|
package/src/store/paramStore.ts
CHANGED
|
@@ -12,7 +12,7 @@ const state:ParamStore = {
|
|
|
12
12
|
isPlaylist: true,
|
|
13
13
|
isProduction: true,
|
|
14
14
|
isContribution: true,
|
|
15
|
-
ApiUri: 'https://api.
|
|
15
|
+
ApiUri: 'https://api.preprod.saooti.org/',
|
|
16
16
|
podcastmaker: false,
|
|
17
17
|
buttonPlus: true,
|
|
18
18
|
allCategories: [],
|
|
@@ -26,9 +26,9 @@ const state:ParamStore = {
|
|
|
26
26
|
SharePlayer: true,
|
|
27
27
|
ShareButtons: true,
|
|
28
28
|
ShareDistribution: true,
|
|
29
|
-
MiniplayerUri: 'https://playerbeta.
|
|
29
|
+
MiniplayerUri: 'https://playerbeta.preprod.saooti.org/',
|
|
30
30
|
downloadButton: false,
|
|
31
|
-
hlsUri: 'https://hls.
|
|
31
|
+
hlsUri: 'https://hls.preprod.saooti.org/',
|
|
32
32
|
mainRubrique: 0,
|
|
33
33
|
resourceUrl: undefined,
|
|
34
34
|
podcastItemShowEmission: false,
|
|
@@ -83,13 +83,13 @@ const state:ParamStore = {
|
|
|
83
83
|
userName: '',
|
|
84
84
|
},
|
|
85
85
|
octopusApi: {
|
|
86
|
-
url: 'https://api.
|
|
87
|
-
commentsUrl: 'https://comments.
|
|
88
|
-
imageUrl:'https://imageproxy.
|
|
89
|
-
studioUrl: 'https://studio.
|
|
90
|
-
playerUrl: 'https://playerbeta.
|
|
91
|
-
speechToTextUrl:'https://speech2text.
|
|
92
|
-
recoUrl: 'https://reco.
|
|
86
|
+
url: 'https://api.preprod.saooti.org/',
|
|
87
|
+
commentsUrl: 'https://comments.preprod.saooti.org/',
|
|
88
|
+
imageUrl:'https://imageproxy.preprod.saooti.org/',
|
|
89
|
+
studioUrl: 'https://studio.preprod.saooti.org/',
|
|
90
|
+
playerUrl: 'https://playerbeta.preprod.saooti.org/',
|
|
91
|
+
speechToTextUrl:'https://speech2text.preprod.saooti.org/',
|
|
92
|
+
recoUrl: 'https://reco.preprod.saooti.org/',
|
|
93
93
|
organisationId: undefined,
|
|
94
94
|
rubriqueIdFilter: undefined,
|
|
95
95
|
},
|