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
getInitialState() { | |
return { | |
rows: this.buildRows(0, 15), | |
isInfiniteLoading: false, | |
data: this.props.data | |
}; | |
}, | |
render() { | |
return ( |
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
async getDocsForView(entryId, projectId, depth = 1) { | |
this.state.state.cursor('fetchingStatus').set(true); | |
let res = []; | |
const entry = await this.getDoc(entryId); | |
res.push(entry); | |
const parentId = R.last(entry.ancestors); | |
const childrenIds = R.concat(R.keys(entry.stepIds), R.keys(entry.postIds)); |
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
/** | |
* Node.js example | |
* https://github.com/Bittrex/beta | |
* | |
* By Flavio Espinoza | |
* | |
* Expanding on example from Adrian Soluch | |
* | |
* prerequisites: | |
* npm i signalr-client crypto lodash ololog |