-
Notifications
You must be signed in to change notification settings - Fork 2
Update ganache, remove stars, hopefully fix canvas growth bug, and change stats comparison #4
base: master
Are you sure you want to change the base?
Conversation
<div className="tile is-ancestor"> | ||
<div className="tile is-12"> | ||
<DownloadsTile colorclassName="is-ganache" packageName="ganache-cli" startDate="2017-10-01" /> | ||
<DownloadsTile colorclassName="is-ganache" packageName="ethereumjs-testrpc,ganache,ganache-cli,ganache-core" startDate="2016-01-08" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add all ganache packages and changes the date to include the first testrpc downloads
@@ -53,7 +53,7 @@ var Dashboard = React.createClass({ | |||
<StargazersTile projects={["trufflesuite/truffle", "trufflesuite/ganache", "trufflesuite/drizzle"]}/> | |||
</div> | |||
</div> | |||
|
|||
*/} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stargazers didn't work
console.error(error); | ||
callback(error); | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes it so each "Tile" can specify multiple comma-separated packages. This code downloads the stats for all packages for the Tile and combines them together.
var totalGrowthInDownloads = lastThreeMonths - prevThreeMonths; | ||
var growth = Math.round(Math.abs(totalGrowthInDownloads) / prevThreeMonths * 100); | ||
var totalGrowthInDownloads = lastSixMonths - prevSixMonths; | ||
var growth = Math.round(Math.abs(totalGrowthInDownloads) / prevSixMonths * 100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a lot more data than we used to, and six months will show a consistently more favorable picture, given the ebbs and flows of crypto dev
@@ -378,7 +400,9 @@ var DownloadsTile = React.createClass({ | |||
<div className="tile"> | |||
<div className="tile is-parent is-8"> | |||
<div className={'tile is-child notification ' + this.props.colorclassName}> | |||
{chart} | |||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this extra div container will prevent the infinite growth bug. weird but maybe worth a shot!
An everything PR. enjoy!