Files
tacticalrmm-web/test/jest/utils/quasar.js
2020-06-05 17:39:50 -04:00

34 lines
501 B
JavaScript

import * as All from "quasar";
import Vue from "vue";
const {
Quasar,
Dialog,
Loading,
LoadingBar,
Meta,
Notify,
ClosePopup } = All;
const components = Object.keys(All).reduce((object, key) => {
const val = All[key];
if (val && val.component && val.component.name != null) {
object[key] = val;
}
return object;
}, {});
Vue.use(Quasar, {
components,
plugins: [
Dialog,
Loading,
LoadingBar,
Meta,
Notify
],
directives: [
ClosePopup
]
});