2021-07-29 18:49:19 +02:00
|
|
|
import { createApp, defineAsyncComponent } from 'vue';
|
2021-05-05 17:58:24 +02:00
|
|
|
|
2021-06-27 14:38:22 +02:00
|
|
|
import router from './router';
|
2021-06-27 18:15:52 +02:00
|
|
|
import store from './store';
|
2021-06-27 14:38:22 +02:00
|
|
|
import App from './App';
|
2021-06-28 18:08:41 +02:00
|
|
|
import BaseBadge from './components/ui/BaseBadge';
|
2021-06-28 17:58:20 +02:00
|
|
|
import BaseButton from './components/ui/BaseButton';
|
2021-06-28 17:43:16 +02:00
|
|
|
import BaseCard from './components/ui/BaseCard';
|
2021-07-28 17:03:39 +02:00
|
|
|
import BaseSpinner from './components/ui/BaseSpinner';
|
2021-06-27 14:38:22 +02:00
|
|
|
|
2021-07-29 18:49:19 +02:00
|
|
|
const BaseDialog = defineAsyncComponent(() =>
|
|
|
|
import('./components/ui/BaseDialog')
|
|
|
|
);
|
|
|
|
|
2021-06-27 14:38:22 +02:00
|
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
app.use(router);
|
2021-06-27 18:15:52 +02:00
|
|
|
app.use(store);
|
2021-06-28 17:43:16 +02:00
|
|
|
|
2021-06-28 18:06:58 +02:00
|
|
|
app.component('base-badge', BaseBadge);
|
2021-06-28 17:58:20 +02:00
|
|
|
app.component('base-button', BaseButton);
|
2021-06-28 17:43:16 +02:00
|
|
|
app.component('base-card', BaseCard);
|
2021-07-28 17:22:34 +02:00
|
|
|
app.component('base-dialog', BaseDialog);
|
2021-07-28 17:03:39 +02:00
|
|
|
app.component('base-spinner', BaseSpinner);
|
2021-06-28 17:43:16 +02:00
|
|
|
|
2021-06-27 14:38:22 +02:00
|
|
|
app.mount('#app');
|