This type represents an element of a list returned by
coupled with some static properties used on various components.
console.warn with the provided arguments, but only if the forum is in debug mode.
This function is intended to provide warnings to extension developers about issues with their extensions that may not be easily noticed when testing, such as accessibility issues.
These warnings should be hidden on production forums to ensure webmasters are not inundated with do-gooders telling them they have an issue when it isn't something they can fix.
Fire a Flarum deprecation warning which is shown in the JS console.
The message to display. (Short, but sweet, please!)
The PR or Issue ID with more info in relation to this change.
fullTime helper displays a formatted time string wrapped in a
highlight helper searches for a word phrase in a string, and wraps
matches with the tag.
The string to highlight.
The word or words to highlight.
humanTime helper displays a time in a human-friendly time-ago format
(e.g. '12 days ago'), wrapped in a
icon helper displays an icon.
The full icon class, prefix and the icon’s name.
Any other attributes to apply.
listItems helper wraps an array of components in the provided tag,
stripping out any unnecessary
By default, this tag is an
<li> tag, but this is customisable through the
second function parameter,
punctuateSeries helper formats a list of strings (e.g. names) to read
fluently in the application's locale.
punctuateSeries(['Toby', 'Franz', 'Dominion']) // Toby, Franz, and Dominion
useronline helper displays a green circle if the user is online
username helper displays a user's username in a
tag. If the user doesn't exist, the username will be displayed as [deleted].
Generated using TypeDoc version 0.22.10