VCinema/src/main.js

39 lines
1.0 KiB
JavaScript
Raw Normal View History

2021-01-03 04:56:46 +00:00
import { createApp } from 'vue'
import App from './App.vue'
import Router from './router'
// Import global components.
2021-01-04 01:49:17 +00:00
import FileSelect from '@/components/FileSelect.vue'
2021-01-03 04:56:46 +00:00
// Import PrimeVue dependencies.
import PrimeVue from 'primevue/config'
import Button from 'primevue/button'
import Card from 'primevue/card'
import InputText from 'primevue/inputtext'
import MenuBar from 'primevue/menubar'
import Toast from 'primevue/toast'
import ToastService from 'primevue/toastservice'
2021-01-03 04:56:46 +00:00
import 'primeflex/primeflex.css'
import 'primeicons/primeicons.css'
import 'primevue/resources/primevue.min.css'
import 'primevue/resources/themes/bootstrap4-light-blue/theme.css'
const app = createApp(App)
app.use(Router)
app.use(PrimeVue)
app.use(ToastService)
2021-01-03 04:56:46 +00:00
2021-01-04 01:49:17 +00:00
// Register PrimeVue components.
2021-01-03 04:56:46 +00:00
app.component('Button', Button)
app.component('Card', Card)
app.component('InputText', InputText)
app.component('MenuBar', MenuBar)
app.component('Toast', Toast)
2021-01-03 04:56:46 +00:00
2021-01-04 01:49:17 +00:00
// Register VCinemaApp components.
app.component('FileSelect', FileSelect)
2021-01-03 04:56:46 +00:00
// Render to DOM.
app.mount('#app')