v2 first commit
This commit is contained in:
41
resources/assets/js/plugins/dashboard-plugin.js
vendored
Normal file
41
resources/assets/js/plugins/dashboard-plugin.js
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
// 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';
|
||||
// Sidebar on the right. Used as a local plugin in DashboardLayout.vue
|
||||
import SideBar from './../components/SidebarPlugin';
|
||||
|
||||
// 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
|
||||
import './../../sass/argon.scss';
|
||||
import './../../css/nucleo/css/nucleo.css';
|
||||
import 'element-ui/lib/theme-chalk/index.css';
|
||||
|
||||
export default {
|
||||
install(Vue) {
|
||||
Vue.use(GlobalComponents);
|
||||
Vue.use(GlobalDirectives);
|
||||
Vue.use(SideBar);
|
||||
Vue.use(Notifications);
|
||||
Vue.use(VeeValidate, {
|
||||
fieldsBagName: 'veeFields',
|
||||
classes : true,
|
||||
validity : true,
|
||||
classNames : {
|
||||
valid : 'is-valid',
|
||||
invalid: 'is-invalid'
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user