Browse Source

Removed header from initial launcher since new 'About JupyterLab' dialog conveys the information that was being displayed

cameronoelsen 7 years ago
parent
commit
70e3186d34
2 changed files with 1 additions and 107 deletions
  1. 1 59
      packages/launcher-extension/src/index.ts
  2. 0 48
      packages/launcher-extension/style/index.css

+ 1 - 59
packages/launcher-extension/src/index.ts

@@ -18,9 +18,6 @@ import {
   ILauncher, LauncherModel, LauncherWidget
 } from '@jupyterlab/launcher';
 
-import {
-  VirtualNode, h
-} from '@phosphor/virtualdom';
 
 import {
   Widget
@@ -37,31 +34,6 @@ namespace CommandIDs {
   const create = 'launcher-jupyterlab:create';
 };
 
-/**
- * The class name added to the launcher header section.
- */
-const LAUNCHER_HEADER_CLASS = 'jp-Launcher-header';
-
-/**
- * The class name for the JupyterLab icon from default-theme.
- */
-const JUPYTERLAB_ICON_CLASS = 'jp-ImageJupyterLab';
-
-/**
- * The class name added to specify size of the JupyterLab logo.
- */
-const LAUNCHER_LOGO_CLASS = 'jp-Launcher-logo';
-
-/**
- * The class name added to the preview message subtitle.
- */
-const LAUNCHER_SUBTITLE_CLASS = 'jp-Launcher-subtitle';
-
-/**
- * The class name added to the header text.
- */
-const LAUNCHER_BODY_HEADER_CLASS = 'jp-Launcher-body-header';
-
 
 /**
  * A service providing an interface to the the launcher.
@@ -101,11 +73,7 @@ function activate(app: JupyterLab, services: IServiceManager, palette: ICommandP
         shell.addToMainArea(item, { ref: id });
         shell.activateById(item.id);
       };
-      let header: VirtualNode;
-      if (args['banner'] === true) {
-        header = Private.createBanner(app.info.version);
-      }
-      let widget = new LauncherWidget({ cwd, callback, header });
+      let widget = new LauncherWidget({ cwd, callback });
       widget.model = model;
       widget.id = id;
       widget.title.label = 'Launcher';
@@ -132,30 +100,4 @@ namespace Private {
    */
   export
   let id = 0;
-
-
-  /**
-   * Create a banner given an app version.
-   */
-  export
-  function createBanner(version: string): VirtualNode {
-    let previewMessage = `alpha (v${version})`;
-    let headerText = 'Start a new activity';
-    let logo = h.span({
-      className: `${JUPYTERLAB_ICON_CLASS} ${LAUNCHER_LOGO_CLASS}`
-    });
-    let subtitle = h.span(
-      {className: LAUNCHER_SUBTITLE_CLASS},
-      previewMessage
-    );
-    let bodyheader = h.span({
-      className: LAUNCHER_BODY_HEADER_CLASS
-    }, headerText);
-
-    return h.div({ className: LAUNCHER_HEADER_CLASS},
-      logo,
-      subtitle,
-      bodyheader
-    );
-  }
 }

+ 0 - 48
packages/launcher-extension/style/index.css

@@ -3,51 +3,3 @@
 | Distributed under the terms of the Modified BSD License.
 |----------------------------------------------------------------------------*/
 
-
-.jp-Launcher-header {
-  margin: auto;
-  font-size: var(--jp-ui-font-size1);
-  color: var(--jp-ui-font-color1);
-  background: var(--jp-layout-color1);
-  text-align: center;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  flex-direction: column;
-  padding-top: 14px;
-  padding-bottom: 14px;
-  width: 100%;
-}
-
-
-.jp-Launcher-logo {
-  flex: 0 0 50px;
-  margin-left: auto;
-  margin-right: auto;
-  width: 232px;
-  background-color: var(--jp-layout-color1);
-  background-size: 232px 50px;
-  background-repeat: no-repeat;
-  background-position: center;
-}
-
-
-.jp-Launcher-subtitle {
-  color: var(--md-grey-600);
-  background-color: var(--jp-layout-color1);
-  font-size: var(--jp-ui-font-size2);
-  width: 200px;
-  font-weight: 400;
-  letter-spacing: .4px;
-  text-align: left;
-  padding-left: 68px;
-}
-
-
-.jp-Launcher-body-header {
-  padding-top: 16px;
-  padding-bottom: 4px;
-  font-size: var(--jp-ui-font-size2);
-  color: var(--md-grey-600);
-  letter-spacing: .4px;
-}