An object that manages the state of active alerts.
Whether or not the app has been booted.
A local cache that can be used to store data at the application level, so that is persists between different routes.
The page the app is currently on.
This object holds information about the type of page we are currently visiting, and sometimes additional arbitrary page state that may be relevant to lower-level components.
An object that manages the state of the navigation drawer.
The forum model for this application.
An ordered list of initializers to bootstrap the application.
An object that manages modal state.
The page the app was on before the current page.
Once the application navigates to another page, the object previously assigned to this.current will be moved to this.previous, while this.current is re-initialized.
The key for an Alert that was shown as a result of an AJAX request error. If present, it will be dismissed on the next successful request.
A map of routes, keyed by a unique route name. Each route is an object containing the following properties:
path
The path that the route is accessed at.component
The Mithril component to render when this route is active.The app's session.
Stores info about the current user.
The app's data store.
The app's translator.
Get the API response document that has been preloaded into the application.
Make an AJAX request, handling any low-level errors that may occur.
By default, show an error alert, and log the error to the console.
Construct a URL to the route with the given name.
Determine the current screen mode, based on our media queries.
Set the <title>
of the page.
New page title
Set a number to display in the <title>
of the page.
Number to display in title
Generated using TypeDoc version 0.22.10
The
App
class provides a container for an application, as well as various utilities for the rest of the app to use.