mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Synchronizacja danych z API przez websockety
This commit is contained in:
+3
-4
@@ -1,13 +1,13 @@
|
||||
import { createApp, Directive, ref } from 'vue'
|
||||
import { createApp, Directive } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import { store, key } from './store'
|
||||
|
||||
import enLang from '@/locales/en.json';
|
||||
import plLang from '@/locales/pl.json';
|
||||
|
||||
import { createI18n } from 'vue-i18n'
|
||||
|
||||
|
||||
const i18n = createI18n({
|
||||
locale: 'pl',
|
||||
fallbackLocale: 'pl',
|
||||
@@ -18,6 +18,7 @@ const i18n = createI18n({
|
||||
enableLegacy: false,
|
||||
})
|
||||
|
||||
|
||||
const clickOutsideDirective: Directive = {
|
||||
mounted(el, binding) {
|
||||
|
||||
@@ -32,9 +33,7 @@ const clickOutsideDirective: Directive = {
|
||||
}
|
||||
|
||||
createApp(App)
|
||||
.use(store, key)
|
||||
.use(router)
|
||||
.use(i18n)
|
||||
.provide('isFilterCardVisible', ref(false))
|
||||
.directive('click-outside', clickOutsideDirective)
|
||||
.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user