Namespace playerAuthenticationComponents
Functions
Const addAuthenticationTextsToLoadingContainer
- addAuthenticationTextsToLoadingContainer(loaderContainer: HTMLDivElement, platform: any, isGameRegistered: any, wikiOpenAction: any): HTMLDivElement
Parameters
loaderContainer: HTMLDivElement
platform: any
isGameRegistered: any
wikiOpenAction: any
Returns HTMLDivElement
Const addAuthenticationUrlToTextsContainer
- addAuthenticationUrlToTextsContainer(onClick: () => void, textContainer: HTMLDivElement): void
Parameters
onClick: () => void
textContainer: HTMLDivElement
Returns void
Const computeAuthenticatedBanner
- computeAuthenticatedBanner(onOpenAuthenticationWindow: () => void, onDismissBanner: () => void, username: null | string): HTMLDivElement
Parameters
onOpenAuthenticationWindow: () => void
onDismissBanner: () => void
username: null | string
Returns HTMLDivElement
Const computeAuthenticationContainer
- computeAuthenticationContainer(onCloseAuthenticationContainer: () => void): { iframeContainer: HTMLDivElement; loaderContainer: HTMLDivElement; rootContainer: HTMLDivElement }
Parameters
onCloseAuthenticationContainer: () => void
Returns { iframeContainer: HTMLDivElement; loaderContainer: HTMLDivElement; rootContainer: HTMLDivElement }
iframeContainer: HTMLDivElement
loaderContainer: HTMLDivElement
rootContainer: HTMLDivElement
Const computeDismissableBanner
- computeDismissableBanner(onDismissBanner: () => void): HTMLDivElement
Parameters
onDismissBanner: () => void
Returns HTMLDivElement
Const computeNotAuthenticatedBanner
- computeNotAuthenticatedBanner(onOpenAuthenticationWindow: () => void, onDismissBanner: () => void): HTMLDivElement
Parameters
onOpenAuthenticationWindow: () => void
onDismissBanner: () => void
Returns HTMLDivElement
Const displayErrorNotification
- displayErrorNotification(domContainer: HTMLDivElement): void
Parameters
domContainer: HTMLDivElement
Returns void
Const displayIframeInsideAuthenticationContainer
- displayIframeInsideAuthenticationContainer(iframeContainer: HTMLDivElement, loaderContainer: HTMLDivElement, textContainer: HTMLDivElement, url: string): void
Parameters
iframeContainer: HTMLDivElement
loaderContainer: HTMLDivElement
textContainer: HTMLDivElement
url: string
Returns void
Const displayLoggedInNotification
- displayLoggedInNotification(domContainer: HTMLDivElement, username: string): void
Parameters
domContainer: HTMLDivElement
username: string
Returns void
Const displayLoggedOutNotification
- displayLoggedOutNotification(domContainer: HTMLDivElement): void
Parameters
domContainer: HTMLDivElement
Returns void
Const showNotification
- showNotification(domContainer: HTMLDivElement, id: string, content: string, type: "error" | "success"): void
Parameters
domContainer: HTMLDivElement
id: string
content: string
type: "error" | "success"
Returns void
Helper to add the texts to the authentication container based on the platform or if the game is registered.