Remove app.js and enable the Layout module by default

This commit is contained in:
Abdullah Almsaeed 2016-11-06 14:44:01 -05:00
parent e47cc06a9e
commit b2a83e147f
13 changed files with 41 additions and 27 deletions

View file

@ -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']
}
}
};

View file

@ -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']
}
};

View file

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

File diff suppressed because one or more lines are too long

View file

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

View file

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

10
dist/js/adminlte.js vendored
View file

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

12
dist/js/app.js vendored
View file

@ -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));

7
dist/js/app.min.js vendored
View file

@ -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);

View file

@ -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 -->

View file

@ -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>