mirror of https://github.com/ColorlibHQ/AdminLTE
Remove app.js and enable the Layout module by default
parent
e47cc06a9e
commit
b2a83e147f
|
@ -9,8 +9,7 @@ module.exports = function (grunt) {
|
||||||
},
|
},
|
||||||
target : {
|
target : {
|
||||||
files: {
|
files: {
|
||||||
'dist/js/adminlte.min.js': ['dist/js/adminlte.js'],
|
'dist/js/adminlte.min.js': ['dist/js/adminlte.js']
|
||||||
'dist/js/app.min.js' : ['dist/js/app.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']
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 one or more lines are too long
|
@ -115,6 +115,14 @@ const Layout = (($) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data API
|
||||||
|
* ====================================================
|
||||||
|
*/
|
||||||
|
$(window).on('load', () => {
|
||||||
|
Layout._jQueryInterface.call($('body'))
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* jQuery API
|
* jQuery API
|
||||||
* ====================================================
|
* ====================================================
|
||||||
|
|
|
@ -116,6 +116,14 @@ const Layout = (($) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data API
|
||||||
|
* ====================================================
|
||||||
|
*/
|
||||||
|
$(window).on('load', () => {
|
||||||
|
Layout._jQueryInterface.call($('body'))
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* jQuery API
|
* jQuery API
|
||||||
* ====================================================
|
* ====================================================
|
||||||
|
|
|
@ -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 one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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));
|
|
|
@ -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);
|
|
|
@ -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 -->
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue