See PHP file inc/Assets.php.

Hierarchy (view full)

Constructors

Properties

busyConsent: boolean = false
busyReferer: boolean = false
chunkFolder?: string
chunks?: Record<string, string[]>
chunksLanguageFolder?: string
count: number = 0
deleteAll: (() => Promise<void>) = ...

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

fetchAll: ((params?) => Promise<void>) = ...

Type declaration

    • (params?): Promise<void>
    • Parameters

      • Optional params: Record<string, any>

      Returns Promise<void>

fetchReferer: ((params?) => Promise<void>) = ...

Type declaration

fetchRevision: ((params?) => Promise<void>) = ...

Type declaration

fetchRevisionIndependent: ((params?) => Promise<void>) = ...

Type declaration

filters: {
    context: string;
    dates: [Moment, Moment];
    ip: string;
    page: number;
    referer: string;
    uuid: string;
} = ...

Type declaration

  • context: string
  • dates: [Moment, Moment]
  • ip: string
  • page: number
  • referer: string
  • uuid: string
offset: number = 0
pageCollection: Map<number, Consent> = ...

Current visible page in Consent tab

perPage: number = 50
publicUrl?: string
referer: string[] = []
restNamespace?: string
restNonce?: string
restPathObfuscateOffset?: string
restQuery?: object
restRecreateNonceEndpoint?: string
restRoot?: string
restUrl?: string
revisions: Map<string, Revision> = ...
revisionsIndependent: Map<string, RevisionIndependent> = ...
rootStore: RootStore
slug: string
textDomain: string
truncatedIpsCount: number = 0
version: string

Methods

  • This action does not actually refetch the stats, you need to act on your components!

    Parameters

    • context: string

    Returns void

  • This action does not actually refetch the stats, you need to act on your components!

    Parameters

    • dates: [Moment, Moment]

    Returns void

  • This action does not actually refetch the list, you need to act on your components!

    Parameters

    • ip: string

    Returns void

  • This action does not actually refetch the list, you need to act on your components!

    Parameters

    • page: number

    Returns void

  • This action does not actually refetch the list, you need to act on your components!

    Parameters

    • referer: string

    Returns void

  • This action does not actually refetch the list, you need to act on your components!

    Parameters

    • uuid: string

    Returns void

  • Get the slug from the current process (webpack) instead of the PHP plugin output. For some cases you need to use that.

    Parameters

    • slug: string
    • camelCase: boolean = false

    Returns string

  • Convert a slug like "my-plugin" to "myPlugin". This can be useful for library naming (window[""] is bad because the hyphens).

    Parameters

    • slug: string

    Returns string