From e61d3324f74fea64be1007faefde84ede7ec5db7 Mon Sep 17 00:00:00 2001 From: MGatner Date: Fri, 10 Dec 2021 21:52:23 +0000 Subject: [PATCH] Add AdminLTE --- README.md | 1 + composer.json | 1 + src/Bundles/AdminLTEBundle.php | 19 +++++++++++++++++++ src/Publishers/AdminLTEPublisher.php | 11 +++++++++++ tests/BundlesTest.php | 11 +++++++++++ tests/PublishersTest.php | 9 +++++++++ 6 files changed, 52 insertions(+) create mode 100644 src/Bundles/AdminLTEBundle.php create mode 100644 src/Publishers/AdminLTEPublisher.php diff --git a/README.md b/README.md index c42d278..74bca35 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ AdminLTE and other Bootstrap-specific libraries will adjust accordingly. ### Asset Libraries +* [AdminLTE](https://adminlte.io) - Admin dashboard template * [Bootstrap](https://getbootstrap.com) - Mobile-first front-end CSS framework directed at responsive web development * [DataTables](https://datatables.net) - To enhance the accessibility of data in HTML tables * [FontAwesome](https://fontawesome.com) - Popular icon set and toolkit for vector icons and social logos diff --git a/composer.json b/composer.json index 3b29202..e49275a 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,7 @@ ], "require": { "php": "^7.3 || ^8.0", + "almasaeed2010/adminlte": "^3.0", "datatables.net/datatables.net-bs4": "dev-master", "fortawesome/font-awesome": "^5.15", "components/jquery": "^3.3", diff --git a/src/Bundles/AdminLTEBundle.php b/src/Bundles/AdminLTEBundle.php new file mode 100644 index 0000000..d468eba --- /dev/null +++ b/src/Bundles/AdminLTEBundle.php @@ -0,0 +1,19 @@ +addPath('adminlte/css/adminlte.min.css') + ->addPath('adminlte/js/adminlte.min.js') + ->merge(new BootstrapBundle()); + } +} diff --git a/src/Publishers/AdminLTEPublisher.php b/src/Publishers/AdminLTEPublisher.php new file mode 100644 index 0000000..bced3a4 --- /dev/null +++ b/src/Publishers/AdminLTEPublisher.php @@ -0,0 +1,11 @@ +