flexadminportal
    Preparing search index...

    Hierarchy (View Summary)

    Index

    ctx

    _errorFunction: (errors: string[] | number[] | object[]) => void = console.error
    • set errorFunction(error: (errors: string[] | number[] | object[]) => void): void

      Parameters

      • error: (errors: string[] | number[] | object[]) => void

      Returns void

    • Parameters

      • errors: string[] | number[] | object[]

      Returns void

    • Averages an array of numbers

      Parameters

      • arr: number[]

        an array of numbers to average

      Returns number

      the average of the elements in the array

    • Generate a random string of characters to be used as a unique id

      Returns string | number[]

      the result of the call to the uuid function

    • Parameters

      • fileObject: { file: File; key: string }

      Returns Promise<{ file: File; key: string }>

    • Parameters

      • imageURL: string
      • handleError: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void } = console.error
          • (...data: any[]): void
          • The console.error() static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.

            MDN Reference

            Parameters

            • ...data: any[]

            Returns void

          • (message?: any, ...optionalParams: any[]): void
          • Parameters

            • Optionalmessage: any
            • ...optionalParams: any[]

            Returns void

      Returns Promise<GetPropertiesWithPathOutput>

    • Parameters

      • imageURL: string
      • bucketPrefix: string = "public"
      • urlIncludesPrefix: boolean = false
      • handleError: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void } = console.error
          • (...data: any[]): void
          • The console.error() static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.

            MDN Reference

            Parameters

            • ...data: any[]

            Returns void

          • (message?: any, ...optionalParams: any[]): void
          • Parameters

            • Optionalmessage: any
            • ...optionalParams: any[]

            Returns void

      Returns Promise<boolean>

    • Parameters

      • image: File
      • bucketPrefix: string = "public"
      • onProgress: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void } = console.log
          • (...data: any[]): void
          • The console.log() static method outputs a message to the console.

            MDN Reference

            Parameters

            • ...data: any[]

            Returns void

          • (message?: any, ...optionalParams: any[]): void
          • Parameters

            • Optionalmessage: any
            • ...optionalParams: any[]

            Returns void

      • handleError: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void } = console.error
          • (...data: any[]): void
          • The console.error() static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.

            MDN Reference

            Parameters

            • ...data: any[]

            Returns void

          • (message?: any, ...optionalParams: any[]): void
          • Parameters

            • Optionalmessage: any
            • ...optionalParams: any[]

            Returns void

      Returns Promise<string>

    • Parameters

      • imageURL: string
      • handleError: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void } = console.error
          • (...data: any[]): void
          • The console.error() static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.

            MDN Reference

            Parameters

            • ...data: any[]

            Returns void

          • (message?: any, ...optionalParams: any[]): void
          • Parameters

            • Optionalmessage: any
            • ...optionalParams: any[]

            Returns void

      Returns Promise<StorageGetUrlOutput>