SHARE
TWEET

Untitled

a guest Jun 17th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // any CSS you require will output into a single css file (app.css in this case)
  2. import '../css/app.css';
  3. import '../../node_modules/bootstrap/dist/css/bootstrap.css';
  4. import '../../node_modules/admin-lte/bower_components/font-awesome/css/font-awesome.min.css';
  5. import '../../node_modules/admin-lte/bower_components/Ionicons/css/ionicons.min.css';
  6. import '../../node_modules/admin-lte/dist/css/AdminLTE.min.css';
  7. import '../../node_modules/admin-lte/dist/css/skins/skin-blue.min.css';
  8.  
  9. const $ = require('jquery');
  10. global.$ = global.jquery = $;
  11.  
  12. import 'bootstrap';
  13. import '../../node_modules/admin-lte/bower_components/jquery-ui/jquery-ui.js';
  14. import '../../node_modules/admin-lte/dist/js/adminlte.js';
  15.  
  16.  
  17. const alertify = require('alertifyjs');
  18. global.alertify = alertify;
  19. // Custom js
  20. import './dashboard/GMDashboard.js';
  21. import './explotations/GMExplotations.js';
  22.      
  23. 'use strict';
  24.  
  25. (function(window, $, alertify) {
  26.  
  27.     window.GMExplotations = function($wrapper) {
  28.         console.log($wrapper);
  29.         this.$wrapper = $wrapper;
  30.  
  31.         //TODO: Bind events
  32.  
  33.         // App Init
  34.         this.init();
  35.     };
  36.  
  37.     $.extend(window.GMExplotations.prototype, {
  38.  
  39.         _selectors: {
  40.  
  41.         },
  42.  
  43.         init: function() {
  44.             console.log('Alertify test');
  45.             alertify
  46.                 .alert("This is an alert dialog.", function(){
  47.                     alertify.message('OK');
  48.                 });
  49.         },
  50.  
  51.     });
  52.  
  53.     let ExplotationsWrapper = $('#explotations-table');
  54.  
  55.     if (ExplotationsWrapper.length > 0) {
  56.         let GM = new GMExplotations(ExplotationsWrapper);
  57.     }
  58.  
  59. })(window, jQuery, alertify); <- Here fails
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top