- add fontawesome

This commit is contained in:
2023-07-28 12:23:55 +02:00
parent d943e81da4
commit d0b3f9094c
3 changed files with 87 additions and 0 deletions

11
resources/js/app.js vendored
View File

@@ -5,6 +5,16 @@ import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import { createApp, h } from 'vue';
import { createInertiaApp, Head, Link } from '@inertiajs/inertia-vue3';
import { library } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { fas } from '@fortawesome/free-solid-svg-icons';
import { far } from '@fortawesome/free-regular-svg-icons';
import { fab } from '@fortawesome/free-brands-svg-icons';
library.add(fas)
.add(far)
.add(fab);
import './css/app.css';
import App from '@/Share/Layout/App.vue';
@@ -26,6 +36,7 @@ createInertiaApp({
.use(plugin)
.component('InertiaLink', Link)
.component('InertiaHead', Head)
.component('FontAwesomeIcon', FontAwesomeIcon)
.mount(el)
},
title: title => `${title} | KamilCraft API`