2023-03-29 13:31:20 +02:00
|
|
|
import './polyfills'
|
2023-03-07 17:59:12 +01:00
|
|
|
import {defineSetupVue3} from '@histoire/plugin-vue'
|
2022-11-17 17:05:10 +01:00
|
|
|
import {i18n} from './i18n'
|
|
|
|
|
|
|
|
// import './histoire.css' // Import global CSS
|
|
|
|
import './styles/global.scss'
|
|
|
|
|
|
|
|
import {createPinia} from 'pinia'
|
|
|
|
|
2023-03-07 17:59:12 +01:00
|
|
|
import cypress from '@/directives/cypress'
|
|
|
|
|
2022-11-17 17:05:10 +01:00
|
|
|
import FontAwesomeIcon from '@/components/misc/Icon'
|
|
|
|
import XButton from '@/components/input/button.vue'
|
|
|
|
import Modal from '@/components/misc/modal.vue'
|
|
|
|
import Card from '@/components/misc/card.vue'
|
|
|
|
|
|
|
|
export const setupVue3 = defineSetupVue3(({ app }) => {
|
|
|
|
// Add Pinia store
|
|
|
|
const pinia = createPinia()
|
|
|
|
app.use(pinia)
|
|
|
|
app.use(i18n)
|
|
|
|
|
2023-03-07 17:59:12 +01:00
|
|
|
app.directive('cy', cypress)
|
|
|
|
|
2024-02-07 12:18:19 +01:00
|
|
|
app.component('Icon', FontAwesomeIcon)
|
2022-11-17 17:05:10 +01:00
|
|
|
app.component('XButton', XButton)
|
2024-02-07 12:18:19 +01:00
|
|
|
app.component('Modal', Modal)
|
|
|
|
app.component('Card', Card)
|
2022-11-17 17:05:10 +01:00
|
|
|
})
|