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
Showing
68 changed files
with
2,957 additions
and
714 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
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
42 changes: 42 additions & 0 deletions
42
graph/project-details/src/lib/project-details-wrapper.state.ts
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,42 @@ | ||
import { | ||
AppDispatch, | ||
RootState, | ||
expandTargetActions, | ||
getExpandedTargets, | ||
getSelectedTargetGroup, | ||
selectTargetGroupActions, | ||
} from '@nx/graph/state'; | ||
|
||
const mapStateToProps = (state: RootState) => { | ||
return { | ||
expandTargets: getExpandedTargets(state), | ||
selectedTargetGroup: getSelectedTargetGroup(state), | ||
}; | ||
}; | ||
|
||
const mapDispatchToProps = (dispatch: AppDispatch) => { | ||
return { | ||
setExpandTargets(targets: string[]) { | ||
dispatch(expandTargetActions.setExpandTargets(targets)); | ||
}, | ||
selectTargetGroup(targetGroup: string) { | ||
dispatch(selectTargetGroupActions.selectTargetGroup(targetGroup)); | ||
}, | ||
collapseAllTargets() { | ||
dispatch(expandTargetActions.collapseAllTargets()); | ||
}, | ||
clearTargetGroup() { | ||
dispatch(selectTargetGroupActions.clearTargetGroup()); | ||
}, | ||
}; | ||
}; | ||
|
||
type mapStateToPropsType = ReturnType<typeof mapStateToProps>; | ||
type mapDispatchToPropsType = ReturnType<typeof mapDispatchToProps>; | ||
|
||
export { | ||
mapStateToProps, | ||
mapDispatchToProps, | ||
mapStateToPropsType, | ||
mapDispatchToPropsType, | ||
}; |
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,12 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@nx/react/babel", | ||
{ | ||
"runtime": "automatic", | ||
"useBuiltIns": "usage" | ||
} | ||
] | ||
], | ||
"plugins": [] | ||
} |
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,18 @@ | ||
{ | ||
"extends": ["plugin:@nx/react", "../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": {} | ||
} | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"name": "graph-state", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "graph/state/src", | ||
"projectType": "library", | ||
"tags": [], | ||
"// targets": "to see all targets run: nx show project ui-icons --web", | ||
"targets": { | ||
"lint": {} | ||
} | ||
} |
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,6 @@ | ||
export * from './lib/expand-targets/expand-targets.slice'; | ||
export * from './lib/select-target-group/select-target-group.slice'; | ||
export * from './lib/root/root-state.initial'; | ||
export * from './lib/root/root.reducer'; | ||
export * from './lib/root/root.store'; | ||
export * from './lib/store.decorator'; |
Oops, something went wrong.