Browse Source

Remove app.js and enable the Layout module by default

Abdullah Almsaeed 8 years ago
parent
commit
b2a83e147f

+ 1 - 2
build/grunt/uglify.js

@@ -9,8 +9,7 @@ module.exports = function (grunt) {
     },
     },
     target : {
     target : {
       files: {
       files: {
-        'dist/js/adminlte.min.js': ['dist/js/adminlte.js'],
-        'dist/js/app.min.js'     : ['dist/js/app.js']
+        'dist/js/adminlte.min.js': ['dist/js/adminlte.js']
       }
       }
     }
     }
   };
   };

+ 1 - 1
build/grunt/watch.js

@@ -12,7 +12,7 @@ module.exports = function (grunt) {
       tasks: ['concat', 'babel', 'uglify', 'notify:watch']
       tasks: ['concat', 'babel', 'uglify', 'notify:watch']
     },
     },
     js  : {
     js  : {
-      files: ['dist/js/adminlte.js', 'dist/js/app.js'],
+      files: ['dist/js/adminlte.js'],
       tasks: ['uglify', 'notify:watch']
       tasks: ['uglify', 'notify:watch']
     }
     }
   };
   };

+ 10 - 0
build/js/dist/Layout.js

@@ -129,6 +129,16 @@ var Layout = function ($) {
     return Layout;
     return Layout;
   }();
   }();
 
 
+  /**
+   * Data API
+   * ====================================================
+   */
+
+
+  $(window).on('load', function () {
+    Layout._jQueryInterface.call($('body'));
+  });
+
   /**
   /**
    * jQuery API
    * jQuery API
    * ====================================================
    * ====================================================

File diff suppressed because it is too large
+ 0 - 0
build/js/dist/Layout.js.map


+ 8 - 0
build/js/src/AdminLTE.js

@@ -115,6 +115,14 @@ const Layout = (($) => {
     }
     }
   }
   }
 
 
+  /**
+   * Data API
+   * ====================================================
+   */
+  $(window).on('load', () => {
+    Layout._jQueryInterface.call($('body'))
+  });
+
   /**
   /**
    * jQuery API
    * jQuery API
    * ====================================================
    * ====================================================

+ 8 - 0
build/js/src/Layout.js

@@ -116,6 +116,14 @@ const Layout = (($) => {
     }
     }
   }
   }
 
 
+  /**
+   * Data API
+   * ====================================================
+   */
+  $(window).on('load', () => {
+    Layout._jQueryInterface.call($('body'))
+  });
+
   /**
   /**
    * jQuery API
    * jQuery API
    * ====================================================
    * ====================================================

+ 10 - 0
dist/js/adminlte.js

@@ -128,6 +128,16 @@ var Layout = function ($) {
     return Layout;
     return Layout;
   }();
   }();
 
 
+  /**
+   * Data API
+   * ====================================================
+   */
+
+
+  $(window).on('load', function () {
+    Layout._jQueryInterface.call($('body'));
+  });
+
   /**
   /**
    * jQuery API
    * jQuery API
    * ====================================================
    * ====================================================

File diff suppressed because it is too large
+ 0 - 0
dist/js/adminlte.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/adminlte.min.js


+ 0 - 12
dist/js/app.js

@@ -1,12 +0,0 @@
-/*!
- * AdminLTE 3.0.0 Demo App
- * Author    Abdullah Almsaeed <abdullah@almsaeedstudio.com>
- * Homepage  Almsaeed Studio <https://almsaeedstudio.com>
- * License   MIT <https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE>
- */
-(function ($) {
-  'use strict';
-
-  // Activate the layout manager
-  $('body').Layout();
-}(jQuery));

+ 0 - 7
dist/js/app.min.js

@@ -1,7 +0,0 @@
-/*!
- * AdminLTE 3.0.0 Demo App
- * Author    Abdullah Almsaeed <abdullah@almsaeedstudio.com>
- * Homepage  Almsaeed Studio <https://almsaeedstudio.com>
- * License   MIT <https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE>
- */
-!function(a){"use strict";a("body").Layout()}(jQuery);

+ 0 - 1
index2.html

@@ -1334,7 +1334,6 @@ to get the desired effect
 <script src="dist/js/adminlte.js"></script>
 <script src="dist/js/adminlte.js"></script>
 
 
 <!-- OPTIONAL SCRIPTS -->
 <!-- OPTIONAL SCRIPTS -->
-<script src="dist/js/app.min.js"></script>
 <script src="dist/js/demo.js"></script>
 <script src="dist/js/demo.js"></script>
 
 
 <!-- PAGE PLUGINS -->
 <!-- PAGE PLUGINS -->

+ 0 - 1
starter.html

@@ -602,7 +602,6 @@ to get the desired effect
 <script src="dist/js/adminlte.js"></script>
 <script src="dist/js/adminlte.js"></script>
 
 
 <!-- OPTIONAL SCRIPTS -->
 <!-- OPTIONAL SCRIPTS -->
-<script src="dist/js/app.min.js"></script>
 <script src="dist/js/demo.js"></script>
 <script src="dist/js/demo.js"></script>
 
 
 </body>
 </body>

Some files were not shown because too many files changed in this diff