소스 검색

Remove app.js and enable the Layout module by default

Abdullah Almsaeed 8 년 전
부모
커밋
b2a83e147f
13개의 변경된 파일38개의 추가작업 그리고 24개의 파일을 삭제
  1. 1 2
      build/grunt/uglify.js
  2. 1 1
      build/grunt/watch.js
  3. 10 0
      build/js/dist/Layout.js
  4. 0 0
      build/js/dist/Layout.js.map
  5. 8 0
      build/js/src/AdminLTE.js
  6. 8 0
      build/js/src/Layout.js
  7. 10 0
      dist/js/adminlte.js
  8. 0 0
      dist/js/adminlte.js.map
  9. 0 0
      dist/js/adminlte.min.js
  10. 0 12
      dist/js/app.js
  11. 0 7
      dist/js/app.min.js
  12. 0 1
      index2.html
  13. 0 1
      starter.html

+ 1 - 2
build/grunt/uglify.js

@@ -9,8 +9,7 @@ module.exports = function (grunt) {
     },
     target : {
       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']
     },
     js  : {
-      files: ['dist/js/adminlte.js', 'dist/js/app.js'],
+      files: ['dist/js/adminlte.js'],
       tasks: ['uglify', 'notify:watch']
     }
   };

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

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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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
    * ====================================================

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

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

+ 10 - 0
dist/js/adminlte.js

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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/adminlte.js.map


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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>
 
 <!-- OPTIONAL SCRIPTS -->
-<script src="dist/js/app.min.js"></script>
 <script src="dist/js/demo.js"></script>
 
 <!-- PAGE PLUGINS -->

+ 0 - 1
starter.html

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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.