VCinema/src/main.js

51 lines
1.4 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)
app.provide('trackers', [
'wss://tracker.sloppyta.co:443/announce',
'wss://tracker.files.fm:7073/announce',
'wss://open.tube:443/tracker/socket',
'wss://hub.bugout.link:443/announce',
'ws://tracker.sloppyta.co:80/announce',
'ws://tracker.lab.vvc.niif.hu:80/announce',
'ws://tracker.files.fm:7072/announce',
'ws://tracker.btsync.cf:6969/announce',
'ws://hub.bugout.link:80/announce'
])
2021-01-03 04:56:46 +00:00
// Render to DOM.
app.mount('#app')