All customized logo (#2168)

* Change dynamic logo in reconnecting scene

* Add cowebsite customized logo

* Fix prettier issues

* Fix prettier issues (2)

* Fix login scene PoweredBy

* Delete all console logs
This commit is contained in:
César Cardinale
2022-05-05 19:23:07 +02:00
committed by GitHub
parent 657bf4d8d2
commit a6e0374257
13 changed files with 74 additions and 14 deletions
+6 -2
View File
@@ -457,11 +457,15 @@ class AdminApi implements AdminInterface {
});
}
getProfileUrl(accessToken: string): string {
getProfileUrl(accessToken: string, playUri: string): string {
if (!OPID_PROFILE_SCREEN_PROVIDER) {
throw new Error("No admin backoffice set!");
}
return `${OPID_PROFILE_SCREEN_PROVIDER}?accessToken=${accessToken}`;
return `${OPID_PROFILE_SCREEN_PROVIDER}?accessToken=${accessToken}&playUri=${playUri}`;
}
async logoutOauth(token: string): Promise<void> {
await Axios.get(ADMIN_API_URL + `/oauth/logout?token=${token}`);
}
}
+7 -1
View File
@@ -71,7 +71,13 @@ export interface AdminInterface {
/**
* @param accessToken
* @param playUri
* @return string
*/
getProfileUrl(accessToken: string): string;
getProfileUrl(accessToken: string, playUri: string): string;
/**
* @param token
*/
logoutOauth(token: string): Promise<void>;
}
+7 -1
View File
@@ -47,9 +47,11 @@ class LocalAdmin implements AdminInterface {
contactPage: null,
group: null,
iframeAuthentication: null,
miniLogo: null,
loadingLogo: null,
loginSceneLogo: null,
showPoweredBy: true,
loadingCowebsiteLogo: null,
});
}
@@ -84,10 +86,14 @@ class LocalAdmin implements AdminInterface {
return Promise.reject(new Error("No admin backoffice set!"));
}
getProfileUrl(accessToken: string): string {
getProfileUrl(accessToken: string, playUri: string): string {
new Error("No admin backoffice set!");
return "";
}
async logoutOauth(token: string): Promise<void> {
return Promise.reject(new Error("No admin backoffice set!"));
}
}
export const localAdmin = new LocalAdmin();