Files
List_ultimate/app/plugins/fontawesome.ts
2026-02-26 21:29:34 +01:00

34 lines
1.1 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Font awesome
/* import the fontawesome core */
import { library, config } from '@fortawesome/fontawesome-svg-core'
/* import font awesome icon component */
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
// import icons //
import { faEye, faEyeSlash, faLessThan, faGreaterThan, faPlus, faMinus, faLanguage, faGear, faLocationDot, faArrowsRotate, faDiamondTurnRight} from '@fortawesome/free-solid-svg-icons'
import { faCircleCheck, faCircleXmark, faSquare, faSquareCheck, faTrashCan} from '@fortawesome/free-regular-svg-icons'
export default defineNuxtPlugin((nuxtApp) => {
library.add(faCircleCheck,
faCircleXmark,
faEye,
faEyeSlash,
faSquare,
faSquareCheck,
faTrashCan,
faLessThan,
faGreaterThan,
faPlus,
faMinus,
faGear,
faLocationDot,
faArrowsRotate,
faDiamondTurnRight,
faLanguage)
nuxtApp.vueApp.component('FontAwesomeIcon', FontAwesomeIcon)
})
import '@fortawesome/fontawesome-svg-core/styles.css'
// Empêche FontAwesome dinjecter son CSS automatiquement
config.autoAddCss = false