[beast: 29/47] EBEAST: load jQuery through Vue and make Vue less verbose



commit 2e378bc0ddadf443ebddb234f1f374677ccec2f5
Author: Tim Janik <timj gnu org>
Date:   Fri May 26 00:47:53 2017 +0200

    EBEAST: load jQuery through Vue and make Vue less verbose
    
    Signed-off-by: Tim Janik <timj gnu org>

 ebeast/index.html |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/ebeast/index.html b/ebeast/index.html
index 1cd86ab..025a452 100644
--- a/ebeast/index.html
+++ b/ebeast/index.html
@@ -5,13 +5,14 @@
 
   <link rel="stylesheet" href="objects/app.css">
 
-  <script src="objects/vc-includes.js">/* Vue + compoentns */</script>
-
   <script>
-    'use strict';
-    /* Load application code right away, start application once DOM is ready */
-    window.$ = window.jQuery = require ('jquery');
-    $(require ('./app.js').start_app);
+  'use strict';
+  // 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
+  $(require ('./app.js').start_app);
   </script>
 
 </head>


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