mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 08:13:01 +00:00
20 lines
567 B
TypeScript
20 lines
567 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, fab);
|
|
|
|
/* import font awesome icon component */
|
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
|
|
export const FontAwesomePlugin: Plugin = {
|
|
install(app: App) {
|
|
app.component("font-awesome-icon", FontAwesomeIcon);
|
|
},
|
|
};
|