alai-server/frontend/src/main.js

59 lines
1.6 KiB
JavaScript
Raw Normal View History

2022-06-29 21:26:05 -04:00
import { createApp } from 'vue';
import { createPinia } from 'pinia';
2022-06-29 21:26:05 -04:00
import App from './App.vue';
2023-01-18 22:46:19 -03:00
import router from './router';
2022-06-29 21:26:05 -04:00
2023-01-30 21:32:32 -03:00
import Button from 'primevue/button';
2023-01-30 12:48:37 -03:00
import PrimeVue from 'primevue/config';
import Chart from 'primevue/chart';
import Dropdown from 'primevue/dropdown';
2023-01-30 21:32:32 -03:00
import InputText from 'primevue/inputtext';
import Password from 'primevue/password';
2023-01-31 23:09:14 -03:00
import Ripple from 'primevue/ripple';
import StyleClass from 'primevue/styleclass';
2023-02-01 23:51:02 -03:00
import Toast from 'primevue/toast';
import ToastService from 'primevue/toastservice';
import Toolbar from 'primevue/toolbar';
import Column from 'primevue/column';
import DataTable from 'primevue/datatable';
import Textarea from 'primevue/textarea';
import RadioButton from 'primevue/radiobutton';
import InputNumber from 'primevue/inputnumber';
import Dialog from 'primevue/dialog';
2023-02-09 23:38:39 -03:00
import Menu from 'primevue/menu';
2023-02-01 23:51:02 -03:00
2023-01-18 22:46:19 -03:00
import '@/assets/styles.scss';
2022-06-29 21:26:05 -04:00
2023-02-01 23:51:02 -03:00
2022-06-29 21:26:05 -04:00
const app = createApp(App);
app.use(createPinia());
2023-01-18 22:46:19 -03:00
app.use(router);
app.use(PrimeVue, { ripple: true });
2023-02-01 23:51:02 -03:00
app.use(ToastService);
2022-06-29 21:26:05 -04:00
2023-01-31 23:09:14 -03:00
app.directive('ripple', Ripple);
app.directive('styleclass', StyleClass);
2023-01-30 21:32:32 -03:00
app.component('Button', Button);
2023-01-30 12:48:37 -03:00
app.component('Chart', Chart);
app.component('Dropdown', Dropdown);
2023-01-30 21:32:32 -03:00
app.component('InputText', InputText);
app.component('Password', Password);
2023-02-01 23:51:02 -03:00
app.component('Toast', Toast);
app.component('Column', Column);
app.component('Toolbar', Toolbar);
app.component('DataTable', DataTable);
app.component('Textarea', Textarea);
app.component('RadioButton', RadioButton);
app.component('InputNumber', InputNumber);
app.component('Dialog', Dialog);
2023-02-09 23:38:39 -03:00
app.component('Menu', Menu);
2023-02-01 23:51:02 -03:00
2022-06-29 21:26:05 -04:00
app.mount('#app');
2023-01-30 12:48:37 -03:00