211f5cdedd
* State structure * How to refactr action modules * feat: Add state and mutations for multiple conversation on widget * Adds actions to support multiple conversation * feat: Adds public API endpoints for widget * fixes lint errors * Refactors store * Update mutations to accommodate new changes in store * Refactors actions in messages * fixes broken tests
23 lines
407 B
JavaScript
23 lines
407 B
JavaScript
import { getters } from './getters';
|
|
import { actions } from './actions';
|
|
import { mutations } from './mutations';
|
|
|
|
const state = {
|
|
messages: {
|
|
byId: {},
|
|
allIds: [],
|
|
uiFlags: {
|
|
byId: {
|
|
// 1: { isCreating: false, isPending: false, isDeleting: false, isUpdating: false },
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
actions,
|
|
mutations,
|
|
};
|