Attributes for an alert component to show below the header.
The attributes passed into the component.
The root DOM element for the component.
ProtectedfinishedProtectedloadingClass component state that is persisted between redraws.
Updating this will not automatically trigger a redraw, unlike other frameworks.
This is different to Vnode state, which is always an instance of your class component.
This is undefined by default.
ProtectedstepsProtected Static ReadonlyisCan the modal be dismissed via a click on the backdrop.
Protected Static ReadonlyisCan the model be dismissed with a close button (X)?
If false, no close button is shown.
Protected Static ReadonlyisCan the modal be dismissed by pressing the Esc key on a keyboard?
ProtecteddismissibleStaticdismissibleReturns a jQuery object for this component's element. If you pass in a selector string, this method will return a jQuery object, using the current element as its buffer.
For example, calling component.$('li') will return a jQuery object
containing all of the li elements inside the DOM element of this
component.
Optionalselector: stringa jQuery-compatible selector string
the jQuery object for the DOM node
ProtectedappearanceHow much of the reader's attention a step deserves.
Most of a clear is bundles that turned out not to need rebuilding, and on a forum with several locales those rows are the majority. They are worth listing — they are how you know nothing was missed — but not worth reading, so they recede and the handful of things that actually changed stand out.
Get the class name to apply to the modal.
ProtectedclearReads the response as it is written.
app.request cannot be used here: it hands back the body once, complete,
so nothing could be shown until the work had finished. Each line is a whole
JSON object, so a step can be rendered the moment its line arrives.
Get the content of the modal.
ProtecteddescribePuts words to a step. Which words depend only on what the server said happened, never on a string it sent.
Hides the modal.
ProtectediconProtectedinnerSets loading to false and triggers a redraw.
Callback executed when the modal is shown and ready to be interacted with.
ProtectedtimeHow long a step took, where that is worth knowing.
Bundles compiled together are timed together, so the figure belongs to the frontend rather than to each of its bundles — repeating it down every row of a group would read as several slow steps instead of one. Shown against the first row of each group only, as the console table does it.
Get the title of the modal dialog.
ProtectedwrapperStaticcomponentConvenience method to attach a component without JSX.
Has the same effect as calling m(THIS_CLASS, attrs, children).
StaticinitInitialize the component's attrs.
This can be used to assign default values for missing, optional attrs.
Clears the cache, showing each step as the server finishes it.
The work recompiles every asset bundle for every frontend and locale, which runs for tens of seconds where the assets live on remote storage. A spinner alone gives no way to tell that from a request that has died, so the steps are read from the response as they arrive.
Nothing reloads on its own at the end: the page is still running on the assets it booted with, and an admin who has just watched a rebuild should decide for themselves when to pick up the new ones.