
* fix css focuses * #90 - wip * #90 - fix to generate PDF * #90 - wip * #90 - wip * #90 - wip * #90 - wip * #90 - fix to calendar * #90 - wip * #90 - fix * #90 - fix lint * #90 - fix * Apply suggestions from code review Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * #90 - cr fixes * #90 - fix Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl> Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
import { createApp, h } from 'vue'
|
|
import { createInertiaApp, Head } from '@inertiajs/inertia-vue3'
|
|
import { InertiaProgress } from '@inertiajs/progress'
|
|
import AppLayout from '@/Shared/Layout/AppLayout'
|
|
import Flatpickr from 'flatpickr'
|
|
import { Settings } from 'luxon'
|
|
import { Polish } from 'flatpickr/dist/l10n/pl.js'
|
|
import Toast from 'vue-toastification'
|
|
import InertiaLink from '@/Shared/InertiaLink'
|
|
|
|
createInertiaApp({
|
|
resolve: name => {
|
|
const page = require(`./Pages/${name}`).default
|
|
|
|
page.layout = page.layout || AppLayout
|
|
|
|
return page
|
|
},
|
|
setup({ el, App, props, plugin }) {
|
|
createApp({ render: () => h(App, props) })
|
|
.use(plugin)
|
|
.use(Toast, {
|
|
position: 'bottom-right',
|
|
maxToast: 5,
|
|
timeout: 3000,
|
|
pauseOnFocusLoss: false,
|
|
})
|
|
.component('InertiaLink', InertiaLink)
|
|
.component('InertiaHead', Head)
|
|
.mount(el)
|
|
},
|
|
title: title => `${title} - Toby`,
|
|
})
|
|
|
|
InertiaProgress.init({
|
|
delay: 0,
|
|
color: '#527ABA',
|
|
})
|
|
|
|
Flatpickr.localize(Polish)
|
|
Flatpickr.setDefaults({
|
|
dateFormat: 'Y-m-d',
|
|
enableTime: false,
|
|
altFormat: 'd.m.Y',
|
|
altInput: true,
|
|
disableMobile: true,
|
|
})
|
|
|
|
Settings.defaultLocale = 'pl'
|