2024-03-21 13:56:39 +00:00
|
|
|
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();
|
2024-03-21 13:56:39 +00:00
|
|
|
|
|
|
|
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');
|
|
|
|
};
|
2024-03-21 13:56:39 +00:00
|
|
|
});
|