[beast: 38/47] EBEAST: index.html: provide Electron and Bse early on, setup Shell



commit d92c7e28d693ad919770a7993ca4e34f67777722
Author: Tim Janik <timj gnu org>
Date:   Thu Jun 8 18:19:55 2017 +0200

    EBEAST: index.html: provide Electron and Bse early on, setup Shell
    
    Signed-off-by: Tim Janik <timj gnu org>

 ebeast/index.html |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/ebeast/index.html b/ebeast/index.html
index 025a452..6e60a29 100644
--- a/ebeast/index.html
+++ b/ebeast/index.html
@@ -1,20 +1,33 @@
 <!DOCTYPE html> <!-- GNU LGPL v2.1+: http://www.gnu.org/licenses/lgpl.html -->
 <html><head>
 
-  <title>BEAST</title>
+  <title>Beast - Music Synthesizer and Composer</title>
 
   <link rel="stylesheet" href="objects/app.css">
 
   <script>
   'use strict';
+  window.Electron = require ('electron').remote;
+  window.Bse = require ('./v8bse/v8bse.node');
+  window.T = (txt) => { return txt; }; // translation indicator
   // Load jQuery + utils + Vue + components
   require ('./vc/includes.js');
   Vue.config.productionTip = false;
   Vue.config.silent = true;
-  // Load application code right away, start application once DOM is ready
+  // Load application code, start application once DOM is ready
   $(require ('./app.js').start_app);
   </script>
 
 </head>
-<body></body>
+<body>
+
+  <div id="mount-vue">
+    <vc-projectshell ref="Shell"></vc-projectshell>
+  </div>
+
+  <script>
+  window.Shell = (new Vue ({ el: '#mount-vue' })).$refs['Shell'];
+  </script>
+
+</body>
 </html>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]