Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
@@ -3,7 +3,7 @@ import { takeLatest } from 'redux-saga/effects';
|
||||
import { fetchActionsInCurrentCardService } from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* actionsWatchers() {
|
||||
yield takeLatest(EntryActionTypes.ACTIONS_IN_CURRENT_CARD_FETCH, () =>
|
||||
fetchActionsInCurrentCardService(),
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* attachmentWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.ATTACHMENT_IN_CURRENT_CARD_CREATE, ({ payload: { data } }) =>
|
||||
createAttachmentInCurrentCardService(data),
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* boardWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.BOARD_IN_CURRENT_PROJECT_CREATE, ({ payload: { data } }) =>
|
||||
createBoardInCurrentProjectService(data),
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* cardWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.CARD_CREATE, ({ payload: { listId, data } }) =>
|
||||
createCardService(listId, data),
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* commentActionWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.COMMENT_ACTION_IN_CURRENT_CARD_CREATE, ({ payload: { data } }) =>
|
||||
createCommentActionInCurrentCardService(data),
|
||||
|
||||
@@ -6,8 +6,8 @@ import user from './user';
|
||||
import project from './project';
|
||||
import projectMembership from './project-membership';
|
||||
import board from './board';
|
||||
import list from './list';
|
||||
import label from './label';
|
||||
import list from './list';
|
||||
import card from './card';
|
||||
import task from './task';
|
||||
import attachment from './attachment';
|
||||
@@ -24,8 +24,8 @@ export default [
|
||||
project,
|
||||
projectMembership,
|
||||
board,
|
||||
list,
|
||||
label,
|
||||
list,
|
||||
card,
|
||||
task,
|
||||
attachment,
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* labelWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.LABEL_IN_CURRENT_BOARD_CREATE, ({ payload: { data } }) =>
|
||||
createLabelInCurrentBoardService(data),
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* listWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.LIST_IN_CURRENT_BOARD_CREATE, ({ payload: { data } }) =>
|
||||
createListInCurrentBoardService(data),
|
||||
|
||||
@@ -3,6 +3,6 @@ import { takeLatest } from 'redux-saga/effects';
|
||||
import { logoutService } from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* loginWatchers() {
|
||||
yield takeLatest(EntryActionTypes.LOGOUT, () => logoutService());
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { all, takeLatest } from 'redux-saga/effects';
|
||||
import { closeModalService, openModalService } from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* modalWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.MODAL_OPEN, ({ payload: { type } }) => openModalService(type)),
|
||||
takeLatest(EntryActionTypes.MODAL_CLOSE, () => closeModalService()),
|
||||
|
||||
@@ -3,7 +3,7 @@ import { takeLatest } from 'redux-saga/effects';
|
||||
import { deleteNotificationService } from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* notificationWatchers() {
|
||||
yield takeLatest(EntryActionTypes.NOTIFICATION_DELETE, ({ payload: { id } }) =>
|
||||
deleteNotificationService(id),
|
||||
);
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* projectMembershipWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.MEMBERSHIP_IN_CURRENT_PROJECT_CREATE, ({ payload: { data } }) =>
|
||||
createMembershipInCurrentProjectService(data),
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* projectWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.PROJECT_CREATE, ({ payload: { data } }) =>
|
||||
createProjectService(data),
|
||||
|
||||
@@ -3,6 +3,6 @@ import { LOCATION_CHANGE } from 'connected-react-router';
|
||||
|
||||
import { locationChangedService } from '../services';
|
||||
|
||||
export default function* () {
|
||||
export default function* routerWatchers() {
|
||||
yield takeEvery(LOCATION_CHANGE, () => locationChangedService());
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ const createSocketEventsChannel = () =>
|
||||
};
|
||||
});
|
||||
|
||||
export default function* () {
|
||||
export default function* socketWatchers() {
|
||||
const socketEventsChannel = yield call(createSocketEventsChannel);
|
||||
|
||||
try {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { all, takeLatest } from 'redux-saga/effects';
|
||||
import { createTaskInCurrentCardService, deleteTaskService, updateTaskService } from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* taskWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.TASK_IN_CURRENT_CARD_CREATE, ({ payload: { data } }) =>
|
||||
createTaskInCurrentCardService(data),
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
} from '../services';
|
||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||
|
||||
export default function* () {
|
||||
export default function* userWatchers() {
|
||||
yield all([
|
||||
takeLatest(EntryActionTypes.USER_CREATE, ({ payload: { data } }) => createUserService(data)),
|
||||
takeLatest(EntryActionTypes.USER_CREATE_ERROR_CLEAR, () => clearUserCreateErrorService()),
|
||||
|
||||
Reference in New Issue
Block a user