This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/histoire.setup.ts

29 lines
768 B
TypeScript
Raw Permalink Normal View History

2023-03-29 11:31:20 +00:00
import './polyfills'
2023-03-07 16:59:12 +00:00
import {defineSetupVue3} from '@histoire/plugin-vue'
2022-11-17 16:05:10 +00:00
import {i18n} from './i18n'
// import './histoire.css' // Import global CSS
import './styles/global.scss'
import {createPinia} from 'pinia'
2023-03-07 16:59:12 +00:00
import cypress from '@/directives/cypress'
2022-11-17 16:05:10 +00: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 16:59:12 +00:00
app.directive('cy', cypress)
2024-02-07 11:18:19 +00:00
app.component('Icon', FontAwesomeIcon)
2022-11-17 16:05:10 +00:00
app.component('XButton', XButton)
2024-02-07 11:18:19 +00:00
app.component('Modal', Modal)
app.component('Card', Card)
2022-11-17 16:05:10 +00:00
})