Ver Fonte

Update About page and open it automatically.

We need to very clearly tell the user that this is very alpha.
Jason Grout há 8 anos atrás
pai
commit
a32ed7f454
1 ficheiros alterados com 25 adições e 18 exclusões
  1. 25 18
      src/about/plugin.ts

+ 25 - 18
src/about/plugin.ts

@@ -27,13 +27,17 @@ function activateAbout(app: Application): void {
   widget.title.text = 'About';
   widget.title.closable = true;
   widget.node.innerHTML = `
-<h1>Welcome to the JupyterLab alpha preview</h1>
+<h1>Welcome to the JupyterLab pre-alpha preview</h1>
 
-<p>This demo gives an alpha-level preview of the JupyterLab environment.  Here is a brief description of some of the things you'll find in this demo.</p>
+<p>This demo gives an pre-alpha-level preview of the JupyterLab environment. We are developing JupyterLab at <a href="https://github.com/jupyter/jupyterlab">https://github.com/jupyter/jupyterlab</a>. Pull requests are welcome!</p>
+
+<p>Click on the JupyterLab tab for the initial JupyterLab screen.</p>
+
+<p>Here is a brief description of some of the things you'll find in this demo.</p>
 
 <h2>File Browser</h2>
 
-<p>Clicking the "Files" tab, located on the left, will toggle the file browser. Navigate into directories by double-clicking, and use the breadcrumbs at the top to navigate out. Create a new file/directory by clicking the plus icon at the top. Click the middle icon to upload files,and click the last icon to reload the file listing. Drag and drop files to move them to subdirectories. Click on a selected file to rename it. Sort the list by clicking on a column header. Open a file by double-clicking it or dragging it into the main area. Opening an image displays the image. Opening a code file opens a code editor. Opening a notebook opens a very preliminary proof-of-concept <strong>non-executable</strong> view of the notebook.</p>
+<p>Clicking the "Files" tab, located on the left, will toggle the file browser. Navigate into directories by double-clicking, and use the breadcrumbs at the top to navigate out. Create a new file/directory by clicking the plus icon at the top. Click the middle icon to upload files, and click the last icon to reload the file listing. Drag and drop files to move them to subdirectories. Click on a selected file to rename it. Sort the list by clicking on a column header. Open a file by double-clicking it or dragging it into the main area. Opening an image displays the image. Opening a code file opens a code editor. Opening a notebook opens a very preliminary notebook component.</p>
 
 <h2>Command Palette</h2>
 
@@ -43,6 +47,7 @@ function activateAbout(app: Application): void {
 
 <ul>
 <li>Open a new terminal (requires OS X or Linux)</li>
+<li>Open a ipython console</li>
 <li>Open a new file</li>
 <li>Save a file</li>
 <li>Open up a help panel on the right</li>
@@ -50,24 +55,26 @@ function activateAbout(app: Application): void {
 
 <h2>Main area</h2>
 
-<p>The main area is divided into panels of tabs. Drag a tab around the area to split the main area in different ways. Drag a tab to the center of a panel to move a tab without splitting the panel (in this case, the whole panel will highlight, instead of just a portion). Resize panels by dragging their borders (be aware that panels and sidebars also have a minimum width). A file that contains changes to be saved has a star for a close icon.</p>
+<p>The main area is divided into panels of tabs. Drag a tab around the area to split the main area in different ways. Drag a tab to the center of a panel to move a tab without splitting the panel (in this case, the whole panel will highlight instead of just a portion). Resize panels by dragging their borders (be aware that panels and sidebars also have a minimum width). A file that contains changes to be saved has a star for a close icon.</p>
 
 <h2>Notebook</h2>
 
-<p>Opening a notebook will open a minimally featured notebook. Code execution, Markdown rendering, and basic cell toolbar actions are supported.  Future versions will add more features from the existing Jupyter notebook.</p>
+<p>Opening a notebook will open a minimally-featured notebook. Code execution, Markdown rendering, and basic cell toolbar actions are supported.  Future versions will add more features from the existing Jupyter notebook.</p>
 `;
 
-    app.commands.add([{
-      id: commandId,
-      handler: () => {
-        if (!widget.isAttached) app.shell.addToMainArea(widget);
-        app.shell.activateMain(widget.id);
-      }
-    }]);
-
-    app.palette.add([{
-      command: commandId,
-      text: 'About JupyterLab',
-      category: 'Help'
-    }]);
+  app.commands.add([{
+    id: commandId,
+    handler: () => {
+      if (!widget.isAttached) app.shell.addToMainArea(widget);
+      app.shell.activateMain(widget.id);
+    }
+  }]);
+
+  app.palette.add([{
+    command: commandId,
+    text: 'About JupyterLab',
+    category: 'Help'
+  }]);
+
+  app.shell.addToMainArea(widget);
 }