Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • addAuthenticationTextsToLoadingContainer(loaderContainer: HTMLDivElement, platform: "electron" | "cordova-websocket" | "web-iframe" | "web", isGameRegistered: boolean, wikiOpenAction: null | (() => void)): HTMLDivElement
  • Helper to add the texts to the authentication container based on the platform or if the game is registered.

    Parameters

    • loaderContainer: HTMLDivElement
    • platform: "electron" | "cordova-websocket" | "web-iframe" | "web"
    • isGameRegistered: boolean
    • wikiOpenAction: null | (() => void)

    Returns HTMLDivElement

  • addAuthenticationUrlToTextsContainer(onClick: () => void, textContainer: HTMLDivElement): void
  • computeAuthenticatedBanner(onOpenAuthenticationWindow: () => void, onDismissBanner: () => void, username: null | string): HTMLDivElement
  • Creates a DOM element representing a banner for the user to know which account they're using and also to allow switching to another account.

    Parameters

    • onOpenAuthenticationWindow: () => void
        • (): void
        • Returns void

    • onDismissBanner: () => void
        • (): void
        • Returns void

    • username: null | string

    Returns HTMLDivElement

  • computeAuthenticationContainer(onCloseAuthenticationContainer: () => void): { iframeContainer: HTMLDivElement; loaderContainer: HTMLDivElement; rootContainer: HTMLDivElement }
  • Creates a DOM element that will contain the loader or a message if the game is not registered.

    Parameters

    • onCloseAuthenticationContainer: () => void
        • (): void
        • Returns void

    Returns { iframeContainer: HTMLDivElement; loaderContainer: HTMLDivElement; rootContainer: HTMLDivElement }

    • iframeContainer: HTMLDivElement
    • loaderContainer: HTMLDivElement
    • rootContainer: HTMLDivElement
  • computeDismissableBanner(onDismissBanner: () => void): HTMLDivElement
  • computeNotAuthenticatedBanner(onOpenAuthenticationWindow: () => void, onDismissBanner: () => void): HTMLDivElement
  • displayErrorNotification(domContainer: HTMLDivElement): void
  • displayIframeInsideAuthenticationContainer(iframeContainer: HTMLDivElement, loaderContainer: HTMLDivElement, textContainer: HTMLDivElement, url: string): void
  • displayLoggedInNotification(domContainer: HTMLDivElement, username: string): void
  • displayLoggedOutNotification(domContainer: HTMLDivElement): void
  • showNotification(domContainer: HTMLDivElement, id: string, content: string, type: "error" | "success"): void

Generated using TypeDoc