Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 42x 42x 42x 42x | import NS from './modules.types';
import createFq from './utils';
export const NOTIF_MUT = Object.freeze({
setNotification: 'SET_NOTIFICATION',
clearNotification: 'CLEAR_NOTIFICATION',
});
export const NOTIF_ACT = Object.freeze({
showError: 'SHOW_ERROR',
showSuccess: 'SHOW_SUCCESS',
showWarning: 'SHOW_WARNING',
showInfo: 'SHOW_INFO',
clear: 'CLEAR',
});
export const NOTIF_GET = Object.freeze({
notification: 'notification',
hasNotification: 'hasNotification',
isAuthError: 'isAuthError',
});
export const NOTIF_FQ = Object.freeze({
getters: Object.freeze({
notification: createFq(NS.notifications, NOTIF_GET.notification),
hasNotification: createFq(NS.notifications, NOTIF_GET.hasNotification),
isAuthError: createFq(NS.notifications, NOTIF_GET.isAuthError),
}),
actions: Object.freeze({
showError: createFq(NS.notifications, NOTIF_ACT.showError),
showSuccess: createFq(NS.notifications, NOTIF_ACT.showSuccess),
showWarning: createFq(NS.notifications, NOTIF_ACT.showWarning),
showInfo: createFq(NS.notifications, NOTIF_ACT.showInfo),
clear: createFq(NS.notifications, NOTIF_ACT.clear),
}),
mutations: Object.freeze({
setNotification: createFq(NS.notifications, NOTIF_MUT.setNotification),
clearNotification: createFq(NS.notifications, NOTIF_MUT.clearNotification),
}),
});
|