From 226bc86937790bafce8882030f41738a66920974 Mon Sep 17 00:00:00 2001 From: JustCarmen Date: Mon, 16 Dec 2024 11:01:29 +0100 Subject: [PATCH] Add mobile menu icon to the script --- resources/js/vendor.min.js | 13 ++++++------- src/js/vendor.js | 15 ++++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/resources/js/vendor.min.js b/resources/js/vendor.min.js index 20e6562..59e711e 100644 --- a/resources/js/vendor.min.js +++ b/resources/js/vendor.min.js @@ -12,16 +12,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core */ "./node_modules/@fortawesome/fontawesome-svg-core/index.mjs"); /* harmony import */ var _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-regular-svg-icons */ "../../node_modules/@fortawesome/free-regular-svg-icons/index.mjs"); /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.mjs"); -// Just import the subset of icons that we use in resources/views/icons/ +/* Just import the subset of icons that we use in: +- resources/views/icons +- resources/views/theme/script.js.phtml +- resources/views/layouts/body/navbar-toggler-secondary.phtml */ -_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.library.add( -// For resources/views/icons/* -_fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faCalendarDays, _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faUserCircle); -_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.library.add( -// For resources/views/icons/* -_fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__.faSquarePlus, _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__.faBell, _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__.faUser); +_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.library.add(_fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faCalendarDays, _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faUserCircle); +_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.library.add(_fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__.faSquarePlus, _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__.faBell, _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__.faUser, _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__.faEllipsisVertical); _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.dom.watch(); /***/ }), diff --git a/src/js/vendor.js b/src/js/vendor.js index e78d405..7ccce16 100644 --- a/src/js/vendor.js +++ b/src/js/vendor.js @@ -1,20 +1,21 @@ -// Just import the subset of icons that we use in resources/views/icons/ +/* Just import the subset of icons that we use in: +- resources/views/icons +- resources/views/theme/script.js.phtml +- resources/views/layouts/body/navbar-toggler-secondary.phtml */ import { dom, library } from '@fortawesome/fontawesome-svg-core'; import { - // For resources/views/icons/* + // Regular icons faCalendarDays, faUserCircle } from '@fortawesome/free-regular-svg-icons'; import { - // For resources/views/icons/ (faTimes solid version is in webtrees core)* - faSquarePlus, faBell, faUser + // Solid icons (faTimes solid is part of webtrees core) + faSquarePlus, faBell, faUser, faEllipsisVertical } from '@fortawesome/free-solid-svg-icons'; library.add( - // For resources/views/icons/* faCalendarDays, faUserCircle ); library.add( - // For resources/views/icons/* - faSquarePlus, faBell, faUser + faSquarePlus, faBell, faUser, faEllipsisVertical ); dom.watch();