Reference Source
import AdminApplication from 'flarum/admin/AdminApplication'
public class | source

AdminApplication

Extends:

Application → AdminApplication

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

history: *

Method Summary

Public Methods
public

getRequiredPermissions(permission: *): *

public

mount()

Inherited Summary

From class Application
public

An object that manages the state of active alerts.

public

Whether or not the app has been booted.

public

A local cache that can be used to store data at the application level, so that is persists between different routes.

public

The page the app is currently on.

public

data: *

public

drawer: *

public

The forum model for this application.

public
public

An ordered list of initializers to bootstrap the application.

public

modal: *

public

The page the app was on before the current page.

public

A map of routes, keyed by a unique route name.

public

The app's session.

public

The app's data store.

public

title: *

public
public

The app's translator.

private

The key for an Alert that was shown as a result of an AJAX request error.

public

boot()

public

bootExtensions(extensions: *)

public

load(payload: *)

public

mount(basePath: string)

public

Get the API response document that has been preloaded into the application.

public

request(options: Object): Promise

Make an AJAX request, handling any low-level errors that may occur.

public

route(name: String, params: Object): String

Construct a URL to the route with the given name.

public

Determine the current screen mode, based on our media queries.

public

setTitle(title: String)

Set the <title> of the page.

public

setTitleCount(count: Integer)

Set a number to display in the <title> of the page.

public
private

showDebug(error: RequestError, formattedError: string[])

Public Constructors

public constructor() source

Public Members

public extensionCategories: * source

public extensionData: * source

public history: * source

Public Methods

public getRequiredPermissions(permission: *): * source

Params:

NameTypeAttributeDescription
permission *

Return:

*

public mount() source

Override:

Application#mount