2021-10-23 21:14:47 +02:00
|
|
|
import {
|
|
|
|
Chart,
|
|
|
|
BarElement,
|
|
|
|
LineElement,
|
|
|
|
PointElement,
|
|
|
|
Legend,
|
|
|
|
Title,
|
|
|
|
Tooltip,
|
|
|
|
Filler,
|
|
|
|
BarController,
|
|
|
|
CategoryScale,
|
|
|
|
LineController,
|
|
|
|
LinearScale,
|
|
|
|
} from 'chart.js'
|
|
|
|
import ChartDataLabels from 'chartjs-plugin-datalabels'
|
2021-07-25 13:23:25 +02:00
|
|
|
import { createApp } from 'vue'
|
2021-08-11 22:21:26 +02:00
|
|
|
|
2021-07-25 13:23:25 +02:00
|
|
|
import './registerServiceWorker'
|
2021-08-11 22:21:26 +02:00
|
|
|
import App from './App.vue'
|
|
|
|
import i18n from './i18n'
|
2021-07-25 13:23:25 +02:00
|
|
|
import router from './router'
|
|
|
|
import store from './store'
|
2021-07-24 20:56:37 +02:00
|
|
|
|
2021-10-23 15:29:39 +02:00
|
|
|
import { customComponents } from '@/custom-components'
|
2021-09-30 21:09:15 +02:00
|
|
|
import { clickOutsideDirective } from '@/directives'
|
2021-10-23 15:47:17 +02:00
|
|
|
import { sportColors } from '@/utils/sports'
|
2021-09-30 21:09:15 +02:00
|
|
|
|
2021-10-23 21:14:47 +02:00
|
|
|
Chart.register(
|
|
|
|
BarElement,
|
|
|
|
LineElement,
|
|
|
|
PointElement,
|
|
|
|
Legend,
|
|
|
|
Title,
|
|
|
|
Tooltip,
|
|
|
|
Filler,
|
|
|
|
BarController,
|
|
|
|
CategoryScale,
|
|
|
|
LineController,
|
|
|
|
LinearScale,
|
|
|
|
ChartDataLabels
|
|
|
|
)
|
|
|
|
|
2021-10-23 15:29:39 +02:00
|
|
|
const app = createApp(App)
|
2021-10-23 15:47:17 +02:00
|
|
|
.provide('sportColors', sportColors)
|
2021-09-30 21:09:15 +02:00
|
|
|
.use(i18n)
|
|
|
|
.use(store)
|
|
|
|
.use(router)
|
|
|
|
.directive('click-outside', clickOutsideDirective)
|
2021-10-23 15:29:39 +02:00
|
|
|
|
|
|
|
customComponents.forEach((component) => {
|
|
|
|
app.component(component.name, component)
|
|
|
|
})
|
|
|
|
|
|
|
|
app.mount('#app')
|