mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Group actions into folders
This commit is contained in:
@@ -3,28 +3,28 @@ import {
|
||||
POSTSTATUS_ORDER_UPDATE_START,
|
||||
POSTSTATUS_ORDER_UPDATE_SUCCESS,
|
||||
POSTSTATUS_ORDER_UPDATE_FAILURE,
|
||||
} from '../../actions/updatePostStatusOrder';
|
||||
} from '../../actions/PostStatus/updatePostStatusOrder';
|
||||
|
||||
import {
|
||||
PostStatusDeleteActionTypes,
|
||||
POST_STATUS_DELETE_START,
|
||||
POST_STATUS_DELETE_SUCCESS,
|
||||
POST_STATUS_DELETE_FAILURE,
|
||||
} from '../../actions/deletePostStatus';
|
||||
} from '../../actions/PostStatus/deletePostStatus';
|
||||
|
||||
import {
|
||||
PostStatusSubmitActionTypes,
|
||||
POSTSTATUS_SUBMIT_START,
|
||||
POSTSTATUS_SUBMIT_SUCCESS,
|
||||
POSTSTATUS_SUBMIT_FAILURE,
|
||||
} from '../../actions/submitPostStatus';
|
||||
} from '../../actions/PostStatus/submitPostStatus';
|
||||
|
||||
import {
|
||||
PostStatusUpdateActionTypes,
|
||||
POSTSTATUS_UPDATE_START,
|
||||
POSTSTATUS_UPDATE_SUCCESS,
|
||||
POSTSTATUS_UPDATE_FAILURE,
|
||||
} from '../../actions/updatePostStatus';
|
||||
} from '../../actions/PostStatus/updatePostStatus';
|
||||
|
||||
export interface SiteSettingsPostStatusesState {
|
||||
areUpdating: boolean;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
CommentRequestSuccessAction,
|
||||
COMMENT_REQUEST_SUCCESS,
|
||||
} from '../actions/requestComment';
|
||||
} from '../actions/Comment/requestComment';
|
||||
|
||||
import IComment from '../interfaces/IComment';
|
||||
|
||||
|
||||
@@ -3,27 +3,27 @@ import {
|
||||
COMMENTS_REQUEST_START,
|
||||
COMMENTS_REQUEST_SUCCESS,
|
||||
COMMENTS_REQUEST_FAILURE,
|
||||
} from '../actions/requestComments';
|
||||
} from '../actions/Comment/requestComments';
|
||||
|
||||
import { commentRequestSuccess } from '../actions/requestComment';
|
||||
import { commentRequestSuccess } from '../actions/Comment/requestComment';
|
||||
|
||||
import {
|
||||
HandleCommentRepliesType,
|
||||
TOGGLE_COMMENT_REPLY,
|
||||
SET_COMMENT_REPLY_BODY,
|
||||
} from '../actions/handleCommentReplies';
|
||||
} from '../actions/Comment/handleCommentReplies';
|
||||
|
||||
import {
|
||||
CommentSubmitActionTypes,
|
||||
COMMENT_SUBMIT_START,
|
||||
COMMENT_SUBMIT_SUCCESS,
|
||||
COMMENT_SUBMIT_FAILURE,
|
||||
} from '../actions/submitComment';
|
||||
} from '../actions/Comment/submitComment';
|
||||
|
||||
import {
|
||||
ToggleIsUpdateSuccessAction,
|
||||
TOGGLE_COMMENT_IS_UPDATE_SUCCESS,
|
||||
} from '../actions/updateComment';
|
||||
} from '../actions/Comment/updateComment';
|
||||
|
||||
import commentReducer from './commentReducer';
|
||||
import replyFormsReducer from './replyFormsReducer';
|
||||
|
||||
@@ -3,54 +3,54 @@ import {
|
||||
POST_REQUEST_START,
|
||||
POST_REQUEST_SUCCESS,
|
||||
POST_REQUEST_FAILURE,
|
||||
} from '../actions/requestPost';
|
||||
} from '../actions/Post/requestPost';
|
||||
|
||||
import {
|
||||
ChangePostBoardSuccessAction,
|
||||
CHANGE_POST_BOARD_SUCCESS,
|
||||
} from '../actions/changePostBoard';
|
||||
} from '../actions/Post/changePostBoard';
|
||||
|
||||
import {
|
||||
ChangePostStatusSuccessAction,
|
||||
CHANGE_POST_STATUS_SUCCESS,
|
||||
} from '../actions/changePostStatus';
|
||||
} from '../actions/Post/changePostStatus';
|
||||
|
||||
import {
|
||||
LikesRequestActionTypes,
|
||||
LIKES_REQUEST_START,
|
||||
LIKES_REQUEST_SUCCESS,
|
||||
LIKES_REQUEST_FAILURE,
|
||||
} from '../actions/requestLikes';
|
||||
} from '../actions/Like/requestLikes';
|
||||
|
||||
import {
|
||||
LikeActionTypes,
|
||||
LIKE_SUBMIT_SUCCESS,
|
||||
} from '../actions/submitLike';
|
||||
} from '../actions/Like/submitLike';
|
||||
|
||||
import {
|
||||
CommentsRequestActionTypes,
|
||||
COMMENTS_REQUEST_START,
|
||||
COMMENTS_REQUEST_SUCCESS,
|
||||
COMMENTS_REQUEST_FAILURE,
|
||||
} from '../actions/requestComments';
|
||||
} from '../actions/Comment/requestComments';
|
||||
|
||||
import {
|
||||
HandleCommentRepliesType,
|
||||
TOGGLE_COMMENT_REPLY,
|
||||
SET_COMMENT_REPLY_BODY,
|
||||
} from '../actions/handleCommentReplies';
|
||||
} from '../actions/Comment/handleCommentReplies';
|
||||
|
||||
import {
|
||||
CommentSubmitActionTypes,
|
||||
COMMENT_SUBMIT_START,
|
||||
COMMENT_SUBMIT_SUCCESS,
|
||||
COMMENT_SUBMIT_FAILURE,
|
||||
} from '../actions/submitComment';
|
||||
} from '../actions/Comment/submitComment';
|
||||
|
||||
import {
|
||||
ToggleIsUpdateSuccessAction,
|
||||
TOGGLE_COMMENT_IS_UPDATE_SUCCESS,
|
||||
} from '../actions/updateComment';
|
||||
} from '../actions/Comment/updateComment';
|
||||
|
||||
import postReducer from './postReducer';
|
||||
import likesReducer from './likesReducer';
|
||||
|
||||
@@ -3,12 +3,12 @@ import {
|
||||
LIKES_REQUEST_START,
|
||||
LIKES_REQUEST_SUCCESS,
|
||||
LIKES_REQUEST_FAILURE,
|
||||
} from '../actions/requestLikes';
|
||||
} from '../actions/Like/requestLikes';
|
||||
|
||||
import {
|
||||
LikeActionTypes,
|
||||
LIKE_SUBMIT_SUCCESS,
|
||||
} from '../actions/submitLike';
|
||||
} from '../actions/Like/submitLike';
|
||||
|
||||
import ILike from '../interfaces/ILike';
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import {
|
||||
PostRequestActionTypes,
|
||||
POST_REQUEST_SUCCESS,
|
||||
} from '../actions/requestPost';
|
||||
} from '../actions/Post/requestPost';
|
||||
|
||||
import {
|
||||
ChangePostBoardSuccessAction,
|
||||
CHANGE_POST_BOARD_SUCCESS,
|
||||
} from '../actions/changePostBoard';
|
||||
} from '../actions/Post/changePostBoard';
|
||||
|
||||
import {
|
||||
ChangePostStatusSuccessAction,
|
||||
CHANGE_POST_STATUS_SUCCESS,
|
||||
} from '../actions/changePostStatus';
|
||||
} from '../actions/Post/changePostStatus';
|
||||
|
||||
import IPost from '../interfaces/IPost';
|
||||
|
||||
|
||||
@@ -3,27 +3,27 @@ import {
|
||||
POST_STATUSES_REQUEST_START,
|
||||
POST_STATUSES_REQUEST_SUCCESS,
|
||||
POST_STATUSES_REQUEST_FAILURE,
|
||||
} from '../actions/requestPostStatuses';
|
||||
} from '../actions/PostStatus/requestPostStatuses';
|
||||
|
||||
import {
|
||||
PostStatusOrderUpdateActionTypes,
|
||||
POSTSTATUS_ORDER_UPDATE_START,
|
||||
} from '../actions/updatePostStatusOrder';
|
||||
} from '../actions/PostStatus/updatePostStatusOrder';
|
||||
|
||||
import {
|
||||
PostStatusDeleteActionTypes,
|
||||
POST_STATUS_DELETE_SUCCESS,
|
||||
} from '../actions/deletePostStatus';
|
||||
} from '../actions/PostStatus/deletePostStatus';
|
||||
|
||||
import {
|
||||
PostStatusSubmitActionTypes,
|
||||
POSTSTATUS_SUBMIT_SUCCESS,
|
||||
} from '../actions/submitPostStatus';
|
||||
} from '../actions/PostStatus/submitPostStatus';
|
||||
|
||||
import {
|
||||
PostStatusUpdateActionTypes,
|
||||
POSTSTATUS_UPDATE_SUCCESS,
|
||||
} from '../actions/updatePostStatus';
|
||||
} from '../actions/PostStatus/updatePostStatus';
|
||||
|
||||
import IPostStatus from '../interfaces/IPostStatus';
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ import {
|
||||
POSTS_REQUEST_START,
|
||||
POSTS_REQUEST_SUCCESS,
|
||||
POSTS_REQUEST_FAILURE,
|
||||
} from '../actions/requestPosts';
|
||||
} from '../actions/Post/requestPosts';
|
||||
|
||||
import { postRequestSuccess } from '../actions/requestPost';
|
||||
import { postRequestSuccess } from '../actions/Post/requestPost';
|
||||
|
||||
import {
|
||||
ChangeFiltersActionTypes,
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
import {
|
||||
LikeActionTypes,
|
||||
LIKE_SUBMIT_SUCCESS,
|
||||
} from '../actions/submitLike';
|
||||
} from '../actions/Like/submitLike';
|
||||
|
||||
export interface PostsState {
|
||||
items: Array<IPost>;
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
import {
|
||||
CommentRequestSuccessAction,
|
||||
COMMENT_REQUEST_SUCCESS,
|
||||
} from '../actions/requestComment';
|
||||
} from '../actions/Comment/requestComment';
|
||||
|
||||
import {
|
||||
HandleCommentRepliesType,
|
||||
TOGGLE_COMMENT_REPLY,
|
||||
SET_COMMENT_REPLY_BODY,
|
||||
} from '../actions/handleCommentReplies';
|
||||
} from '../actions/Comment/handleCommentReplies';
|
||||
|
||||
import {
|
||||
CommentSubmitActionTypes,
|
||||
COMMENT_SUBMIT_START,
|
||||
COMMENT_SUBMIT_SUCCESS,
|
||||
COMMENT_SUBMIT_FAILURE,
|
||||
} from '../actions/submitComment';
|
||||
} from '../actions/Comment/submitComment';
|
||||
|
||||
export interface ReplyFormState {
|
||||
commentId: number;
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import {
|
||||
CommentsRequestActionTypes,
|
||||
COMMENTS_REQUEST_SUCCESS,
|
||||
} from '../actions/requestComments';
|
||||
} from '../actions/Comment/requestComments';
|
||||
|
||||
import { commentRequestSuccess } from '../actions/requestComment';
|
||||
import { commentRequestSuccess } from '../actions/Comment/requestComment';
|
||||
|
||||
import {
|
||||
HandleCommentRepliesType,
|
||||
TOGGLE_COMMENT_REPLY,
|
||||
SET_COMMENT_REPLY_BODY,
|
||||
} from '../actions/handleCommentReplies';
|
||||
} from '../actions/Comment/handleCommentReplies';
|
||||
|
||||
import {
|
||||
CommentSubmitActionTypes,
|
||||
COMMENT_SUBMIT_START,
|
||||
COMMENT_SUBMIT_SUCCESS,
|
||||
COMMENT_SUBMIT_FAILURE,
|
||||
} from '../actions/submitComment';
|
||||
} from '../actions/Comment/submitComment';
|
||||
|
||||
import replyFormReducer, { ReplyFormState } from './replyFormReducer';
|
||||
|
||||
|
||||
@@ -3,28 +3,28 @@ import {
|
||||
POSTSTATUS_ORDER_UPDATE_START,
|
||||
POSTSTATUS_ORDER_UPDATE_SUCCESS,
|
||||
POSTSTATUS_ORDER_UPDATE_FAILURE,
|
||||
} from '../actions/updatePostStatusOrder';
|
||||
} from '../actions/PostStatus/updatePostStatusOrder';
|
||||
|
||||
import {
|
||||
PostStatusDeleteActionTypes,
|
||||
POST_STATUS_DELETE_START,
|
||||
POST_STATUS_DELETE_SUCCESS,
|
||||
POST_STATUS_DELETE_FAILURE,
|
||||
} from '../actions/deletePostStatus';
|
||||
} from '../actions/PostStatus/deletePostStatus';
|
||||
|
||||
import {
|
||||
PostStatusSubmitActionTypes,
|
||||
POSTSTATUS_SUBMIT_START,
|
||||
POSTSTATUS_SUBMIT_SUCCESS,
|
||||
POSTSTATUS_SUBMIT_FAILURE,
|
||||
} from '../actions/submitPostStatus';
|
||||
} from '../actions/PostStatus/submitPostStatus';
|
||||
|
||||
import {
|
||||
PostStatusUpdateActionTypes,
|
||||
POSTSTATUS_UPDATE_START,
|
||||
POSTSTATUS_UPDATE_SUCCESS,
|
||||
POSTSTATUS_UPDATE_FAILURE,
|
||||
} from '../actions/updatePostStatus';
|
||||
} from '../actions/PostStatus/updatePostStatus';
|
||||
|
||||
import siteSettingsPostStatusesReducer, { SiteSettingsPostStatusesState } from './SiteSettings/postStatusesReducer';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user