-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from ES2-UFPI/conflict
Corrigindo conflitos
- Loading branch information
Showing
15 changed files
with
209 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const IP = '192.168.18.186'; | ||
export const IP = '192.168.0.114'; |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export interface EmotionalReaction { | ||
title?: string | ||
emotions?: string | ||
what_did_you_do?: string | ||
what_did_you_think?: string | ||
when_does_tb_usually_occur?: string | ||
where_does_tb_occur?: string | ||
who_is_present_when_tb_occurs?: string | ||
which_activitie_precede_tb?: string | ||
wd_other_people_sod_before_tb?: string | ||
do_you_engage_other_behavior_before_tb_occurs?: string | ||
what_happens_after_tb?: string | ||
wdyd_when_tb_occurs?: string | ||
wd_other_people_do_when_tb_occurs?: string | ||
what_changes_after_tb_occurs?: string | ||
wd_you_get_after_tb?: string | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './reducers/auth/actions'; | ||
export * from './reducers/user/actions'; | ||
export * from './reducers/emotionalReaction/actions'; |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { EmotionalReaction } from './../../../models/emotionalReaction'; | ||
|
||
export function setValues(values: EmotionalReaction) { | ||
return { | ||
type: '@registration/SET_VALUES', | ||
payload: { values }, | ||
}; | ||
} | ||
|
||
export function clearStepOne() { | ||
return { | ||
type: '@registration/CLEAR_STEP_ONE' | ||
}; | ||
} | ||
|
||
export function clearStepTwo() { | ||
return { | ||
type: '@registration/CLEAR_STEP_TWO' | ||
}; | ||
} | ||
|
||
export function clearStepThree() { | ||
return { | ||
type: '@registration/CLEAR_STEP_THREE' | ||
}; | ||
} | ||
|
||
export function clear() { | ||
return { | ||
type: '@registration/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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { EmotionalReaction } from './../../../models/emotionalReaction'; | ||
|
||
const INITIAL_STATE: EmotionalReaction = { | ||
title: '', | ||
emotions: '', | ||
what_did_you_do: '', | ||
what_did_you_think: '', | ||
when_does_tb_usually_occur: '', | ||
where_does_tb_occur: '', | ||
who_is_present_when_tb_occurs: '', | ||
which_activitie_precede_tb: '', | ||
wd_other_people_sod_before_tb: '', | ||
do_you_engage_other_behavior_before_tb_occurs: '', | ||
what_happens_after_tb: '', | ||
wdyd_when_tb_occurs: '', | ||
wd_other_people_do_when_tb_occurs: '', | ||
what_changes_after_tb_occurs: '', | ||
wd_you_get_after_tb: '' | ||
}; | ||
|
||
const emotionalReaction = (state = INITIAL_STATE, action: any) => { | ||
const baseAction = '@registration/'; | ||
switch (action.type) { | ||
|
||
case `${baseAction}SET_VALUES`: | ||
return { | ||
...state, ...action.payload.values | ||
} | ||
case `${baseAction}CLEAR_STEP_ONE`: | ||
return { | ||
...state, | ||
title: INITIAL_STATE.title, | ||
emotions: INITIAL_STATE.emotions, | ||
what_did_you_do: INITIAL_STATE.what_did_you_do, | ||
what_did_you_think: INITIAL_STATE.what_did_you_think | ||
} | ||
case `${baseAction}CLEAR_STEP_TWO`: | ||
return { | ||
...state, | ||
when_does_tb_usually_occur: INITIAL_STATE.when_does_tb_usually_occur, | ||
where_does_tb_occur: INITIAL_STATE.where_does_tb_occur, | ||
who_is_present_when_tb_occurs: INITIAL_STATE.who_is_present_when_tb_occurs, | ||
which_activitie_precede_tb: INITIAL_STATE.which_activitie_precede_tb, | ||
wd_other_people_sod_before_tb: INITIAL_STATE.wd_other_people_sod_before_tb, | ||
do_you_engage_other_behavior_before_tb_occurs: INITIAL_STATE.do_you_engage_other_behavior_before_tb_occurs | ||
} | ||
case `${baseAction}CLEAR_STEP_THREE`: | ||
return { | ||
...state, | ||
what_happens_after_tb: INITIAL_STATE.what_happens_after_tb, | ||
wdyd_when_tb_occurs: INITIAL_STATE.wdyd_when_tb_occurs, | ||
wd_other_people_do_when_tb_occurs: INITIAL_STATE.wd_other_people_do_when_tb_occurs, | ||
what_changes_after_tb_occurs: INITIAL_STATE.what_changes_after_tb_occurs, | ||
wd_you_get_after_tb: INITIAL_STATE.wd_you_get_after_tb | ||
} | ||
case `${baseAction}CLEAR`: | ||
return { | ||
...state, ...INITIAL_STATE | ||
} | ||
default: | ||
return state; | ||
} | ||
} | ||
|
||
export default emotionalReaction; | ||
|
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
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
Oops, something went wrong.