mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2025-12-06 16:42:59 +00:00
20 lines
565 B
TypeScript
20 lines
565 B
TypeScript
import { App, Plugin } from "vue";
|
|
|
|
/* import the fontawesome core */
|
|
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
|
|
/* import specific icons */
|
|
// import { fab } from "@fortawesome/free-brands-svg-icons";
|
|
import { fas } from "@fortawesome/free-solid-svg-icons";
|
|
|
|
/* add icons to the library */
|
|
library.add(fas);
|
|
|
|
/* import font awesome icon component */
|
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
|
|
export const FontAwesomePlugin: Plugin = {
|
|
install(app: App) {
|
|
app.component("font-awesome-icon", FontAwesomeIcon);
|
|
},
|
|
};
|