mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
Group actions into folders
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import ICommentJSON from '../interfaces/json/IComment';
|
import ICommentJSON from '../../interfaces/json/IComment';
|
||||||
|
|
||||||
export const COMMENT_REQUEST_SUCCESS = 'COMMENT_REQUEST_SUCCESS';
|
export const COMMENT_REQUEST_SUCCESS = 'COMMENT_REQUEST_SUCCESS';
|
||||||
export interface CommentRequestSuccessAction {
|
export interface CommentRequestSuccessAction {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { ThunkAction } from 'redux-thunk';
|
import { ThunkAction } from 'redux-thunk';
|
||||||
|
|
||||||
import ICommentJSON from '../interfaces/json/IComment';
|
import ICommentJSON from '../../interfaces/json/IComment';
|
||||||
|
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../../reducers/rootReducer';
|
||||||
|
|
||||||
export const COMMENTS_REQUEST_START = 'COMMENTS_REQUEST_START';
|
export const COMMENTS_REQUEST_START = 'COMMENTS_REQUEST_START';
|
||||||
interface CommentsRequestStartAction {
|
interface CommentsRequestStartAction {
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { ThunkAction } from 'redux-thunk';
|
import { ThunkAction } from 'redux-thunk';
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../../reducers/rootReducer';
|
||||||
|
|
||||||
import ICommentJSON from '../interfaces/json/IComment';
|
import ICommentJSON from '../../interfaces/json/IComment';
|
||||||
import buildRequestHeaders from '../helpers/buildRequestHeaders';
|
import buildRequestHeaders from '../../helpers/buildRequestHeaders';
|
||||||
import HttpStatus from '../constants/http_status';
|
import HttpStatus from '../../constants/http_status';
|
||||||
|
|
||||||
export const COMMENT_SUBMIT_START = 'COMMENT_SUBMIT_START';
|
export const COMMENT_SUBMIT_START = 'COMMENT_SUBMIT_START';
|
||||||
interface CommentSubmitStartAction {
|
interface CommentSubmitStartAction {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { ThunkAction } from "redux-thunk";
|
import { ThunkAction } from "redux-thunk";
|
||||||
import { State } from "../reducers/rootReducer";
|
import { State } from "../../reducers/rootReducer";
|
||||||
import { Action } from "redux";
|
import { Action } from "redux";
|
||||||
|
|
||||||
import buildRequestHeaders from "../helpers/buildRequestHeaders";
|
import buildRequestHeaders from "../../helpers/buildRequestHeaders";
|
||||||
|
|
||||||
export const TOGGLE_COMMENT_IS_UPDATE_SUCCESS = 'TOGGLE_COMMENT_IS_UPDATE_SUCCESS';
|
export const TOGGLE_COMMENT_IS_UPDATE_SUCCESS = 'TOGGLE_COMMENT_IS_UPDATE_SUCCESS';
|
||||||
export interface ToggleIsUpdateSuccessAction {
|
export interface ToggleIsUpdateSuccessAction {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { ThunkAction } from 'redux-thunk';
|
import { ThunkAction } from 'redux-thunk';
|
||||||
|
|
||||||
import ILikeJSON from '../interfaces/json/ILike';
|
import ILikeJSON from '../../interfaces/json/ILike';
|
||||||
|
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../../reducers/rootReducer';
|
||||||
|
|
||||||
export const LIKES_REQUEST_START = 'LIKES_REQUEST_START';
|
export const LIKES_REQUEST_START = 'LIKES_REQUEST_START';
|
||||||
interface LikesRequestStartAction {
|
interface LikesRequestStartAction {
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Action } from "redux";
|
import { Action } from "redux";
|
||||||
import { ThunkAction } from "redux-thunk";
|
import { ThunkAction } from "redux-thunk";
|
||||||
|
|
||||||
import { State } from "../reducers/rootReducer";
|
import { State } from "../../reducers/rootReducer";
|
||||||
import ILikeJSON from "../interfaces/json/ILike";
|
import ILikeJSON from "../../interfaces/json/ILike";
|
||||||
import buildRequestHeaders from "../helpers/buildRequestHeaders";
|
import buildRequestHeaders from "../../helpers/buildRequestHeaders";
|
||||||
import HttpStatus from "../constants/http_status";
|
import HttpStatus from "../../constants/http_status";
|
||||||
|
|
||||||
export const LIKE_SUBMIT_SUCCESS = 'LIKE_SUBMIT_SUCCESS';
|
export const LIKE_SUBMIT_SUCCESS = 'LIKE_SUBMIT_SUCCESS';
|
||||||
interface LikeSubmitSuccessAction {
|
interface LikeSubmitSuccessAction {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { ThunkAction } from 'redux-thunk';
|
import { ThunkAction } from 'redux-thunk';
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../../reducers/rootReducer';
|
||||||
|
|
||||||
import buildRequestHeaders from '../helpers/buildRequestHeaders';
|
import buildRequestHeaders from '../../helpers/buildRequestHeaders';
|
||||||
|
|
||||||
export const CHANGE_POST_BOARD_SUCCESS = 'CHANGE_POST_BOARD_SUCCESS';
|
export const CHANGE_POST_BOARD_SUCCESS = 'CHANGE_POST_BOARD_SUCCESS';
|
||||||
export interface ChangePostBoardSuccessAction {
|
export interface ChangePostBoardSuccessAction {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { ThunkAction } from 'redux-thunk';
|
import { ThunkAction } from 'redux-thunk';
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../../reducers/rootReducer';
|
||||||
|
|
||||||
import buildRequestHeaders from '../helpers/buildRequestHeaders';
|
import buildRequestHeaders from '../../helpers/buildRequestHeaders';
|
||||||
|
|
||||||
export const CHANGE_POST_STATUS_SUCCESS = 'CHANGE_POST_STATUS_SUCCESS';
|
export const CHANGE_POST_STATUS_SUCCESS = 'CHANGE_POST_STATUS_SUCCESS';
|
||||||
export interface ChangePostStatusSuccessAction {
|
export interface ChangePostStatusSuccessAction {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { ThunkAction } from 'redux-thunk';
|
import { ThunkAction } from 'redux-thunk';
|
||||||
|
|
||||||
import IPostJSON from '../interfaces/json/IPost';
|
import IPostJSON from '../../interfaces/json/IPost';
|
||||||
|
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../../reducers/rootReducer';
|
||||||
|
|
||||||
export const POST_REQUEST_START = 'POST_REQUEST_START';
|
export const POST_REQUEST_START = 'POST_REQUEST_START';
|
||||||
interface PostRequestStartAction {
|
interface PostRequestStartAction {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { ThunkAction } from 'redux-thunk';
|
import { ThunkAction } from 'redux-thunk';
|
||||||
|
|
||||||
import IPostJSON from '../interfaces/json/IPost';
|
import IPostJSON from '../../interfaces/json/IPost';
|
||||||
|
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../../reducers/rootReducer';
|
||||||
|
|
||||||
export const POSTS_REQUEST_START = 'POSTS_REQUEST_START';
|
export const POSTS_REQUEST_START = 'POSTS_REQUEST_START';
|
||||||
interface PostsRequestStartAction {
|
interface PostsRequestStartAction {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Action } from "redux";
|
import { Action } from "redux";
|
||||||
import { ThunkAction } from "redux-thunk";
|
import { ThunkAction } from "redux-thunk";
|
||||||
import buildRequestHeaders from "../helpers/buildRequestHeaders";
|
import buildRequestHeaders from "../../helpers/buildRequestHeaders";
|
||||||
import { State } from "../reducers/rootReducer";
|
import { State } from "../../reducers/rootReducer";
|
||||||
|
|
||||||
export const POST_STATUS_DELETE_START = 'POST_STATUS_DELETE_START';
|
export const POST_STATUS_DELETE_START = 'POST_STATUS_DELETE_START';
|
||||||
interface PostStatusDeleteStartAction {
|
interface PostStatusDeleteStartAction {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { ThunkAction } from 'redux-thunk';
|
import { ThunkAction } from 'redux-thunk';
|
||||||
|
|
||||||
import IPostStatus from '../interfaces/IPostStatus';
|
import IPostStatus from '../../interfaces/IPostStatus';
|
||||||
|
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../../reducers/rootReducer';
|
||||||
|
|
||||||
export const POST_STATUSES_REQUEST_START = 'POST_STATUSES_REQUEST_START';
|
export const POST_STATUSES_REQUEST_START = 'POST_STATUSES_REQUEST_START';
|
||||||
interface PostStatusesRequestStartAction {
|
interface PostStatusesRequestStartAction {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Action } from "redux";
|
import { Action } from "redux";
|
||||||
import { ThunkAction } from "redux-thunk";
|
import { ThunkAction } from "redux-thunk";
|
||||||
import HttpStatus from "../constants/http_status";
|
import HttpStatus from "../../constants/http_status";
|
||||||
import buildRequestHeaders from "../helpers/buildRequestHeaders";
|
import buildRequestHeaders from "../../helpers/buildRequestHeaders";
|
||||||
import IPostStatusJSON from "../interfaces/json/IPostStatus";
|
import IPostStatusJSON from "../../interfaces/json/IPostStatus";
|
||||||
import { State } from "../reducers/rootReducer";
|
import { State } from "../../reducers/rootReducer";
|
||||||
|
|
||||||
export const POSTSTATUS_SUBMIT_START = 'POSTSTATUS_SUBMIT_START';
|
export const POSTSTATUS_SUBMIT_START = 'POSTSTATUS_SUBMIT_START';
|
||||||
interface PostStatusSubmitStartAction {
|
interface PostStatusSubmitStartAction {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Action } from "redux";
|
import { Action } from "redux";
|
||||||
import { ThunkAction } from "redux-thunk";
|
import { ThunkAction } from "redux-thunk";
|
||||||
import HttpStatus from "../constants/http_status";
|
import HttpStatus from "../../constants/http_status";
|
||||||
import buildRequestHeaders from "../helpers/buildRequestHeaders";
|
import buildRequestHeaders from "../../helpers/buildRequestHeaders";
|
||||||
import IPostStatusJSON from "../interfaces/json/IPostStatus";
|
import IPostStatusJSON from "../../interfaces/json/IPostStatus";
|
||||||
import { State } from "../reducers/rootReducer";
|
import { State } from "../../reducers/rootReducer";
|
||||||
|
|
||||||
export const POSTSTATUS_UPDATE_START = 'POSTSTATUS_UPDATE_START';
|
export const POSTSTATUS_UPDATE_START = 'POSTSTATUS_UPDATE_START';
|
||||||
interface PostStatusUpdateStartAction {
|
interface PostStatusUpdateStartAction {
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Action } from "redux";
|
import { Action } from "redux";
|
||||||
import { ThunkAction } from "redux-thunk";
|
import { ThunkAction } from "redux-thunk";
|
||||||
import HttpStatus from "../constants/http_status";
|
import HttpStatus from "../../constants/http_status";
|
||||||
|
|
||||||
import buildRequestHeaders from "../helpers/buildRequestHeaders";
|
import buildRequestHeaders from "../../helpers/buildRequestHeaders";
|
||||||
import IPostStatus from "../interfaces/IPostStatus";
|
import IPostStatus from "../../interfaces/IPostStatus";
|
||||||
import { State } from "../reducers/rootReducer";
|
import { State } from "../../reducers/rootReducer";
|
||||||
|
|
||||||
export const POSTSTATUS_ORDER_UPDATE_START = 'POSTSTATUS_ORDER_UPDATE_START';
|
export const POSTSTATUS_ORDER_UPDATE_START = 'POSTSTATUS_ORDER_UPDATE_START';
|
||||||
interface PostStatusOrderUpdateStartAction {
|
interface PostStatusOrderUpdateStartAction {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { requestPosts } from '../actions/requestPosts';
|
import { requestPosts } from '../actions/Post/requestPosts';
|
||||||
import { requestPostStatuses } from '../actions/requestPostStatuses';
|
import { requestPostStatuses } from '../actions/PostStatus/requestPostStatuses';
|
||||||
import {
|
import {
|
||||||
setSearchFilter,
|
setSearchFilter,
|
||||||
setPostStatusFilter,
|
setPostStatusFilter,
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { requestComments } from '../actions/requestComments';
|
import { requestComments } from '../actions/Comment/requestComments';
|
||||||
import {
|
import {
|
||||||
toggleCommentReply,
|
toggleCommentReply,
|
||||||
setCommentReplyBody,
|
setCommentReplyBody,
|
||||||
} from '../actions/handleCommentReplies';
|
} from '../actions/Comment/handleCommentReplies';
|
||||||
import { toggleCommentIsUpdate } from '../actions/updateComment';
|
import { toggleCommentIsUpdate } from '../actions/Comment/updateComment';
|
||||||
import { submitComment } from '../actions/submitComment';
|
import { submitComment } from '../actions/Comment/submitComment';
|
||||||
|
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../reducers/rootReducer';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { connect } from 'react-redux';
|
|||||||
|
|
||||||
import LikeButtonP from '../components/LikeButton/LikeButtonP';
|
import LikeButtonP from '../components/LikeButton/LikeButtonP';
|
||||||
|
|
||||||
import { submitLike } from '../actions/submitLike';
|
import { submitLike } from '../actions/Like/submitLike';
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
handleLikeSubmit(postId: number, isLike: boolean, authenticityToken: string) {
|
handleLikeSubmit(postId: number, isLike: boolean, authenticityToken: string) {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { requestPost } from '../actions/requestPost';
|
import { requestPost } from '../actions/Post/requestPost';
|
||||||
import { requestLikes } from '../actions/requestLikes';
|
import { requestLikes } from '../actions/Like/requestLikes';
|
||||||
import { changePostBoard } from '../actions/changePostBoard';
|
import { changePostBoard } from '../actions/Post/changePostBoard';
|
||||||
import { changePostStatus } from '../actions/changePostStatus';
|
import { changePostStatus } from '../actions/Post/changePostStatus';
|
||||||
|
|
||||||
import { State } from '../reducers/rootReducer';
|
import { State } from '../reducers/rootReducer';
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { deletePostStatus } from "../actions/deletePostStatus";
|
import { deletePostStatus } from "../actions/PostStatus/deletePostStatus";
|
||||||
|
|
||||||
import { requestPostStatuses } from "../actions/requestPostStatuses";
|
import { requestPostStatuses } from "../actions/PostStatus/requestPostStatuses";
|
||||||
import { submitPostStatus } from "../actions/submitPostStatus";
|
import { submitPostStatus } from "../actions/PostStatus/submitPostStatus";
|
||||||
import { updatePostStatus } from "../actions/updatePostStatus";
|
import { updatePostStatus } from "../actions/PostStatus/updatePostStatus";
|
||||||
import { updatePostStatusOrder } from "../actions/updatePostStatusOrder";
|
import { updatePostStatusOrder } from "../actions/PostStatus/updatePostStatusOrder";
|
||||||
import PostStatusesSiteSettingsP from "../components/SiteSettings/PostStatuses/PostStatusesSiteSettingsP";
|
import PostStatusesSiteSettingsP from "../components/SiteSettings/PostStatuses/PostStatusesSiteSettingsP";
|
||||||
import HttpStatus from "../constants/http_status";
|
import HttpStatus from "../constants/http_status";
|
||||||
import IPostStatus from "../interfaces/IPostStatus";
|
import IPostStatus from "../interfaces/IPostStatus";
|
||||||
|
|||||||
@@ -3,28 +3,28 @@ import {
|
|||||||
POSTSTATUS_ORDER_UPDATE_START,
|
POSTSTATUS_ORDER_UPDATE_START,
|
||||||
POSTSTATUS_ORDER_UPDATE_SUCCESS,
|
POSTSTATUS_ORDER_UPDATE_SUCCESS,
|
||||||
POSTSTATUS_ORDER_UPDATE_FAILURE,
|
POSTSTATUS_ORDER_UPDATE_FAILURE,
|
||||||
} from '../../actions/updatePostStatusOrder';
|
} from '../../actions/PostStatus/updatePostStatusOrder';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusDeleteActionTypes,
|
PostStatusDeleteActionTypes,
|
||||||
POST_STATUS_DELETE_START,
|
POST_STATUS_DELETE_START,
|
||||||
POST_STATUS_DELETE_SUCCESS,
|
POST_STATUS_DELETE_SUCCESS,
|
||||||
POST_STATUS_DELETE_FAILURE,
|
POST_STATUS_DELETE_FAILURE,
|
||||||
} from '../../actions/deletePostStatus';
|
} from '../../actions/PostStatus/deletePostStatus';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusSubmitActionTypes,
|
PostStatusSubmitActionTypes,
|
||||||
POSTSTATUS_SUBMIT_START,
|
POSTSTATUS_SUBMIT_START,
|
||||||
POSTSTATUS_SUBMIT_SUCCESS,
|
POSTSTATUS_SUBMIT_SUCCESS,
|
||||||
POSTSTATUS_SUBMIT_FAILURE,
|
POSTSTATUS_SUBMIT_FAILURE,
|
||||||
} from '../../actions/submitPostStatus';
|
} from '../../actions/PostStatus/submitPostStatus';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusUpdateActionTypes,
|
PostStatusUpdateActionTypes,
|
||||||
POSTSTATUS_UPDATE_START,
|
POSTSTATUS_UPDATE_START,
|
||||||
POSTSTATUS_UPDATE_SUCCESS,
|
POSTSTATUS_UPDATE_SUCCESS,
|
||||||
POSTSTATUS_UPDATE_FAILURE,
|
POSTSTATUS_UPDATE_FAILURE,
|
||||||
} from '../../actions/updatePostStatus';
|
} from '../../actions/PostStatus/updatePostStatus';
|
||||||
|
|
||||||
export interface SiteSettingsPostStatusesState {
|
export interface SiteSettingsPostStatusesState {
|
||||||
areUpdating: boolean;
|
areUpdating: boolean;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
CommentRequestSuccessAction,
|
CommentRequestSuccessAction,
|
||||||
COMMENT_REQUEST_SUCCESS,
|
COMMENT_REQUEST_SUCCESS,
|
||||||
} from '../actions/requestComment';
|
} from '../actions/Comment/requestComment';
|
||||||
|
|
||||||
import IComment from '../interfaces/IComment';
|
import IComment from '../interfaces/IComment';
|
||||||
|
|
||||||
|
|||||||
@@ -3,27 +3,27 @@ import {
|
|||||||
COMMENTS_REQUEST_START,
|
COMMENTS_REQUEST_START,
|
||||||
COMMENTS_REQUEST_SUCCESS,
|
COMMENTS_REQUEST_SUCCESS,
|
||||||
COMMENTS_REQUEST_FAILURE,
|
COMMENTS_REQUEST_FAILURE,
|
||||||
} from '../actions/requestComments';
|
} from '../actions/Comment/requestComments';
|
||||||
|
|
||||||
import { commentRequestSuccess } from '../actions/requestComment';
|
import { commentRequestSuccess } from '../actions/Comment/requestComment';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
HandleCommentRepliesType,
|
HandleCommentRepliesType,
|
||||||
TOGGLE_COMMENT_REPLY,
|
TOGGLE_COMMENT_REPLY,
|
||||||
SET_COMMENT_REPLY_BODY,
|
SET_COMMENT_REPLY_BODY,
|
||||||
} from '../actions/handleCommentReplies';
|
} from '../actions/Comment/handleCommentReplies';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CommentSubmitActionTypes,
|
CommentSubmitActionTypes,
|
||||||
COMMENT_SUBMIT_START,
|
COMMENT_SUBMIT_START,
|
||||||
COMMENT_SUBMIT_SUCCESS,
|
COMMENT_SUBMIT_SUCCESS,
|
||||||
COMMENT_SUBMIT_FAILURE,
|
COMMENT_SUBMIT_FAILURE,
|
||||||
} from '../actions/submitComment';
|
} from '../actions/Comment/submitComment';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ToggleIsUpdateSuccessAction,
|
ToggleIsUpdateSuccessAction,
|
||||||
TOGGLE_COMMENT_IS_UPDATE_SUCCESS,
|
TOGGLE_COMMENT_IS_UPDATE_SUCCESS,
|
||||||
} from '../actions/updateComment';
|
} from '../actions/Comment/updateComment';
|
||||||
|
|
||||||
import commentReducer from './commentReducer';
|
import commentReducer from './commentReducer';
|
||||||
import replyFormsReducer from './replyFormsReducer';
|
import replyFormsReducer from './replyFormsReducer';
|
||||||
|
|||||||
@@ -3,54 +3,54 @@ import {
|
|||||||
POST_REQUEST_START,
|
POST_REQUEST_START,
|
||||||
POST_REQUEST_SUCCESS,
|
POST_REQUEST_SUCCESS,
|
||||||
POST_REQUEST_FAILURE,
|
POST_REQUEST_FAILURE,
|
||||||
} from '../actions/requestPost';
|
} from '../actions/Post/requestPost';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ChangePostBoardSuccessAction,
|
ChangePostBoardSuccessAction,
|
||||||
CHANGE_POST_BOARD_SUCCESS,
|
CHANGE_POST_BOARD_SUCCESS,
|
||||||
} from '../actions/changePostBoard';
|
} from '../actions/Post/changePostBoard';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ChangePostStatusSuccessAction,
|
ChangePostStatusSuccessAction,
|
||||||
CHANGE_POST_STATUS_SUCCESS,
|
CHANGE_POST_STATUS_SUCCESS,
|
||||||
} from '../actions/changePostStatus';
|
} from '../actions/Post/changePostStatus';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
LikesRequestActionTypes,
|
LikesRequestActionTypes,
|
||||||
LIKES_REQUEST_START,
|
LIKES_REQUEST_START,
|
||||||
LIKES_REQUEST_SUCCESS,
|
LIKES_REQUEST_SUCCESS,
|
||||||
LIKES_REQUEST_FAILURE,
|
LIKES_REQUEST_FAILURE,
|
||||||
} from '../actions/requestLikes';
|
} from '../actions/Like/requestLikes';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
LikeActionTypes,
|
LikeActionTypes,
|
||||||
LIKE_SUBMIT_SUCCESS,
|
LIKE_SUBMIT_SUCCESS,
|
||||||
} from '../actions/submitLike';
|
} from '../actions/Like/submitLike';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CommentsRequestActionTypes,
|
CommentsRequestActionTypes,
|
||||||
COMMENTS_REQUEST_START,
|
COMMENTS_REQUEST_START,
|
||||||
COMMENTS_REQUEST_SUCCESS,
|
COMMENTS_REQUEST_SUCCESS,
|
||||||
COMMENTS_REQUEST_FAILURE,
|
COMMENTS_REQUEST_FAILURE,
|
||||||
} from '../actions/requestComments';
|
} from '../actions/Comment/requestComments';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
HandleCommentRepliesType,
|
HandleCommentRepliesType,
|
||||||
TOGGLE_COMMENT_REPLY,
|
TOGGLE_COMMENT_REPLY,
|
||||||
SET_COMMENT_REPLY_BODY,
|
SET_COMMENT_REPLY_BODY,
|
||||||
} from '../actions/handleCommentReplies';
|
} from '../actions/Comment/handleCommentReplies';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CommentSubmitActionTypes,
|
CommentSubmitActionTypes,
|
||||||
COMMENT_SUBMIT_START,
|
COMMENT_SUBMIT_START,
|
||||||
COMMENT_SUBMIT_SUCCESS,
|
COMMENT_SUBMIT_SUCCESS,
|
||||||
COMMENT_SUBMIT_FAILURE,
|
COMMENT_SUBMIT_FAILURE,
|
||||||
} from '../actions/submitComment';
|
} from '../actions/Comment/submitComment';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ToggleIsUpdateSuccessAction,
|
ToggleIsUpdateSuccessAction,
|
||||||
TOGGLE_COMMENT_IS_UPDATE_SUCCESS,
|
TOGGLE_COMMENT_IS_UPDATE_SUCCESS,
|
||||||
} from '../actions/updateComment';
|
} from '../actions/Comment/updateComment';
|
||||||
|
|
||||||
import postReducer from './postReducer';
|
import postReducer from './postReducer';
|
||||||
import likesReducer from './likesReducer';
|
import likesReducer from './likesReducer';
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import {
|
|||||||
LIKES_REQUEST_START,
|
LIKES_REQUEST_START,
|
||||||
LIKES_REQUEST_SUCCESS,
|
LIKES_REQUEST_SUCCESS,
|
||||||
LIKES_REQUEST_FAILURE,
|
LIKES_REQUEST_FAILURE,
|
||||||
} from '../actions/requestLikes';
|
} from '../actions/Like/requestLikes';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
LikeActionTypes,
|
LikeActionTypes,
|
||||||
LIKE_SUBMIT_SUCCESS,
|
LIKE_SUBMIT_SUCCESS,
|
||||||
} from '../actions/submitLike';
|
} from '../actions/Like/submitLike';
|
||||||
|
|
||||||
import ILike from '../interfaces/ILike';
|
import ILike from '../interfaces/ILike';
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
import {
|
import {
|
||||||
PostRequestActionTypes,
|
PostRequestActionTypes,
|
||||||
POST_REQUEST_SUCCESS,
|
POST_REQUEST_SUCCESS,
|
||||||
} from '../actions/requestPost';
|
} from '../actions/Post/requestPost';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ChangePostBoardSuccessAction,
|
ChangePostBoardSuccessAction,
|
||||||
CHANGE_POST_BOARD_SUCCESS,
|
CHANGE_POST_BOARD_SUCCESS,
|
||||||
} from '../actions/changePostBoard';
|
} from '../actions/Post/changePostBoard';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ChangePostStatusSuccessAction,
|
ChangePostStatusSuccessAction,
|
||||||
CHANGE_POST_STATUS_SUCCESS,
|
CHANGE_POST_STATUS_SUCCESS,
|
||||||
} from '../actions/changePostStatus';
|
} from '../actions/Post/changePostStatus';
|
||||||
|
|
||||||
import IPost from '../interfaces/IPost';
|
import IPost from '../interfaces/IPost';
|
||||||
|
|
||||||
|
|||||||
@@ -3,27 +3,27 @@ import {
|
|||||||
POST_STATUSES_REQUEST_START,
|
POST_STATUSES_REQUEST_START,
|
||||||
POST_STATUSES_REQUEST_SUCCESS,
|
POST_STATUSES_REQUEST_SUCCESS,
|
||||||
POST_STATUSES_REQUEST_FAILURE,
|
POST_STATUSES_REQUEST_FAILURE,
|
||||||
} from '../actions/requestPostStatuses';
|
} from '../actions/PostStatus/requestPostStatuses';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusOrderUpdateActionTypes,
|
PostStatusOrderUpdateActionTypes,
|
||||||
POSTSTATUS_ORDER_UPDATE_START,
|
POSTSTATUS_ORDER_UPDATE_START,
|
||||||
} from '../actions/updatePostStatusOrder';
|
} from '../actions/PostStatus/updatePostStatusOrder';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusDeleteActionTypes,
|
PostStatusDeleteActionTypes,
|
||||||
POST_STATUS_DELETE_SUCCESS,
|
POST_STATUS_DELETE_SUCCESS,
|
||||||
} from '../actions/deletePostStatus';
|
} from '../actions/PostStatus/deletePostStatus';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusSubmitActionTypes,
|
PostStatusSubmitActionTypes,
|
||||||
POSTSTATUS_SUBMIT_SUCCESS,
|
POSTSTATUS_SUBMIT_SUCCESS,
|
||||||
} from '../actions/submitPostStatus';
|
} from '../actions/PostStatus/submitPostStatus';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusUpdateActionTypes,
|
PostStatusUpdateActionTypes,
|
||||||
POSTSTATUS_UPDATE_SUCCESS,
|
POSTSTATUS_UPDATE_SUCCESS,
|
||||||
} from '../actions/updatePostStatus';
|
} from '../actions/PostStatus/updatePostStatus';
|
||||||
|
|
||||||
import IPostStatus from '../interfaces/IPostStatus';
|
import IPostStatus from '../interfaces/IPostStatus';
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import {
|
|||||||
POSTS_REQUEST_START,
|
POSTS_REQUEST_START,
|
||||||
POSTS_REQUEST_SUCCESS,
|
POSTS_REQUEST_SUCCESS,
|
||||||
POSTS_REQUEST_FAILURE,
|
POSTS_REQUEST_FAILURE,
|
||||||
} from '../actions/requestPosts';
|
} from '../actions/Post/requestPosts';
|
||||||
|
|
||||||
import { postRequestSuccess } from '../actions/requestPost';
|
import { postRequestSuccess } from '../actions/Post/requestPost';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ChangeFiltersActionTypes,
|
ChangeFiltersActionTypes,
|
||||||
@@ -25,7 +25,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
LikeActionTypes,
|
LikeActionTypes,
|
||||||
LIKE_SUBMIT_SUCCESS,
|
LIKE_SUBMIT_SUCCESS,
|
||||||
} from '../actions/submitLike';
|
} from '../actions/Like/submitLike';
|
||||||
|
|
||||||
export interface PostsState {
|
export interface PostsState {
|
||||||
items: Array<IPost>;
|
items: Array<IPost>;
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
import {
|
import {
|
||||||
CommentRequestSuccessAction,
|
CommentRequestSuccessAction,
|
||||||
COMMENT_REQUEST_SUCCESS,
|
COMMENT_REQUEST_SUCCESS,
|
||||||
} from '../actions/requestComment';
|
} from '../actions/Comment/requestComment';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
HandleCommentRepliesType,
|
HandleCommentRepliesType,
|
||||||
TOGGLE_COMMENT_REPLY,
|
TOGGLE_COMMENT_REPLY,
|
||||||
SET_COMMENT_REPLY_BODY,
|
SET_COMMENT_REPLY_BODY,
|
||||||
} from '../actions/handleCommentReplies';
|
} from '../actions/Comment/handleCommentReplies';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CommentSubmitActionTypes,
|
CommentSubmitActionTypes,
|
||||||
COMMENT_SUBMIT_START,
|
COMMENT_SUBMIT_START,
|
||||||
COMMENT_SUBMIT_SUCCESS,
|
COMMENT_SUBMIT_SUCCESS,
|
||||||
COMMENT_SUBMIT_FAILURE,
|
COMMENT_SUBMIT_FAILURE,
|
||||||
} from '../actions/submitComment';
|
} from '../actions/Comment/submitComment';
|
||||||
|
|
||||||
export interface ReplyFormState {
|
export interface ReplyFormState {
|
||||||
commentId: number;
|
commentId: number;
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
import {
|
import {
|
||||||
CommentsRequestActionTypes,
|
CommentsRequestActionTypes,
|
||||||
COMMENTS_REQUEST_SUCCESS,
|
COMMENTS_REQUEST_SUCCESS,
|
||||||
} from '../actions/requestComments';
|
} from '../actions/Comment/requestComments';
|
||||||
|
|
||||||
import { commentRequestSuccess } from '../actions/requestComment';
|
import { commentRequestSuccess } from '../actions/Comment/requestComment';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
HandleCommentRepliesType,
|
HandleCommentRepliesType,
|
||||||
TOGGLE_COMMENT_REPLY,
|
TOGGLE_COMMENT_REPLY,
|
||||||
SET_COMMENT_REPLY_BODY,
|
SET_COMMENT_REPLY_BODY,
|
||||||
} from '../actions/handleCommentReplies';
|
} from '../actions/Comment/handleCommentReplies';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CommentSubmitActionTypes,
|
CommentSubmitActionTypes,
|
||||||
COMMENT_SUBMIT_START,
|
COMMENT_SUBMIT_START,
|
||||||
COMMENT_SUBMIT_SUCCESS,
|
COMMENT_SUBMIT_SUCCESS,
|
||||||
COMMENT_SUBMIT_FAILURE,
|
COMMENT_SUBMIT_FAILURE,
|
||||||
} from '../actions/submitComment';
|
} from '../actions/Comment/submitComment';
|
||||||
|
|
||||||
import replyFormReducer, { ReplyFormState } from './replyFormReducer';
|
import replyFormReducer, { ReplyFormState } from './replyFormReducer';
|
||||||
|
|
||||||
|
|||||||
@@ -3,28 +3,28 @@ import {
|
|||||||
POSTSTATUS_ORDER_UPDATE_START,
|
POSTSTATUS_ORDER_UPDATE_START,
|
||||||
POSTSTATUS_ORDER_UPDATE_SUCCESS,
|
POSTSTATUS_ORDER_UPDATE_SUCCESS,
|
||||||
POSTSTATUS_ORDER_UPDATE_FAILURE,
|
POSTSTATUS_ORDER_UPDATE_FAILURE,
|
||||||
} from '../actions/updatePostStatusOrder';
|
} from '../actions/PostStatus/updatePostStatusOrder';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusDeleteActionTypes,
|
PostStatusDeleteActionTypes,
|
||||||
POST_STATUS_DELETE_START,
|
POST_STATUS_DELETE_START,
|
||||||
POST_STATUS_DELETE_SUCCESS,
|
POST_STATUS_DELETE_SUCCESS,
|
||||||
POST_STATUS_DELETE_FAILURE,
|
POST_STATUS_DELETE_FAILURE,
|
||||||
} from '../actions/deletePostStatus';
|
} from '../actions/PostStatus/deletePostStatus';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusSubmitActionTypes,
|
PostStatusSubmitActionTypes,
|
||||||
POSTSTATUS_SUBMIT_START,
|
POSTSTATUS_SUBMIT_START,
|
||||||
POSTSTATUS_SUBMIT_SUCCESS,
|
POSTSTATUS_SUBMIT_SUCCESS,
|
||||||
POSTSTATUS_SUBMIT_FAILURE,
|
POSTSTATUS_SUBMIT_FAILURE,
|
||||||
} from '../actions/submitPostStatus';
|
} from '../actions/PostStatus/submitPostStatus';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PostStatusUpdateActionTypes,
|
PostStatusUpdateActionTypes,
|
||||||
POSTSTATUS_UPDATE_START,
|
POSTSTATUS_UPDATE_START,
|
||||||
POSTSTATUS_UPDATE_SUCCESS,
|
POSTSTATUS_UPDATE_SUCCESS,
|
||||||
POSTSTATUS_UPDATE_FAILURE,
|
POSTSTATUS_UPDATE_FAILURE,
|
||||||
} from '../actions/updatePostStatus';
|
} from '../actions/PostStatus/updatePostStatus';
|
||||||
|
|
||||||
import siteSettingsPostStatusesReducer, { SiteSettingsPostStatusesState } from './SiteSettings/postStatusesReducer';
|
import siteSettingsPostStatusesReducer, { SiteSettingsPostStatusesState } from './SiteSettings/postStatusesReducer';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user