This repository has been archived by the owner on Sep 29, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
h0tw4t3r
committed
Mar 18, 2020
1 parent
93051ba
commit 4ce41ca
Showing
17 changed files
with
81 additions
and
64 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,5 +1,5 @@ | ||
export const alertConstants = { | ||
SUCCESS: 'ALERT_SUCCESS', | ||
ERROR: 'ALERT_ERROR', | ||
CLEAR: 'ALERT_CLEAR' | ||
SUCCESS: 'alert/SUCCESS', | ||
ERROR: 'alert/ERROR', | ||
CLEAR: 'alert/CLEAR' | ||
} |
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 cabinetConstants = { | ||
CABINET_REQUEST: 'CABINET_REQUEST', | ||
CABINET_SUCCESS: 'CABINET_SUCCESS', | ||
CABINET_FAILURE: 'CABINET_FAILURE', | ||
CABINET_CLEAR: 'CABINET_CLEAR' | ||
CABINET_REQUEST: 'cabinet/REQUEST', | ||
CABINET_SUCCESS: 'cabinet/SUCCESS', | ||
CABINET_FAILURE: 'cabinet/FAILURE', | ||
CABINET_CLEAR: 'cabinet/CLEAR' | ||
} |
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 reactConstants = { | ||
FETCH_PENDING: 'FETCH_PENDING', | ||
FETCH_SUCCESS: 'FETCH_SUCCESS', | ||
FETCH_FAILURE: 'FETCH_FAILURE' | ||
FETCH_PENDING: 'react/PENDING', | ||
FETCH_SUCCESS: 'react/SUCCESS', | ||
FETCH_FAILURE: 'react/FAILURE' | ||
} |
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,9 +1,8 @@ | ||
export const tokensConstants = { | ||
TOKENS_SET: 'TOKENS_SET', | ||
REFRESH_TOKENS: 'REFRESH_TOKENS', | ||
TOKENS_SET: 'tokens/SET', | ||
|
||
TOKENS_REQUEST: 'TOKENS_REQUEST', | ||
TOKENS_SUCCESS: 'TOKENS_SUCCESS', | ||
TOKENS_FAILURE: 'TOKENS_FAILURE', | ||
TOKENS_CLEAR: 'TOKENS_CLEAR' | ||
TOKENS_REQUEST: 'tokens/REQUEST', | ||
TOKENS_SUCCESS: 'tokens/SUCCESS', | ||
TOKENS_FAILURE: 'tokens/FAILURE', | ||
TOKENS_CLEAR: 'tokens/CLEAR' | ||
} |
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,11 +1,11 @@ | ||
export const userConstants = { | ||
REGISTER_REQUEST: 'REGISTER_REQUEST', | ||
REGISTER_SUCCESS: 'REGISTER_SUCCESS', | ||
REGISTER_FAILURE: 'REGISTER_FAILURE', | ||
REGISTER_REQUEST: 'user/register/REQUEST', | ||
REGISTER_SUCCESS: 'user/register/SUCCESS', | ||
REGISTER_FAILURE: 'user/register/FAILURE', | ||
|
||
LOGIN_REQUEST: 'LOGIN_REQUEST', | ||
LOGIN_SUCCESS: 'LOGIN_SUCCESS', | ||
LOGIN_FAILURE: 'LOGIN_FAILURE', | ||
LOGIN_REQUEST: 'user/login/REQUEST', | ||
LOGIN_SUCCESS: 'user/login/SUCCESS', | ||
LOGIN_FAILURE: 'user/login/FAILURE', | ||
|
||
LOGOUT: 'LOGOUT' | ||
LOGOUT: 'user/LOGOUT' | ||
} |
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,3 +1,2 @@ | ||
export * from './history' | ||
export * from './store' | ||
export * from './auth-header' |
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,14 @@ | ||
import { createStore } from 'redux' | ||
import rootReducer from '../reducers' | ||
import { composeWithDevTools } from 'redux-devtools-extension' | ||
import middleware from '../middleware' | ||
import rootReducer from '../reducers' | ||
import createMiddleware from '../middleware' | ||
import { createBrowserHistory } from 'history' | ||
|
||
export const history = createBrowserHistory() | ||
|
||
export const store = createStore(rootReducer, composeWithDevTools(middleware)) | ||
export const configureStore = preloadedState => | ||
createStore( | ||
rootReducer(history), | ||
preloadedState, | ||
composeWithDevTools(createMiddleware(history)) | ||
) |
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,7 @@ | ||
import { applyMiddleware } from 'redux' | ||
import thunkMiddleware from 'redux-thunk' | ||
import { createLogger } from 'redux-logger' | ||
import { routerMiddleware } from 'connected-react-router' | ||
|
||
export default applyMiddleware(thunkMiddleware, createLogger()) | ||
export default history => | ||
applyMiddleware(thunkMiddleware, routerMiddleware(history), createLogger()) |
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,17 +1,20 @@ | ||
import { combineReducers } from 'redux' | ||
import { connectRouter } from 'connected-react-router' | ||
|
||
import { auth } from './auth.reducer' | ||
import { alert } from './alert.reducer' | ||
import { tokens } from './tokens.reducer' | ||
import { cabinet } from './cabinet.reducer' | ||
import { react } from './react.reducer' | ||
|
||
const rootReducer = combineReducers({ | ||
auth, | ||
tokens, | ||
alert, | ||
cabinet, | ||
react | ||
}) | ||
const rootReducer = history => | ||
combineReducers({ | ||
router: connectRouter(history), | ||
auth, | ||
tokens, | ||
alert, | ||
cabinet, | ||
react | ||
}) | ||
|
||
export default rootReducer |
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