Skip to content

Commit

Permalink
Update dependencies and add issue count
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Jun 14, 2019
1 parent 1d15bcf commit a6ef759
Show file tree
Hide file tree
Showing 4 changed files with 4,009 additions and 4,237 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
"version": "0.1.1",
"private": true,
"dependencies": {
"axios": "^0.18.0",
"bootstrap": "^4.2.1",
"axios": "^0.19.0",
"bootstrap": "^4.3.1",
"classnames": "^2.2.6",
"font-awesome": "^4.7.0",
"moment": "^2.24.0",
"prop-types": "^15.6.2",
"react": "^16.8.1",
"react-dom": "^16.8.1",
"react-redux": "^6.0.0",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.3",
"reactstrap": "^7.1.0",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-redux": "^7.1.0",
"react-router": "^5.0.1",
"react-router-dom": "^5.0.1",
"react-scripts": "3.0.1",
"reactstrap": "^8.0.0",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.8",
"redux-persist": "^5.10.0",
"redux-persist-expire": "^1.0.2",
"redux-persist-expire": "^1.1.0",
"redux-thunk": "^2.3.0"
},
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions src/components/icons/issue.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';

const Issue = (props) => (
<svg className="octicon octicon-issue-opened" viewBox="0 0 14 16" version="1.1" width="14" height="16">
<path fillRule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path>
</svg>
);

export default Issue;
14 changes: 7 additions & 7 deletions src/components/repository-list/list-item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import './styles.css';
import moment from 'moment';
import Star from '../../icons/star';
import Fork from '../../icons/fork';
import Watcher from '../../icons/watcher';
import Issue from "../../icons/issue";

class ListItem extends React.Component {
render() {
Expand Down Expand Up @@ -39,22 +39,22 @@ class ListItem extends React.Component {
href={ `${this.props.repository.html_url}/stargazers` }
rel="noopener noreferrer"
target="_blank">
<Star/>
<Star />
{ this.props.repository.stargazers_count.toLocaleString() }
</a>
<a className="muted-link d-inline-block mr-3"
href={ `${this.props.repository.html_url}/network/members` }
rel="noopener noreferrer"
target="_blank">
<Fork/>
<Fork />
{ this.props.repository.forks.toLocaleString() }
</a>
<a className="muted-link d-inline-block mr-3"
href={ `${this.props.repository.html_url}/watchers` }
href={ `${this.props.repository.html_url}/issues` }
rel="noopener noreferrer"
target="_blank">
<Watcher/>
{ this.props.repository.subscribers_count.toLocaleString() }
<Issue />
{ this.props.repository.open_issues.toLocaleString() }
</a>
</div>
</div>
Expand All @@ -68,7 +68,7 @@ class ListItem extends React.Component {
onError={ (e) => {
e.target.src = '/img/logo.svg';
} }
alt={ this.props.repository.owner.login }/>
alt={ this.props.repository.owner.login } />
</a>
</div>
);
Expand Down
Loading

0 comments on commit a6ef759

Please sign in to comment.