@eoussama/firemitt
    Preparing search index...

    Class ConfigHelper

    Helper class for configuring Firemitt and Fireguard settings.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Constructs a string representing window features (flags) for window.open based on the given Firemitt configuration.

      Parameters

      Returns string

      A string of window feature flags for use in window.open.

    • Initializes and returns a TFiremittConfig object based on the provided Firemitt options.

      Parameters

      • options: {
            config?: {
                firebase?: {
                    apiKey: string;
                    appId: string;
                    authDomain: string;
                    measurementId: string;
                    messagingSenderId: string;
                    projectId: string;
                    storageBucket: string;
                };
                logo?: string;
                name?: string;
                provider?: string;
                theme?: {
                    background?: string;
                    primary?: string;
                    secondary?: string;
                    text?: string;
                };
            };
            dim?: { height?: number; width?: number };
            iframe?:
                | { container?: undefined; element: HTMLIFrameElement }
                | { container: HTMLElement; element?: undefined };
            mode?: "popup" | "iframe";
            pos?: { x?: number; y?: number };
            url: string;
        }

        The Firemitt options to initialize the configuration.

      Returns TFiremittConfig

      The initialized Firemitt configuration object.