@saooti/octopus-sdk 36.0.15 → 36.0.17
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 +17 -19
- package/src/api/classicCrud.ts +0 -2
- package/src/components/display/list/SwiperList.vue +1 -1
- package/src/components/display/live/LiveList.vue +1 -1
- package/src/components/display/live/RadioPlanning.vue +3 -3
- package/src/components/display/sharing/SharePlayerColors.vue +2 -1
- package/src/components/misc/modal/NewsletterModal.vue +2 -1
- package/src/stores/ApiStore.ts +9 -6
- package/src/stores/class/general/initState.ts +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "36.0.
|
|
3
|
+
"version": "36.0.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -19,39 +19,37 @@
|
|
|
19
19
|
"@popperjs/core": "^2.11.7",
|
|
20
20
|
"@saooti/octopus-api": "^0.34.3",
|
|
21
21
|
"@vue/cli": "^5.0.8",
|
|
22
|
-
"@vue/compat": "^3.2
|
|
22
|
+
"@vue/compat": "^3.3.2",
|
|
23
23
|
"autoprefixer": "^10.4.14",
|
|
24
|
-
"axios": "^1.
|
|
24
|
+
"axios": "^1.4.0",
|
|
25
25
|
"dayjs": "^1.11.7",
|
|
26
26
|
"express": "^4.18.2",
|
|
27
|
-
"hls.js": "^1.3
|
|
28
|
-
"humanize-duration": "3.
|
|
27
|
+
"hls.js": "^1.4.3",
|
|
28
|
+
"humanize-duration": "^3.28.0",
|
|
29
29
|
"jest": "^29.5.0",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"sass": "^1.60.0",
|
|
30
|
+
"pinia": "^2.1.0",
|
|
31
|
+
"qrcode.vue": "^3.4.0",
|
|
32
|
+
"sass": "^1.62.1",
|
|
34
33
|
"sonarqube-scanner": "^3.0.0",
|
|
35
|
-
"swiper": "^
|
|
34
|
+
"swiper": "^9.3.2",
|
|
36
35
|
"v-calendar": "^3.0.3",
|
|
37
|
-
"vite": "^3.2.
|
|
38
|
-
"vue": "^3.2
|
|
36
|
+
"vite": "^3.2.6",
|
|
37
|
+
"vue": "^3.3.2",
|
|
39
38
|
"vue-i18n": "^9.2.2",
|
|
40
39
|
"vue-recaptcha": "^2.0.3",
|
|
41
|
-
"vue-router": "^4.
|
|
40
|
+
"vue-router": "^4.2.0",
|
|
42
41
|
"vue-select": "^4.0.0-beta.6",
|
|
43
42
|
"vue3-lazyload": "^0.3.6",
|
|
44
|
-
"vue3-swatches": "1.
|
|
43
|
+
"vue3-swatches": "^1.2.3"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@types/jquery": "^3.5.16",
|
|
48
46
|
"@types/vue-select": "^3.16.2",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
50
|
-
"@typescript-eslint/parser": "^5.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
48
|
+
"@typescript-eslint/parser": "^5.59.6",
|
|
51
49
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
52
|
-
"@vue/compiler-sfc": "^3.2
|
|
50
|
+
"@vue/compiler-sfc": "^3.3.2",
|
|
53
51
|
"@vue/eslint-config-typescript": "^8.0.0",
|
|
54
|
-
"eslint": "^8.
|
|
52
|
+
"eslint": "^8.40.0",
|
|
55
53
|
"eslint-plugin-vue": "^7.17.0",
|
|
56
54
|
"typescript": "^4.9.5"
|
|
57
55
|
},
|
package/src/api/classicCrud.ts
CHANGED
|
@@ -97,7 +97,7 @@ export default defineComponent({
|
|
|
97
97
|
return (true ===this.authenticated && this.myOrganisationId === this.filterOrgaUsed) ||true===state.generalParameters.isAdmin;
|
|
98
98
|
},
|
|
99
99
|
liveRight(): boolean {
|
|
100
|
-
return (state.generalParameters.isRoleLive as boolean)&& true===this.authOrganisation.attributes?.['live.active'];
|
|
100
|
+
return (state.generalParameters.isRoleLive as boolean)&& "true"===this.authOrganisation.attributes?.['live.active'];
|
|
101
101
|
},
|
|
102
102
|
isPodcastmaker(): boolean {
|
|
103
103
|
return (state.generalParameters.podcastmaker as boolean);
|
|
@@ -102,12 +102,12 @@ export default defineComponent({
|
|
|
102
102
|
ParticipantDescription
|
|
103
103
|
},
|
|
104
104
|
|
|
105
|
+
mixins: [imageProxy],
|
|
106
|
+
|
|
105
107
|
props: {
|
|
106
108
|
radio: { default: undefined, type: Object as ()=>Canal},
|
|
107
109
|
},
|
|
108
|
-
|
|
109
|
-
mixins: [imageProxy],
|
|
110
|
-
|
|
110
|
+
|
|
111
111
|
data() {
|
|
112
112
|
return {
|
|
113
113
|
planning: {} as {[key: number]:Array<{podcast: Podcast, occurrence: PlanningOccurrence|PlanningLive}>},
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
|
|
34
34
|
<script lang="ts">
|
|
35
35
|
// @ts-ignore
|
|
36
|
-
import VSwatches from 'vue3-swatches';
|
|
36
|
+
import {VSwatches} from 'vue3-swatches';
|
|
37
|
+
import 'vue3-swatches/dist/style.css';
|
|
37
38
|
import { defineComponent } from 'vue';
|
|
38
39
|
export default defineComponent({
|
|
39
40
|
components: {
|
|
@@ -93,7 +93,8 @@ import ClassicCheckbox from '../../form/ClassicCheckbox.vue';
|
|
|
93
93
|
import Snackbar from '../../misc/Snackbar.vue';
|
|
94
94
|
import dayjs from 'dayjs';
|
|
95
95
|
// @ts-ignore
|
|
96
|
-
import VSwatches from 'vue3-swatches';
|
|
96
|
+
import {VSwatches} from 'vue3-swatches';
|
|
97
|
+
import 'vue3-swatches/dist/style.css';
|
|
97
98
|
// @ts-ignore
|
|
98
99
|
import humanizeDuration from 'humanize-duration';
|
|
99
100
|
import displayMethods from '../../mixins/displayMethods';
|
package/src/stores/ApiStore.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
2
|
interface ApiState {
|
|
3
3
|
apiUrl: string,
|
|
4
|
+
billingUrl:string,
|
|
4
5
|
commentUrl: string,
|
|
5
6
|
frontendUrl: string,
|
|
6
|
-
ftpUrl: string,
|
|
7
7
|
hlsUrl: string,
|
|
8
8
|
imageUrl: string,
|
|
9
|
+
importerUrl: string,
|
|
9
10
|
keycloakUrl: string,
|
|
10
11
|
mediaUrl: string,
|
|
11
12
|
miniplayerUrl:string,
|
|
12
13
|
processorUrl: string,
|
|
13
14
|
radioUrl: string,
|
|
14
15
|
recoUrl:string,
|
|
15
|
-
rssUrl: string,
|
|
16
16
|
rtmpUrl: string,
|
|
17
17
|
speechToTextUrl: string,
|
|
18
|
+
textToSpeechUrl:string,
|
|
18
19
|
studioUrl: string,
|
|
19
20
|
videoMakerUrl: string,
|
|
20
21
|
storageUrl: string,
|
|
@@ -22,20 +23,21 @@ interface ApiState {
|
|
|
22
23
|
export const useApiStore = defineStore('ApiStore', {
|
|
23
24
|
state: (): ApiState => ({
|
|
24
25
|
apiUrl: "",
|
|
26
|
+
billingUrl: "",
|
|
25
27
|
commentUrl: "",
|
|
26
28
|
frontendUrl: "",
|
|
27
|
-
ftpUrl: "",
|
|
28
29
|
hlsUrl: "",
|
|
29
30
|
imageUrl: "",
|
|
31
|
+
importerUrl: "",
|
|
30
32
|
keycloakUrl: "",
|
|
31
33
|
mediaUrl: "",
|
|
32
34
|
miniplayerUrl: "",
|
|
33
35
|
processorUrl: "",
|
|
34
36
|
radioUrl: "",
|
|
35
37
|
recoUrl: "",
|
|
36
|
-
rssUrl: "",
|
|
37
38
|
rtmpUrl: "",
|
|
38
39
|
speechToTextUrl: "",
|
|
40
|
+
textToSpeechUrl: "",
|
|
39
41
|
studioUrl: "",
|
|
40
42
|
videoMakerUrl: "",
|
|
41
43
|
storageUrl: "",
|
|
@@ -43,20 +45,21 @@ export const useApiStore = defineStore('ApiStore', {
|
|
|
43
45
|
actions: {
|
|
44
46
|
initApis(initParam: ApiState) {
|
|
45
47
|
this.apiUrl = initParam.apiUrl;
|
|
48
|
+
this.billingUrl = initParam.billingUrl;
|
|
46
49
|
this.commentUrl = initParam.commentUrl;
|
|
47
50
|
this.frontendUrl = initParam.frontendUrl;
|
|
48
|
-
this.ftpUrl = initParam.ftpUrl;
|
|
49
51
|
this.hlsUrl = initParam.hlsUrl;
|
|
50
52
|
this.imageUrl = initParam.imageUrl;
|
|
53
|
+
this.importerUrl = initParam.importerUrl;
|
|
51
54
|
this.keycloakUrl = initParam.keycloakUrl;
|
|
52
55
|
this.mediaUrl = initParam.mediaUrl;
|
|
53
56
|
this.miniplayerUrl = initParam.miniplayerUrl;
|
|
54
57
|
this.processorUrl = initParam.processorUrl;
|
|
55
58
|
this.radioUrl = initParam.radioUrl;
|
|
56
59
|
this.recoUrl = initParam.recoUrl;
|
|
57
|
-
this.rssUrl = initParam.rssUrl;
|
|
58
60
|
this.rtmpUrl = initParam.rtmpUrl;
|
|
59
61
|
this.speechToTextUrl = initParam.speechToTextUrl;
|
|
62
|
+
this.textToSpeechUrl = initParam.textToSpeechUrl;
|
|
60
63
|
this.studioUrl = initParam.studioUrl;
|
|
61
64
|
this.videoMakerUrl = initParam.videoMakerUrl;
|
|
62
65
|
this.storageUrl = initParam.storageUrl;
|
|
@@ -2,14 +2,22 @@ export interface InitState {
|
|
|
2
2
|
accessToken: string;
|
|
3
3
|
accessTokenUri: string;
|
|
4
4
|
apiUri: string;
|
|
5
|
+
billingUri: string;
|
|
5
6
|
authenticated: boolean;
|
|
6
7
|
captchaDevelopmentProfil: boolean;
|
|
7
8
|
clientId: string;
|
|
8
9
|
commentsUri: string;
|
|
9
10
|
expiration: string;
|
|
10
11
|
frontendUri: string;
|
|
11
|
-
|
|
12
|
+
goodNewsOrgaId: string;
|
|
13
|
+
imageUri: string;
|
|
14
|
+
speechToTextUri: string;
|
|
15
|
+
textToSpeechUri: string;
|
|
16
|
+
radioUri: string;
|
|
12
17
|
hlsUri: string;
|
|
18
|
+
videomakerUri:string;
|
|
19
|
+
recoUri:string;
|
|
20
|
+
importerUri: string;
|
|
13
21
|
isEducation: boolean;
|
|
14
22
|
keycloakApiUri: string;
|
|
15
23
|
mediaUri: string;
|
|
@@ -18,7 +26,6 @@ export interface InitState {
|
|
|
18
26
|
processorUri:string;
|
|
19
27
|
refreshToken: string;
|
|
20
28
|
role: Array<string>;
|
|
21
|
-
rssUri: string;
|
|
22
29
|
rtmpUri: string;
|
|
23
30
|
storageUri: string;
|
|
24
31
|
studioUri: string;
|