akaunting/resources/assets/js/plugins/dashboard-plugin.js
2022-06-01 10:15:55 +03:00

36 lines
1.1 KiB
JavaScript
Vendored

// Polyfills for js features used in the Dashboard but not supported in some browsers (mainly IE)
import './../polyfills';
// Notifications plugin. Used on Notifications page
import Notifications from './../components/NotificationPlugin';
// Validation plugin used to validate forms
import VeeValidate from 'vee-validate';
// A plugin file where you could register global components used across the app
import GlobalComponents from './globalComponents';
// A plugin file where you could register global directives
import GlobalDirectives from './globalDirectives';
// element ui language configuration
import lang from 'element-ui/lib/locale/lang/en';
import locale from 'element-ui/lib/locale';
locale.use(lang);
// asset imports
export default {
install(Vue) {
Vue.use(GlobalComponents);
Vue.use(GlobalDirectives);
Vue.use(Notifications);
Vue.use(VeeValidate, {
fieldsBagName: 'veeFields',
classes : true,
validity : true,
classNames : {
valid : 'is-valid',
invalid: 'is-invalid'
}
});
}
};