Admin related functions.
Example
var adminLib = require('/lib/xp/admin');
Members
(static) getMainAppUrl
Return url for the main app.
Methods
(static) getAssetsUri() → {string}
Returns the admin assets uri.
Returns:
Assets uri.
- Type
- string
(static) getBaseUri() → {string}
Returns the admin base uri.
Returns:
Admin base uri.
- Type
- string
(static) getLauncherUrl()
Returns the URL for launcher javascript.
(static) getLocale() → {string}
Returns the preferred locale based on the current HTTP request, or the server default locale if none is specified.
Returns:
Current locale.
- Type
- string
(static) getLocales() → {Array.<string>}
Returns the list of preferred locales based on the current HTTP request, or the server default locale if none is specified.
Returns:
Current locales in order of preference.
- Type
- Array.<string>
(static) getPhrases() → {string}
Returns all i18n phrases.
Returns:
Current locale.
- Type
- string