UNPKG

@jupyterlab/git

Version:

A JupyterLab extension for version control using git

29 lines (28 loc) 1.12 kB
import { FileBrowserModel } from '@jupyterlab/filebrowser'; import { ISettingRegistry } from '@jupyterlab/settingregistry'; import { TranslationBundle } from '@jupyterlab/translation'; import { CommandRegistry } from '@lumino/commands'; import { Message } from '@lumino/messaging'; import { Widget } from '@lumino/widgets'; import { SidePanel } from '@jupyterlab/ui-components'; import { GitExtension } from '../model'; /** * The Git extension's main side-bar widget. */ export declare class GitWidget extends SidePanel { constructor(model: GitExtension, settings: ISettingRegistry.ISettings, commands: CommandRegistry, fileBrowserModel: FileBrowserModel, trans: TranslationBundle, options?: Widget.IOptions); /** * A message handler invoked on a `'before-show'` message. */ onBeforeShow(msg: Message): void; private _createSection; private _createChangesSection; private _createHistorySection; private _createBranchesSection; private _renderTopToolbar; private _gitTrans; private _commands; private _fileBrowserModel; private _model; private _settings; }