// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

var JupyterLab = require('jupyterlab/lib/application').JupyterLab;

// ES6 Promise polyfill
require('es6-promise').polyfill();

require('font-awesome/css/font-awesome.min.css');
require('jupyterlab/lib/default-theme/index.css');

var lab = new JupyterLab();

lab.registerPlugins([
  require('jupyterlab/lib/about/plugin').aboutExtension,
  require('jupyterlab/lib/clipboard/plugin').clipboardProvider,
  require('jupyterlab/lib/commandpalette/plugin').commandPaletteProvider,
  require('jupyterlab/lib/console/plugin').consoleExtension,
  require('jupyterlab/lib/docregistry/plugin').docRegistryProvider,
  require('jupyterlab/lib/editorwidget/plugin').editorHandlerProvider,
  require('jupyterlab/lib/faq/plugin').faqExtension,
  require('jupyterlab/lib/filebrowser/plugin').fileBrowserProvider,
  require('jupyterlab/lib/help/plugin').helpHandlerExtension,
  require('jupyterlab/lib/imagewidget/plugin').imageHandlerExtension,
  require('jupyterlab/lib/inspector/plugin').inspectorProvider,
  require('jupyterlab/lib/landing/plugin').landingExtension,
  require('jupyterlab/lib/main/plugin').mainExtension,
  require('jupyterlab/lib/mainmenu/plugin').mainMenuProvider,
  require('jupyterlab/lib/markdownwidget/plugin').markdownHandlerExtension,
  require('jupyterlab/lib/notebook/plugin').notebookTrackerProvider,
  require('jupyterlab/lib/rendermime/plugin').renderMimeProvider,
  require('jupyterlab/lib/running/plugin').runningSessionsExtension,
  require('jupyterlab/lib/services/plugin').servicesProvider,
  require('jupyterlab/lib/shortcuts/plugin').shortcutsExtension,
  require('jupyterlab/lib/terminal/plugin').terminalExtension
]);

window.onload = function() { lab.start(); }
