Basic design created

This commit is contained in:
2026-02-03 09:33:18 +01:00
parent 3570f442f5
commit e280fcfba8
29 changed files with 1055 additions and 28 deletions

View File

@@ -5,6 +5,15 @@ import { InertiaProgress } from '@inertiajs/progress'
import Vue3Toastify, { toast } from 'vue3-toastify'
import 'vue3-toastify/dist/index.css'
import { library } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
// Icons importieren
import { faUser, faTrash, faCheck } from '@fortawesome/free-solid-svg-icons'
library.add(faUser, faTrash, faCheck)
InertiaProgress.init()
createInertiaApp({
@@ -24,12 +33,28 @@ createInertiaApp({
const vueApp = createApp({ render: () => h(App, props) })
vueApp.use(plugin)
vueApp.component('font-awesome-icon', FontAwesomeIcon)
vueApp.use(Vue3Toastify, {
autoClose: 3000,
position: 'top-right',
autoClose: 10000,
position: 'bottom-right',
pauseOnHover: true,
hideProgressBar: false, // Progressbar anzeigen
toastDefaults: {
success: {
style: {background: '#4caf50', color: '#fff'}, // grün
progressStyle: {background: '#2e7d32', height: '4px'},
},
error: {
style: {background: '#f44336', color: '#fff'}, // rot
progressStyle: {background: '#c62828', height: '4px'},
},
},
})
vueApp.config.globalProperties.$toast = toast
vueApp.mount(el)
},