diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-10-15 18:21:36 +0400 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-10-15 18:21:36 +0400 |
| commit | fb142d6bab22a39d19f2c41b24f899b59371c407 (patch) | |
| tree | 95e0d6b12dcfbd94cb3270497dae549dde84e871 /src/components | |
| parent | Add gh-pages deployment (diff) | |
| download | githunt-fb142d6bab22a39d19f2c41b24f899b59371c407.tar.gz | |
Add redux persist expire and update dependencies
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/repository-grid/grid-item/index.js | 9 | ||||
| -rw-r--r-- | src/components/repository-list/list-item/index.js | 8 |
2 files changed, 12 insertions, 5 deletions
diff --git a/src/components/repository-grid/grid-item/index.js b/src/components/repository-grid/grid-item/index.js index ac7c9c2..582d348 100644 --- a/src/components/repository-grid/grid-item/index.js +++ b/src/components/repository-grid/grid-item/index.js @@ -13,7 +13,7 @@ class GridItem extends React.Component { <div className="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12 grid-item-container"> <div className="grid-item-body"> <div className="author-header clearfix"> - <a href={ this.props.repository.owner.html_url } target="_blank"> + <a href={ this.props.repository.owner.html_url } rel="noopener noreferrer" target="_blank"> <div className="author-img"> <img src={ this.props.repository.owner.avatar_url } onError={ (e) => { @@ -29,12 +29,12 @@ class GridItem extends React.Component { </div> <div className="repo-header"> <h5> - <a href={ this.props.repository.html_url } target="_blank"> + <a href={ this.props.repository.html_url } rel="noopener noreferrer" target="_blank"> <span className="repo-name">{ this.props.repository.name }</span> </a> </h5> <p className="repo-meta text-muted small"> - Built by · <a target="_blank" href={ this.props.repository.owner.html_url }>{ this.props.repository.owner.login }</a> · { moment(this.props.repository.created_at).format('MMMM D, YYYY') } + Built by · <a target="_blank" rel="noopener noreferrer" href={ this.props.repository.owner.html_url }>{ this.props.repository.owner.login }</a> · { moment(this.props.repository.created_at).format('MMMM D, YYYY') } </p> </div> <div className="repo-body"> @@ -53,18 +53,21 @@ class GridItem extends React.Component { } <a className="muted-link d-inline-block mr-3" href={ `${this.props.repository.html_url}/stargazers` } + rel="noopener noreferrer" target="_blank"> <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/> { this.props.repository.forks.toLocaleString() } </a> <a className="muted-link d-inline-block mr-3" href={ `${this.props.repository.html_url}/watchers` } + rel="noopener noreferrer" target="_blank"> <Watcher/> { this.props.repository.watchers.toLocaleString() } diff --git a/src/components/repository-list/list-item/index.js b/src/components/repository-list/list-item/index.js index 1d9bcac..0a93ae6 100644 --- a/src/components/repository-list/list-item/index.js +++ b/src/components/repository-list/list-item/index.js @@ -14,12 +14,12 @@ class ListItem extends React.Component { <div className="list-item-body"> <div className="repo-header"> <h3> - <a href={ this.props.repository.html_url } target="_blank"> + <a href={ this.props.repository.html_url } rel="noopener noreferrer" target="_blank"> <span className="text-normal">{ this.props.repository.owner.login } / </span> { this.props.repository.name } </a> </h3> - <p className="repo-meta text-muted small">Built by · <a href={ this.props.repository.owner.html_url } target="_blank">{ this.props.repository.owner.login }</a> · { moment(this.props.repository.created_at).format('MMMM D YYYY') }</p> + <p className="repo-meta text-muted small">Built by · <a href={ this.props.repository.owner.html_url } rel="noopener noreferrer" target="_blank">{ this.props.repository.owner.login }</a> · { moment(this.props.repository.created_at).format('MMMM D YYYY') }</p> </div> <div className="repo-body"> <p>{ this.props.repository.description || 'No description given.' }</p> @@ -37,18 +37,21 @@ class ListItem extends React.Component { } <a className="muted-link d-inline-block mr-3" href={ `${this.props.repository.html_url}/stargazers` } + rel="noopener noreferrer" target="_blank"> <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/> { this.props.repository.forks.toLocaleString() } </a> <a className="muted-link d-inline-block mr-3" href={ `${this.props.repository.html_url}/watchers` } + rel="noopener noreferrer" target="_blank"> <Watcher/> { this.props.repository.watchers.toLocaleString() } @@ -58,6 +61,7 @@ class ListItem extends React.Component { <a href={ this.props.repository.owner.html_url } target="_blank" + rel="noopener noreferrer" className="author-link d-none d-lg-block d-xl-block d-md-block"> <img className='author-img' src={ this.props.repository.owner.avatar_url } |
