Skip to content

Commit

Permalink
Add mobile menu icon to the script
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCarmen committed Dec 16, 2024
1 parent 0eaba85 commit 226bc86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
13 changes: 6 additions & 7 deletions resources/js/vendor.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/***/ }),
Expand Down
15 changes: 8 additions & 7 deletions src/js/vendor.js
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit 226bc86

Please sign in to comment.