initial commit
This commit is contained in:
34
app/plugins/fontawesome.ts
Normal file
34
app/plugins/fontawesome.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 d’injecter son CSS automatiquement
|
||||
config.autoAddCss = false
|
||||
Reference in New Issue
Block a user