redux empty file added

This commit is contained in:
geek 2017-07-03 17:43:20 +09:00
parent 9ec1ea4cd2
commit 76d077359b
127 changed files with 348 additions and 0 deletions

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,27 @@
import Action from 'commons/redux/Action';
import Member from 'member/api/model/Member';
import SignoutActionTypes from '../action/signout';
import SigninState, { defaultState as signinDefaultState } from '../state/Signin';
export type reducer = (state: SigninState, action: Action) => SigninState;
export const reducer: reducer = (state: SigninState = signinDefaultState, action: Action): SigninState => {
switch (action.type) {
case SignoutActionTypes.REQUEST_SUCCESS:
{
const aaa: SigninState = {
...state,
isAuthenticated: true,
};
return aaa;
}
case SignoutActionTypes.REQUEST_FAILURE:
{
return state;
}
default:
return state;
}
};

View File

@ -0,0 +1,29 @@
import Action from 'commons/redux/Action';
import Member from 'member/api/model/Member';
import SignupActionTypes from '../action/signup';
import SignupState, { defaultState as signupDefaultState } from '../state/Signup';
export type reducer = (state: SignupState, action: Action<Member | Error>) => SignupState;
export const reducer: reducer = (state: SignupState = signupDefaultState, action: Action<Member | Error>): SignupState => {
switch (action.type) {
case SignupActionTypes.REQUEST_SUCCESS:
{
let member = (<Action<Member>>action).payload;
const aaa: SignupState = {
...state,
isRegistered: true,
};
return aaa;
}
case SignupActionTypes.REQUEST_FAILURE:
{
return state;
}
default:
return state;
}
};

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

View File

@ -0,0 +1,3 @@
/**
* Created by geek on 17. 7. 3.
*/

Some files were not shown because too many files have changed in this diff Show More