-
Notifications
You must be signed in to change notification settings - Fork 13
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 #1 from xchem/dev
Merge a load of development
- Loading branch information
Showing
32 changed files
with
1,463 additions
and
345 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* Created by abradley on 15/03/2018. | ||
*/ | ||
|
||
import {SET_TO_BUY_LIST, APPEND_TO_BUY_LIST, REMOVE_FROM_TO_BUY_LIST, GET_FULL_GRAPH, GOT_FULL_GRAPH, SELECT_VECTOR} from './actonTypes' | ||
|
||
export const setToBuyList = function (to_buy_list){ | ||
console.log("ACTIONS: "+ to_buy_list) | ||
return { | ||
type: SET_TO_BUY_LIST, | ||
to_buy_list: to_buy_list | ||
} | ||
} | ||
|
||
export const appendToBuyList = function (item){ | ||
console.log("ACTIONS: "+ item) | ||
return { | ||
type: APPEND_TO_BUY_LIST, | ||
item: item | ||
} | ||
} | ||
|
||
export const removeFromToBuyList = function (item){ | ||
console.log("ACTIONS: "+ item) | ||
return { | ||
type: REMOVE_FROM_TO_BUY_LIST, | ||
item: item | ||
} | ||
} | ||
|
||
export const getFullGraph = function (item) { | ||
console.log("ACTIONS: " + item) | ||
return { | ||
type: GET_FULL_GRAPH, | ||
item: item | ||
} | ||
} | ||
|
||
|
||
|
||
export const gotFullGraph = function (result){ | ||
console.log("ACTIONS: "+ result) | ||
return { | ||
type: GOT_FULL_GRAPH, | ||
input_mol_dict: result | ||
} | ||
} | ||
|
||
|
||
export const selectVector = function (vector){ | ||
console.log("ACTIONS: "+ vector) | ||
return { | ||
type: SELECT_VECTOR, | ||
vector: vector | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Created by abradley on 15/03/2018. | ||
*/ | ||
import { ListGroupItem, ListGroup, Col, Row} from 'react-bootstrap'; | ||
import React from 'react'; | ||
import { connect } from 'react-redux' | ||
import CompoundView from './compoundView'; | ||
|
||
class CompoundList extends React.Component { | ||
|
||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
render() { | ||
var totArray = new Array() | ||
for(var key in this.props.moleculeList){ | ||
var retArray = new Array(); | ||
for (var ele in this.props.moleculeList[key]){ | ||
var input_data = {} | ||
input_data["smiles"]=this.props.moleculeList[key][ele] | ||
input_data["vector"]=key.split("_")[0] | ||
input_data["mol"]=this.props.thisMol | ||
retArray.push(<CompoundView height={100} width={100} key={ele+"__"+key} data={input_data}/>) | ||
} | ||
totArray.push(<Row key={key}>{retArray}</Row>) | ||
} | ||
return totArray; | ||
} | ||
} | ||
function mapStateToProps(state) { | ||
return { | ||
moleculeList: state.selectionReducers.this_vector_list, | ||
thisMol: state.selectionReducers.to_query | ||
} | ||
} | ||
const mapDispatchToProps = { | ||
|
||
} | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(CompoundList); |
Oops, something went wrong.