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';
|
2024-10-21 11:23:45 +00:00
|
|
|
import { CanceledError } from 'axios';
|
2024-09-18 12:48:15 +00:00
|
|
|
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);
|
2024-10-21 11:23:45 +00:00
|
|
|
if (!(err instanceof CanceledError)) notify('globals.error', 'negative', 'error');
|
2024-09-18 12:48:15 +00:00
|
|
|
};
|
2024-03-21 13:56:39 +00:00
|
|
|
});
|