Project is created.

This commit is contained in:
crusader
2017-06-21 20:24:44 +09:00
commit 7ef564a6c1
12 changed files with 505 additions and 0 deletions

7
src/ts/index.tsx Normal file
View File

@@ -0,0 +1,7 @@
class Starter {
public static main(): void {
console.log('Hello world.');
}
}
Starter.main();

View File

@@ -0,0 +1,12 @@
import {MemberStatus} from './MemberStatus';
export interface Member {
id: number;
email: string;
name: string;
phone: string;
companyName: string;
createDate: Date;
status: MemberStatus;
}

View File

@@ -0,0 +1,6 @@
export enum MemberStatus {
NOAUTH = 1,
NORMAL = 2,
DORMANCY = 3,
WITHDRAWAL = 4
}

View File

@@ -0,0 +1,25 @@
import { Member } from 'member/api/model/Member';
export type REGIST = '@overflow/member/regist/REGIST';
export const REGIST: REGIST = '@overflow/member/regist/REGIST';
export type RegistAction = {
type: REGIST,
by: Member
};
function counterReducer(state = INITIAL_STATE, action:CounterAction = OtherAction) {
switch (action.type) {
case INCREMENT_COUNTER:
return state.update({value: state.value + action.by});
case DECREMENT_COUNTER:
return state.update({value: state.value - action.by});
case LOGOUT_USER:
return INITIAL_STATE;
default:
return state;
}
}