import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import PrimeVue from 'primevue/config'
import router from './router';
import Aura from '@primevue/themes/aura';
import 'primeicons/primeicons.css'
import Ripple from "primevue/ripple";
import ToastService from 'primevue/toastservice'
import Tooltip from 'primevue/tooltip';
import { createPinia } from 'pinia';
import ConfirmationService from 'primevue/confirmationservice';


const app = createApp(App)

app.use(router);
app.use(ToastService);
app.use(ConfirmationService);
app.use(createPinia())
app.directive('ripple', Ripple);
app.directive('tooltip',  Tooltip);

app.use(PrimeVue, {
    theme: {
        preset: Aura,
        options: {
            darkModeSelector: 'light-mode',
        }
    }
});

app.config.globalProperties.$primevue.config.locale = {
    firstDayOfWeek: 1, // Устанавливаем понедельник как первый день недели
    dayNames: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"],
    dayNamesShort: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
    dayNamesMin: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
    monthNames: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"],
    monthNamesShort: ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"],
    today: "Сегодня",
    clear: "Очистить",
    dateFormat: "dd.mm.yy",
    weekHeader: "Нед",
    fileSizeTypes: []
};
app.mount('#app')
