@saooti/octopus-sdk 41.0.5-SNAPSHOT → 41.0.5
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/index.ts +2 -1
- package/package.json +3 -1
- package/src/App.vue +3 -7
- package/src/api/classicApi.ts +1 -1
- package/src/components/composable/player/usePlayerLive.ts +1 -1
- package/src/components/composable/player/usePlayerVast.ts +7 -7
- package/src/components/composable/route/useAdvancedParamInit.ts +1 -1
- package/src/components/composable/route/useRouteUpdateParams.ts +4 -4
- package/src/components/composable/route/useSimplePageParam.ts +15 -8
- package/src/components/display/categories/CategoryChooser.vue +6 -0
- package/src/components/display/comments/CommentList.vue +1 -1
- package/src/components/display/emission/EmissionList.vue +5 -8
- package/src/components/display/filter/AdvancedSearch.vue +0 -3
- package/src/components/display/list/ListPaginate.vue +4 -12
- package/src/components/display/live/LiveItem.vue +2 -3
- package/src/components/display/participant/ParticipantList.vue +6 -9
- package/src/components/display/playlist/PlaylistList.vue +5 -8
- package/src/components/display/playlist/PodcastList.vue +16 -7
- package/src/components/display/podcasts/PodcastFilterList.vue +19 -8
- package/src/components/display/podcasts/PodcastList.vue +8 -9
- package/src/components/display/podcasts/PodcastModuleBox.vue +0 -1
- package/src/components/display/sharing/SharePlayerTypes.vue +1 -1
- package/src/components/display/sharing/SubscribeButtons.vue +4 -2
- package/src/components/form/ClassicInputText.vue +4 -1
- package/src/components/form/ClassicMultiselect.vue +36 -8
- package/src/components/misc/ClassicAccordion.vue +4 -4
- package/src/components/misc/ClassicPopover.vue +1 -1
- package/src/components/misc/ClassicSpinner.vue +1 -1
- package/src/components/misc/FooterSection.vue +0 -16
- package/src/components/misc/TopBar.vue +4 -11
- package/src/components/misc/player/elements/PlayerImage.vue +0 -1
- package/src/components/pages/EmissionPage.vue +14 -0
- package/src/components/pages/PageLogout.vue +1 -6
- package/src/components/pages/ParticipantPage.vue +14 -0
- package/src/components/pages/PlaylistPage.vue +17 -4
- package/src/components/pages/PodcastPage.vue +2 -1
- package/src/helper/loadScript.ts +4 -4
- package/src/locale/de.ts +2 -2
- package/src/locale/en.ts +2 -2
- package/src/locale/es.ts +2 -2
- package/src/locale/fr.ts +2 -2
- package/src/locale/it.ts +2 -2
- package/src/locale/sl.ts +2 -2
- package/src/router/router.ts +17 -4
- package/src/stores/AuthStore.ts +12 -12
- package/src/stores/FilterStore.ts +1 -1
- package/src/stores/VastStore.ts +2 -2
- package/src/style/_variables.scss +3 -0
- package/src/style/general.scss +5 -0
package/src/stores/AuthStore.ts
CHANGED
|
@@ -5,19 +5,19 @@ import { defineStore } from "pinia";
|
|
|
5
5
|
import { KeycloakInfo } from "@/stores/class/user/person";
|
|
6
6
|
import { VideoConfig } from "@/stores/class/config/videoConfig";
|
|
7
7
|
import classicApi from "../api/classicApi";
|
|
8
|
-
|
|
8
|
+
interface AuthParam{
|
|
9
|
+
accessToken?: string;
|
|
10
|
+
refreshToken?: string;
|
|
11
|
+
expiration?: Date|string;
|
|
12
|
+
clientId?: string;
|
|
13
|
+
}
|
|
9
14
|
interface AuthState {
|
|
10
15
|
authReload: number;
|
|
11
16
|
authName: string;
|
|
12
17
|
authOrgaId?: string;
|
|
13
18
|
authOrgaName?: string;
|
|
14
19
|
authRole: Array<string>;
|
|
15
|
-
authParam:
|
|
16
|
-
accessToken?: string;
|
|
17
|
-
refreshToken?: string;
|
|
18
|
-
expiration?: Date;
|
|
19
|
-
clientId?: string;
|
|
20
|
-
};
|
|
20
|
+
authParam:AuthParam;
|
|
21
21
|
authProfile?: Profile;
|
|
22
22
|
authOrganisation: Organisation;
|
|
23
23
|
authVideoConfig: VideoConfig;
|
|
@@ -115,25 +115,25 @@ export const useAuthStore = defineStore("AuthStore", {
|
|
|
115
115
|
},
|
|
116
116
|
},
|
|
117
117
|
actions: {
|
|
118
|
-
authUpdate(authentication:
|
|
118
|
+
authUpdate(authentication: {name?:string, organisationId?:string,organisationName?:string, role?:Array<string>}) {
|
|
119
119
|
this.authName = authentication.name ?? this.authName;
|
|
120
120
|
this.authOrgaId = authentication.organisationId ?? this.authOrgaId;
|
|
121
121
|
this.authOrgaName = authentication.organisationName ?? this.authOrgaName;
|
|
122
122
|
this.authRole = authentication.role ?? this.authRole;
|
|
123
123
|
},
|
|
124
|
-
authUpdateParam(oAuthParam:
|
|
124
|
+
authUpdateParam(oAuthParam: AuthParam) {
|
|
125
125
|
this.authParam = oAuthParam;
|
|
126
126
|
},
|
|
127
|
-
authUpdateProfile(profile:
|
|
127
|
+
authUpdateProfile(profile: Profile) {
|
|
128
128
|
this.authProfile = profile;
|
|
129
129
|
this.authName = profile.firstname + " " + profile.lastname;
|
|
130
130
|
},
|
|
131
|
-
authUpdateOrganisation(organisation:
|
|
131
|
+
authUpdateOrganisation(organisation: Organisation) {
|
|
132
132
|
this.authOrganisation = organisation;
|
|
133
133
|
const saveFetchStore = useSaveFetchStore();
|
|
134
134
|
saveFetchStore.forceUpdateAttributes(
|
|
135
135
|
organisation.id,
|
|
136
|
-
organisation.attributes
|
|
136
|
+
organisation.attributes??{}
|
|
137
137
|
);
|
|
138
138
|
saveFetchStore.forceUpdateData(organisation.id, organisation);
|
|
139
139
|
},
|
|
@@ -52,7 +52,7 @@ export const useFilterStore = defineStore("FilterStore", {
|
|
|
52
52
|
this.filterRubrique = rubriqueFilter;
|
|
53
53
|
},
|
|
54
54
|
filterUpdateRubriqueDisplay(rubriques: Array<Rubrique>) {
|
|
55
|
-
this.filterRubriqueDisplay = rubriques;
|
|
55
|
+
this.filterRubriqueDisplay = rubriques.filter(rubrique=> rubrique);
|
|
56
56
|
},
|
|
57
57
|
filterUpdateMedia(filter: {
|
|
58
58
|
type?: string;
|
package/src/stores/VastStore.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { defineStore } from "pinia";
|
|
|
2
2
|
import { AdPosition } from "./class/adserver/adPosition";
|
|
3
3
|
|
|
4
4
|
interface VastState {
|
|
5
|
-
currentAd:
|
|
5
|
+
currentAd: google.ima.Ad|undefined;
|
|
6
6
|
isAdPlaying: boolean;
|
|
7
7
|
isAdPaused: boolean;
|
|
8
8
|
isAdSkippable: boolean;
|
|
@@ -79,7 +79,7 @@ export const useVastStore = defineStore("VastStore", {
|
|
|
79
79
|
) {
|
|
80
80
|
this.adPositionsPodcasts[podcastId] = adPositions;
|
|
81
81
|
},
|
|
82
|
-
updateCurrentAd(currentAd:
|
|
82
|
+
updateCurrentAd(currentAd: google.ima.Ad) {
|
|
83
83
|
this.currentAd = currentAd;
|
|
84
84
|
this.isAdSkipped = false;
|
|
85
85
|
},
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
--octopus-background-transparent: oklch(from var(--octopus-background) l c h / 40%);
|
|
28
28
|
--octopus-tertiary-really-transparent: oklch(from var(--octopus-tertiary) l c h / 30%);
|
|
29
29
|
|
|
30
|
+
//Gradient
|
|
31
|
+
--octopus-gradient : linear-gradient(90deg,var(--octopus-primary) 0%, var(--octopus-tertiary) 100%);
|
|
32
|
+
|
|
30
33
|
// Size
|
|
31
34
|
--octopus-image-size: 12.5rem;
|
|
32
35
|
--octopus-podcast-size: 13.5rem;
|
package/src/style/general.scss
CHANGED
|
@@ -114,6 +114,11 @@ main, #app{
|
|
|
114
114
|
background: var(--octopus-complementary-color) !important;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
.bg-gradient{
|
|
118
|
+
background: var(--octopus-primary);
|
|
119
|
+
background:var(--octopus-gradient);
|
|
120
|
+
}
|
|
121
|
+
|
|
117
122
|
.text-blue-octopus{
|
|
118
123
|
color: var(--octopus-tertiary) !important
|
|
119
124
|
}
|