Преглед на файлове

fix: 启用状态栏,去除右侧边栏

Leo преди 2 години
родител
ревизия
d4386974f8
променени са 3 файла, в които са добавени 18 реда и са изтрити 18 реда
  1. 15 15
      packages/application-extension/src/index.tsx
  2. 2 2
      packages/application/src/shell.ts
  3. 1 1
      packages/extensionmanager-extension/schema/plugin.json

+ 15 - 15
packages/application-extension/src/index.tsx

@@ -303,21 +303,21 @@ const mainCommands: JupyterFrontEndPlugin<void> = {
         isVisible: () => !labShell.isEmpty('left')
       });
 
-      commands.addCommand(CommandIDs.toggleRightArea, {
-        label: () => trans.__('Show Right Sidebar'),
-        execute: () => {
-          if (labShell.rightCollapsed) {
-            labShell.expandRight();
-          } else {
-            labShell.collapseRight();
-            if (labShell.currentWidget) {
-              labShell.activateById(labShell.currentWidget.id);
-            }
-          }
-        },
-        isToggled: () => !labShell.rightCollapsed,
-        isVisible: () => !labShell.isEmpty('right')
-      });
+      // commands.addCommand(CommandIDs.toggleRightArea, {
+      //   label: () => trans.__('Show Right Sidebar'),
+      //   execute: () => {
+      //     if (labShell.rightCollapsed) {
+      //       labShell.expandRight();
+      //     } else {
+      //       labShell.collapseRight();
+      //       if (labShell.currentWidget) {
+      //         labShell.activateById(labShell.currentWidget.id);
+      //       }
+      //     }
+      //   },
+      //   isToggled: () => !labShell.rightCollapsed,
+      //   isVisible: () => !labShell.isEmpty('right')
+      // });
 
       commands.addCommand(CommandIDs.togglePresentationMode, {
         label: () => trans.__('Presentation Mode'),

+ 2 - 2
packages/application/src/shell.ts

@@ -333,7 +333,7 @@ export class LabShell extends Widget implements JupyterFrontEnd.IShell {
     // hsplitPanel.addWidget(rightHandler.stackedPanel);
 
     vsplitPanel.addWidget(hsplitPanel);
-    // vsplitPanel.addWidget(downPanel);
+    vsplitPanel.addWidget(downPanel);
 
     hboxPanel.addWidget(leftHandler.sideBar);
     hboxPanel.addWidget(vsplitPanel);
@@ -358,7 +358,7 @@ export class LabShell extends Widget implements JupyterFrontEnd.IShell {
     rootLayout.addWidget(headerPanel);
     rootLayout.addWidget(topHandler.panel);
     rootLayout.addWidget(hboxPanel);
-    // rootLayout.addWidget(bottomPanel);
+    rootLayout.addWidget(bottomPanel);
 
     // initially hiding header and bottom panel when no elements inside,
     this._headerPanel.hide();

+ 1 - 1
packages/extensionmanager-extension/schema/plugin.json

@@ -58,4 +58,4 @@
   },
   "additionalProperties": false,
   "type": "object"
-}
+}