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 42 43 44 45 | 42x 42x 42x 42x | import NS from './modules.types';
import createFq from './utils';
export const TEMPLATES_MUT = Object.freeze({
set: 'SET',
setLoading: 'SET_LOADING',
setError: 'SET_ERROR',
removeTemplate: 'REMOVE_TEMPLATE',
});
export const TEMPLATES_ACT = Object.freeze({
hydrate: 'HYDRATE',
load: 'LOAD',
create: 'CREATE',
delete: 'DELETE',
});
export const TEMPLATES_GET = Object.freeze({
templates: 'templates',
isLoading: 'isLoading',
error: 'error',
errorMessage: 'errorMessage',
});
export const TEMPLATES_FQ = Object.freeze({
getters: Object.freeze({
templates: createFq(NS.templates, TEMPLATES_GET.templates),
isLoading: createFq(NS.templates, TEMPLATES_GET.isLoading),
error: createFq(NS.templates, TEMPLATES_GET.error),
errorMessage: createFq(NS.templates, TEMPLATES_GET.errorMessage),
}),
actions: Object.freeze({
hydrate: createFq(NS.templates, TEMPLATES_ACT.hydrate),
load: createFq(NS.templates, TEMPLATES_ACT.load),
create: createFq(NS.templates, TEMPLATES_ACT.create),
delete: createFq(NS.templates, TEMPLATES_ACT.delete),
}),
mutations: Object.freeze({
set: createFq(NS.templates, TEMPLATES_MUT.set),
setLoading: createFq(NS.templates, TEMPLATES_MUT.setLoading),
setError: createFq(NS.templates, TEMPLATES_MUT.setError),
removeTemplate: createFq(NS.templates, TEMPLATES_MUT.removeTemplate),
}),
});
|