Class: Licenses¶
licenses.Licenses
A JupyterLite implementation of the jupyterlab_server licenses route
Implements¶
Constructors¶
constructor¶
• new Licenses()
Accessors¶
appLicensesUrl¶
• Protected get appLicensesUrl(): string
Get the well-known URL of the app licenses.
Returns¶
string
Defined in¶
packages/licenses/lib/licenses.d.ts:18
appName¶
• Protected get appName(): string
Get the app name (or default).
Returns¶
string
Defined in¶
packages/licenses/lib/licenses.d.ts:14
labExtensionsUrl¶
• Protected get labExtensionsUrl(): string
Get the lab extension base url.
Returns¶
string
Defined in¶
packages/licenses/lib/licenses.d.ts:22
Methods¶
_getAppLicenses¶
▸ _getAppLicenses(): Promise<ILicenseBundle>
Resolve the licenses for the app distribution itself, or the empty bundle.
Returns¶
Promise<ILicenseBundle>
Defined in¶
packages/licenses/lib/licenses.d.ts:26
_getFederated¶
▸ _getFederated(): Promise<ILicenseBundles>
Resolve the licenses for all federated extensions.
Returns¶
Promise<ILicenseBundles>
Defined in¶
packages/licenses/lib/licenses.d.ts:30
_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¶
packages/licenses/lib/licenses.d.ts:34
get¶
▸ get(): Promise<ILicenseResponse>
A GET handler for the licenses
Returns¶
Promise<ILicenseResponse>
Implementation of¶
ILicenses.get
Defined in¶
packages/licenses/lib/licenses.d.ts:10