UNPKG

@jupyterlab/git

Version:

A JupyterLab extension for version control using git

41 lines (40 loc) 1.08 kB
import * as React from 'react'; import { TranslationBundle } from '@jupyterlab/translation'; import { Git } from '../tokens'; import { GitExtension } from '../model'; export interface IManageRemoteDialogueProps { /** * The application language translator. */ trans: TranslationBundle; /** * Warning content. */ warningContent?: string; /** * Git extension model */ model: GitExtension; /** * Callback to handle the closing of dialogue */ onClose: () => void; } export interface IManageRemoteDialogueState { /** * New remote name and url pair */ newRemote: Git.IGitRemote; /** * List of known remotes */ existingRemotes: Git.IGitRemote[] | null; } export declare class ManageRemoteDialogue extends React.Component<IManageRemoteDialogueProps, IManageRemoteDialogueState> { constructor(props: IManageRemoteDialogueProps); componentDidMount(): Promise<void>; render(): JSX.Element; private _nameInput; private _urlInput; private _addRemoteButton; }