-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove all index.js except main one + rename actions to match `domain/action/status` nomenclature * Rename selectors * Hound review
- Loading branch information
1 parent
7a6bf7a
commit 93ebe5a
Showing
37 changed files
with
176 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export const getAuth = state => state.adminAuth | ||
export const getAuthSelector = state => state.adminAuth | ||
|
||
export const isLogged = state => getAuth(state).isLogin | ||
export const isLoggedSelector = state => getAuthSelector(state).isLogin | ||
|
||
export const getUserSelector = state => getAuth(state).user | ||
export const getUserSelector = state => getAuthSelector(state).user | ||
|
||
export const getLoginErrorSelector = state => getAuth(state).error | ||
export const getLoginErrorSelector = state => getAuthSelector(state).error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const getNotifications = state => state.adminNotifications | ||
export const getLastNotifications = state => | ||
export const getLastNotificationsSelector = state => | ||
getNotifications(state).notifications[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
export const GET_PROJECTS_SUCCESS = 'admin/getProjects/success' | ||
export const GET_PROJECTS_ERROR = 'admin/getProjects/error' | ||
export const GET_PROJECT_SUCCESS = 'admin/getProject/success' | ||
export const GET_PROJECT_ERROR = 'admin/getProject/error' | ||
export const SELECT_PROJECT = 'admin/selectProject' | ||
export const GET_PROJECT_VOTE_ITEMS_SUCCESS = 'admin/getProjectVoteItem/success' | ||
export const GET_PROJECT_VOTE_ITEMS_ERROR = 'admin/getProjectVoteItem/error' | ||
export const GET_PROJECTS_SUCCESS = 'admin/projects/get/success' | ||
export const GET_PROJECTS_ERROR = 'admin/projects/get/error' | ||
export const GET_PROJECT_SUCCESS = 'admin/project/get/success' | ||
export const GET_PROJECT_ERROR = 'admin/project/get/error' | ||
export const SELECT_PROJECT = 'admin/project/select' | ||
export const GET_PROJECT_VOTE_ITEMS_SUCCESS = | ||
'admin/project/getVoteItem/success' | ||
export const GET_PROJECT_VOTE_ITEMS_ERROR = 'admin/project/getVoteItem/error' | ||
|
||
export const EDIT_PROJECT_SUCCESS = 'admin/editProject/success' | ||
export const EDIT_PROJECT_ERROR = 'admin/editProject/error' | ||
export const EDIT_PROJECT_SUCCESS = 'admin/project/edit/success' | ||
export const EDIT_PROJECT_ERROR = 'admin/project/edit/error' | ||
|
||
export const ADD_PROJECT_SUCCESS = 'admin/addProject/success' | ||
export const ADD_PROJECT_ERROR = 'admin/addProject/error' | ||
export const ADD_PROJECT_SUCCESS = 'admin/project/add/success' | ||
export const ADD_PROJECT_ERROR = 'admin/project/add/error' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const GET_SESSION_VOTES_SUCCESS = 'admin/getSessionVotes/success' | ||
export const GET_SESSION_VOTES_ERROR = 'admin/getSessionVotes/error' | ||
export const CLEAR_SESSION_VOTES = 'admin/clearSessionVotes' | ||
export const GET_USER_VOTES_SUCCESS = 'admin/getUserVotes/success' | ||
export const GET_USER_VOTES_ERROR = 'admin/getUserVotes/error' | ||
export const CLEAR_USER_VOTES = 'admin/clearUserVotes' | ||
export const GET_SESSION_VOTES_SUCCESS = | ||
'admin/dashboard/getSessionVotes/success' | ||
export const GET_SESSION_VOTES_ERROR = 'admin/dashboard/getSessionVotes/error' | ||
export const CLEAR_SESSION_VOTES = 'admin/dashboard/clearSessionVotes' | ||
export const GET_USER_VOTES_SUCCESS = 'admin/dashboard/getUserVotes/success' | ||
export const GET_USER_VOTES_ERROR = 'admin/dashboard/getUserVotes/error' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const GET_SESSIONS_SUCCESS = 'core/getSessions/success' | ||
export const GET_SESSIONS_LOADING = 'core/getSessions/loading' | ||
export const GET_SESSIONS_ERROR = 'core/getSessions/error' | ||
export const CLEAR_SESSIONS = 'core/clearSessions' | ||
export const SET_SESSIONS_FILTER = 'core/setSessionsFilter' | ||
export const GET_SESSIONS_SUCCESS = 'core/sessions/get/success' | ||
export const GET_SESSIONS_LOADING = 'core/session/get/loading' | ||
export const GET_SESSIONS_ERROR = 'core/sessions/get/error' | ||
export const CLEAR_SESSIONS = 'core/sessions/clear' | ||
export const SET_SESSIONS_FILTER = 'core/sessions/filter' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const LOGIN_SUCCESS = 'LOGIN_SUCCESS' | ||
export const LOGIN_ERROR = 'LOGIN_ERROR' | ||
export const LOGOUT = 'LOGOUT' | ||
export const LOGIN_SUCCESS = 'login/success' | ||
export const LOGIN_ERROR = 'login/error' | ||
export const LOGOUT = 'logout' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export const getAuth = state => state.auth | ||
export const getAuthSelector = state => state.auth | ||
|
||
export const isLogged = state => getAuth(state).isLogin | ||
export const isLoggedSelector = state => getAuthSelector(state).isLogin | ||
|
||
export const getUser = state => getAuth(state).user | ||
export const getUserSelector = state => getAuthSelector(state).user | ||
|
||
export const getLoginErrorSelector = state => getAuth(state).error | ||
export const getLoginErrorSelector = state => getAuthSelector(state).error |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export const GET_PROJECT_SUCCESS = 'GET_PROJECT_SUCCESS' | ||
export const GET_PROJECT_ERROR = 'GET_PROJECT_ERROR' | ||
export const GET_PROJECT_VOTE_ITEMS_SUCCESS = 'GET_PROJECT_VOTE_ITEMS_SUCCESS' | ||
export const GET_PROJECT_VOTE_ITEMS_ERROR = 'GET_PROJECT_VOTE_ITEMS_ERROR' | ||
export const GET_PROJECT_VOTE_RESULT_SUCCESS = 'GET_PROJECT_VOTE_RESULT_SUCCESS' | ||
export const GET_PROJECT_VOTE_RESULT_ERROR = 'GET_PROJECT_VOTE_RESULT_ERROR' | ||
export const INCREMENT_VOTE_LOCALY = 'INCREMENT_VOTE_LOCALY' | ||
export const SET_SELECTED_DATE = 'SET_SELECTED_DATE' | ||
export const GET_PROJECT_SUCCESS = 'project/get/success' | ||
export const GET_PROJECT_ERROR = 'project/get/error' | ||
export const GET_PROJECT_VOTE_ITEMS_SUCCESS = 'project/getVoteItems/success' | ||
export const GET_PROJECT_VOTE_ITEMS_ERROR = 'project/getVoteItems/error' | ||
export const GET_PROJECT_VOTE_RESULT_SUCCESS = 'project/getVoteResult/success' | ||
export const GET_PROJECT_VOTE_RESULT_ERROR = 'project/getVoteResult/error' | ||
export const INCREMENT_VOTE_LOCALLY = 'project/incrementVoteLocally' | ||
export const SET_SELECTED_DATE = 'project/setSelectedDate' |
Oops, something went wrong.