Class: Licenses#
@jupyterlite/licenses.Licenses
A JupyterLite implementation of the jupyterlab_server licenses route
Implements#
Constructors#
constructor#
new Licenses()
Accessors#
appLicensesUrl#
ProtectedgetappLicensesUrl():string
Get the well-known URL of the app licenses.
Returns#
string
Defined in#
appName#
ProtectedgetappName():string
Get the app name (or default).
Returns#
string
Defined in#
labExtensionsUrl#
ProtectedgetlabExtensionsUrl():string
Get the lab extension base url.
Returns#
string
Defined in#
Methods#
_getAppLicenses#
_getAppLicenses():Promise<ILicenseBundle>
Resolve the licenses for the app distribution itself, or the empty bundle.
Returns#
Promise<ILicenseBundle>
Defined in#
_getFederated#
_getFederated():Promise<ILicenseBundles>
Resolve the licenses for all federated extensions.
Returns#
Promise<ILicenseBundles>
Defined in#
_getOneFederated#
_getOneFederated(ext,bundles):Promise<void>
Update the bundles with the extension’s licenses, or the empty bundle.
Parameters#
Name |
Type |
|---|---|
|
|
|
Returns#
Promise<void>
Defined in#
get#
get():Promise<ILicenseResponse>
A GET handler for the licenses
Returns#
Promise<ILicenseResponse>
Implementation of#
ILicenses.get