salix-front/src/boot/quasar.js

17 lines
540 B
JavaScript
Raw Normal View History

import { boot } from 'quasar/wrappers';
import qFormMixin from './qformMixin';
2024-08-28 14:11:25 +00:00
import mainShortcutMixin from './mainShortcutMixin';
2024-08-28 12:04:48 +00:00
import keyShortcut from './keyShortcut';
2024-09-18 12:48:15 +00:00
import useNotify from 'src/composables/useNotify.js';
const { notify } = useNotify();
export default boot(({ app }) => {
app.mixin(qFormMixin);
2024-08-28 14:11:25 +00:00
app.mixin(mainShortcutMixin);
2024-08-28 12:04:48 +00:00
app.directive('shortcut', keyShortcut);
2024-09-18 12:48:15 +00:00
app.config.errorHandler = function (err) {
console.error(err);
notify('globals.error', 'negative', 'error');
};
});