Prechádzať zdrojové kódy

wip implement builder

Steven Silvester 7 rokov pred
rodič
commit
8b9b47381b

+ 0 - 1
examples/app/index.js

@@ -26,7 +26,6 @@ var mods = [
   require('@jupyterlab/markdownviewer-extension'),
   require('@jupyterlab/notebook-extension'),
   require('@jupyterlab/running-extension'),
-  require('@jupyterlab/services-extension'),
   require('@jupyterlab/settingeditor-extension'),
   require('@jupyterlab/shortcuts-extension'),
   require('@jupyterlab/tabmanager-extension'),

+ 0 - 1
examples/app/package.json

@@ -24,7 +24,6 @@
     "@jupyterlab/markdownviewer-extension": "^0.9.0",
     "@jupyterlab/notebook-extension": "^0.9.0",
     "@jupyterlab/running-extension": "^0.9.0",
-    "@jupyterlab/services-extension": "^0.9.0",
     "@jupyterlab/settingeditor-extension": "^0.4.0",
     "@jupyterlab/shortcuts-extension": "^0.9.0",
     "@jupyterlab/tabmanager-extension": "^0.9.0",

+ 1 - 1
jupyterlab/build_handler.py

@@ -16,7 +16,7 @@ class BuildHandler(APIHandler):
 
     @web.authenticated
     @gen.coroutine
-    def get(self):
+    def post(self):
         self.log.debug('Starting build')
         try:
             yield gen.maybe_future(self.run_build())

+ 4 - 1
packages/application-extension/src/index.ts

@@ -49,7 +49,8 @@ const mainPlugin: JupyterLabPlugin<void> = {
 
     // Temporary build message for manual rebuild.
     let buildMessage = PageConfig.getOption('buildRequired');
-    if (buildMessage) {
+    console.log(buildMessage);
+    if (true) {
       let body = h.div(
         h.p(
           'JupyterLab build is out of date',
@@ -65,6 +66,8 @@ const mainPlugin: JupyterLabPlugin<void> = {
         title: 'Build Recommended',
         body,
         buttons: [Dialog.okButton()]
+      }).then(() => {
+        app.serviceManager.builder.build();
       });
     }
 

+ 1 - 0
packages/application/package.json

@@ -18,6 +18,7 @@
     "@jupyterlab/docregistry": "^0.9.0",
     "@jupyterlab/rendermime": "^0.9.0",
     "@jupyterlab/rendermime-interfaces": "^0.3.0",
+    "@jupyterlab/services": "^0.49.0",
     "@phosphor/algorithm": "^1.1.1",
     "@phosphor/application": "^1.3.0",
     "@phosphor/coreutils": "^1.2.0",