Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Update ganache, remove stars, hopefully fix canvas growth bug, and change stats comparison #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

davidmurdoch
Copy link
Member

An everything PR. enjoy!

<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" />
Copy link
Member Author

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>

*/}
Copy link
Member Author

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);
});
}
Copy link
Member Author

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);
Copy link
Member Author

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>
Copy link
Member Author

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant