-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: get fontawesome via npm * chore: remove old way of using FA * chore: remove manual FA includes * style: regen resources * chore: formatting * chore: remove testing unused icons; fix file import * chore: remove commented out line * chore: re-gen js
- Loading branch information
1 parent
8e61b44
commit 1179ccf
Showing
11 changed files
with
886 additions
and
1,619 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* This file loads in font awesome for use in Notify | ||
* We only load the icons we use to keep the bundle size down. To add an icon: | ||
* - import if from @fortawesome/free-solid-svg-icons | ||
* - include it in the library.add call | ||
*/ | ||
import { config } from "@fortawesome/fontawesome-svg-core"; | ||
import { library, dom } from "@fortawesome/fontawesome-svg-core"; | ||
import { faCheck } from "@fortawesome/free-solid-svg-icons/faCheck"; | ||
import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons/faArrowUpRightFromSquare"; | ||
import { faPlus } from "@fortawesome/free-solid-svg-icons/faPlus"; | ||
import { faArrowRight } from "@fortawesome/free-solid-svg-icons/faArrowRight"; | ||
import { faAngleDown } from "@fortawesome/free-solid-svg-icons/faAngleDown"; | ||
import { faCircleQuestion } from "@fortawesome/free-solid-svg-icons/faCircleQuestion"; | ||
import { faTriangleExclamation } from "@fortawesome/free-solid-svg-icons/faTriangleExclamation"; | ||
import { faCircleExclamation } from "@fortawesome/free-solid-svg-icons/faCircleExclamation"; | ||
|
||
let FontAwesomeIconLoader = () => { | ||
config.autoAddCss = false; | ||
library.add([ | ||
faCheck, | ||
faArrowUpRightFromSquare, | ||
faPlus, | ||
faArrowRight, | ||
faAngleDown, | ||
faCircleQuestion, | ||
faTriangleExclamation, | ||
faCircleExclamation, | ||
]); | ||
dom.watch(); | ||
}; | ||
|
||
export default FontAwesomeIconLoader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.