Options
All
  • Public
  • Public/Protected
  • All
Menu

Model for an extension list.

Hierarchy

Index

Constructors

constructor

Properties

Private _allowedExtensionsArray

_allowedExtensionsArray: any

Private _app

_app: any

Private _blockedExtensionsArray

_blockedExtensionsArray: any

Private _debouncedUpdate

_debouncedUpdate: any

Private _installed

_installed: any

Private _listMode

_listMode: any

Private _listingIsLoaded

_listingIsLoaded: any

Private _page

_page: any

Private _pagination

_pagination: any

Private _pendingActions

_pendingActions: any

Private _query

_query: any

Private _searchResult

_searchResult: any

Private _totalEntries

_totalEntries: any

Private _totalallowedExtensionsFound

_totalallowedExtensionsFound: any

Private _totalblockedExtensionsFound

_totalblockedExtensionsFound: any

blockedExtensionsError

blockedExtensionsError: string

Contains an error message if an error occurred when searching for lists.

initialized

initialized: boolean

Whether the model has finished async initialization.

installedError

installedError: string

Contains an error message if an error occurred when querying installed extensions.

Private isListed

isListed: any

Protected lister

lister: Lister

promptBuild

promptBuild: boolean

Whether a fresh build should be considered due to actions taken.

searchError

searchError: string

Contains an error message if an error occurred when searching for extensions.

Protected searcher

searcher: Searcher

A helper for performing searches of jupyterlab extensions on the NPM repository.

serverConnectionError

serverConnectionError: string

Contains an error message if an error occurred when querying the server extension.

Protected serverConnectionSettings

serverConnectionSettings: ISettings

Settings for connecting to the notebook server.

serverRequirementsError

serverRequirementsError: string

Contains an error message if the server has unfulfilled requirements.

Protected serviceManager

serviceManager: ServiceManager

The service manager to use for building.

Readonly stateChanged

stateChanged: Signal<ListModel, void>

A signal emitted when any model state changes.

Protected translator

translator: ITranslator

Accessors

installed

  • get installed(): readonly IEntry[]
  • A readonly array of the installed extensions.

    Returns readonly IEntry[]

isDisposed

  • get isDisposed(): boolean
  • Test whether the model is disposed.

    Returns boolean

listMode

  • get listMode(): "default" | "block" | "allow" | "invalid"
  • The list mode.

    Returns "default" | "block" | "allow" | "invalid"

page

  • get page(): number
  • set page(value: number): void
  • The current NPM repository search page.

    The npm repository search is paginated by the pagination attribute. The page value selects which page is used.

    Setting its value triggers a new search.

    Returns number

  • The current NPM repository search page.

    The npm repository search is paginated by the pagination attribute. The page value selects which page is used.

    Setting its value triggers a new search.

    Parameters

    • value: number

    Returns void

pagination

  • get pagination(): number
  • set pagination(value: number): void
  • The NPM repository search pagination.

    The npm repository search is paginated by the pagination attribute. The page value selects which page is used.

    Setting its value triggers a new search.

    Returns number

  • The NPM repository search pagination.

    The npm repository search is paginated by the pagination attribute. The page value selects which page is used.

    Setting its value triggers a new search.

    Parameters

    • value: number

    Returns void

query

  • get query(): string
  • set query(value: string): void
  • The current NPM repository search query.

    Setting its value triggers a new search.

    Returns string

  • The current NPM repository search query.

    Setting its value triggers a new search.

    Parameters

    • value: string

    Returns void

searchResult

  • get searchResult(): readonly IEntry[]
  • A readonly array containing the latest search result

    Returns readonly IEntry[]

totalEntries

  • get totalEntries(): number
  • The total number of results in the current search.

    Returns number

totalallowedExtensionsFound

  • get totalallowedExtensionsFound(): number
  • The total number of allowedExtensions results in the current search.

    Returns number

totalblockedExtensionsFound

  • get totalblockedExtensionsFound(): number
  • The total number of blockedExtensions results in the current search.

    Returns number

Methods

Protected _addPendingAction

  • _addPendingAction(pending: Promise<any>): void
  • Add a pending action.

    Parameters

    • pending: Promise<any>

      A promise that resolves when the action is completed.

    Returns void

Protected _performAction

  • Send a request to the server to perform an action on an extension.

    Parameters

    • action: string

      A valid action to perform.

    • entry: IEntry

      The extension to perform the action on.

    Returns Promise<IActionReply>

checkCompanionPackages

  • checkCompanionPackages(entry: IEntry): Promise<boolean>
  • Check for companion packages in kernels or server.

    Parameters

    • entry: IEntry

      An entry indicating which extension to check.

    Returns Promise<boolean>

disable

  • disable(entry: IEntry): Promise<void>
  • Disable an extension.

    Parameters

    • entry: IEntry

      An entry indicating which extension to disable.

    Returns Promise<void>

dispose

  • dispose(): void
  • Dispose the extensions list model.

    Returns void

enable

  • enable(entry: IEntry): Promise<void>
  • Enable an extension.

    Parameters

    • entry: IEntry

      An entry indicating which extension to enable.

    Returns Promise<void>

Protected fetchInstalled

  • Make a request to the server for info about its installed extensions.

    Parameters

    • Optional refreshInstalled: boolean

    Returns Promise<IInstalledEntry[]>

hasPendingActions

  • hasPendingActions(): boolean
  • Whether there are currently any actions pending.

    Returns boolean

ignoreBuildRecommendation

  • ignoreBuildRecommendation(): void
  • Ignore a build recommendation

    Returns void

initialize

  • initialize(): Promise<void>
  • Initialize the model.

    Returns Promise<void>

install

  • install(entry: IEntry): Promise<void>
  • Install an extension.

    Parameters

    • entry: IEntry

      An entry indicating which extension to install.

    Returns Promise<void>

performBuild

  • performBuild(): void
  • Perform a build on the server

    Returns void

Protected performSearch

  • performSearch(): Promise<{}>
  • Search with current query.

    Sets searchError and totalEntries as appropriate.

    Returns Promise<{}>

    } The search result as a map of entries.

Protected queryInstalled

  • queryInstalled(refreshInstalled: boolean): Promise<{}>
  • Query the installed extensions.

    Sets installedError as appropriate.

    Parameters

    • refreshInstalled: boolean

    Returns Promise<{}>

    } A map of installed extensions.

refreshInstalled

  • refreshInstalled(): void
  • Ignore a build recommendation

    Returns void

Protected translateInstalled

  • Translate installed extensions information from the server into entries.

    Parameters

    Returns Promise<{}>

Protected translateSearchResult

  • translateSearchResult(res: Promise<ISearchResult>): Promise<{}>
  • Translate search results from an npm repository query into entries and remove entries with 'deprecated' in the keyword list

    Parameters

    Returns Promise<{}>

triggerBuildCheck

  • triggerBuildCheck(): void
  • Trigger a build check to incorporate actions taken.

    Returns void

uninstall

  • uninstall(entry: IEntry): Promise<void>
  • Uninstall an extension.

    Parameters

    • entry: IEntry

      An entry indicating which extension to uninstall.

    Returns Promise<void>

Protected update

  • update(refreshInstalled?: boolean): Promise<void>
  • Update the current model.

    This will query the NPM repository, and the notebook server.

    Emits the stateChanged signal on successful completion.

    Parameters

    • Optional refreshInstalled: boolean

    Returns Promise<void>

Generated using TypeDoc