diff --git a/.all-contributorsrc b/.all-contributorsrc index 4fb03ef20..31eb7ea9a 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -684,6 +684,15 @@ "contributions": [ "code" ] - } + }, + { + "login": "apoeco", + "name": "Apostolis Economou", + "avatar_url": "https://avatars0.githubusercontent.com/u/7470681?v=4", + "profile": "https://github.com/apoeco", + "contributions": [ + "code" + ] + }, ] } diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c53c36447..9b0300f12 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -3,7 +3,7 @@ Thank you to all the people who have already contributed to GitPoint! -| [
Houssein Djirdeh](https://houssein.me)
[πŸ’¬](#question-housseindjirdeh "Answering Questions") [πŸ’»](https://github.com/gitpoint/git-point/commits?author=housseindjirdeh "Code") [🎨](#design-housseindjirdeh "Design") [πŸ“–](https://github.com/gitpoint/git-point/commits?author=housseindjirdeh "Documentation") [πŸ‘€](#review-housseindjirdeh "Reviewed Pull Requests") | [
George Jose](https://github.com/g2jose)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=g2jose "Code") | [
rmevans9](https://github.com/rmevans9)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=rmevans9 "Code") | [
Alexey Pyltsyn](http://lex111.ru)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=lex111 "Code") [πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3Alex111 "Bug reports") [🌍](#translation-lex111 "Translation") | [
Jason Etcovitch](https://jasonet.co)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=JasonEtco "Code") | [
Hosmel Quintana](http://hosmelq.com)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=hosmelq "Code") | +| [
Houssein Djirdeh](https://houssein.me)
[πŸ’¬](#question-housseindjirdeh "Answering Questions") [πŸ’»](https://github.com/gitpoint/git-point/commits?author=housseindjirdeh "Code") [🎨](#design-housseindjirdeh "Design") [πŸ“–](https://github.com/gitpoint/git-point/commits?author=housseindjirdeh "Documentation") [πŸ‘€](#review-housseindjirdeh "Reviewed Pull Requests") | [
George Jose](https://github.com/g2jose)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=g2jose "Code") | [
rmevans9](https://github.com/rmevans9)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=rmevans9 "Code") | [
Alexey Pyltsyn](http://lex111.ru)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=lex111 "Code") [πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3Alex111 "Bug reports") [🌍](#translation-lex111 "Translation") | [
Jason Etcovitch](https://jasonet.co)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=JasonEtco "Code") | [
Hosmel Quintana](http://hosmelq.com)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=hosmelq "Code") | | :---: | :---: | :---: | :---: | :---: | :---: | | [
Alejandro ÑÑñez Ortiz](http://co.linkedin.com/in/alejandronanez/)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=alejandronanez "Code") [πŸ‘€](#review-alejandronanez "Reviewed Pull Requests") | [
Patrick Wang](https://patw.me)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=patw0929 "Code") [πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3Apatw0929 "Bug reports") [🌍](#translation-patw0929 "Translation") | [
Mike Kavouras](https://github.com/mikekavouras)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=mikekavouras "Code") [πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3Amikekavouras "Bug reports") | [
Peter Lazar](https://github.com/peterlazar1993)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=peterlazar1993 "Code") | [
June Domingo](https://github.com/junedomingo)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=junedomingo "Code") [πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3Ajunedomingo "Bug reports") | [
Antoine Boisadam](https://github.com/Antoine38660)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=Antoine38660 "Code") [πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3AAntoine38660 "Bug reports") | | [
Wang Shidong](https://wsdjeg.github.io)
[πŸ“–](https://github.com/gitpoint/git-point/commits?author=wsdjeg "Documentation") | [
Swapnil Joshi](http://swapnilmj.users.sourceforge.net/)
[πŸ“–](https://github.com/gitpoint/git-point/commits?author=swapnilmj "Documentation") | [
Rolf Koenders](https://github.com/RolfKoenders)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=RolfKoenders "Code") [πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3ARolfKoenders "Bug reports") [🌍](#translation-RolfKoenders "Translation") | [
Andrew Dassonville](https://andrewda.me)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=andrewda "Code") [πŸ’¬](#question-andrewda "Answering Questions") [πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3Aandrewda "Bug reports") [πŸ‘€](#review-andrewda "Reviewed Pull Requests") [⚠️](https://github.com/gitpoint/git-point/commits?author=andrewda "Tests") | [
Anton](https://medium.com/@antondomashnev)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=Antondomashnev "Code") | [
Xuezheng Ma](https://github.com/xuezhma)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=xuezhma "Code") | @@ -15,5 +15,5 @@ Thank you to all the people who have already contributed to GitPoint! | [
Peter Blazejewicz](http://www.linkedin.com/in/peterblazejewicz)
[🌍](#translation-peterblazejewicz "Translation") | [
Eric Adamski](https://github.com/ericadamski)
[πŸ›](https://github.com/gitpoint/git-point/issues?q=author%3Aericadamski "Bug reports") | [
Jouderian Nobre Junior](https://github.com/jouderianjr)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=jouderianjr "Code") | [
Phi Dong](http://www.phidong.com)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=pdong "Code") | [
John Patrick Salcedo](https://github.com/jpls93)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=jpls93 "Code") | [
Γ“scar Carretero](https://github.com/ocarreterom)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=ocarreterom "Code") | | [
Dyesse YUMBA](https://github.com/dyesseyumba)
[πŸ”§](#tool-dyesseyumba "Tools") | [
Bink](https://binkpitch.me/)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=binkpitch "Code") | [
khvilaboa](https://github.com/khvilaboa)
[🌍](#translation-khvilaboa "Translation") | [
James Glover](http://jamesmglover.com)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=jglover "Code") [⚠️](https://github.com/gitpoint/git-point/commits?author=jglover "Tests") | [
Jose Luis Naranjo](https://co.linkedin.com/in/josenaranjo/en)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=josenaranjo "Code") | [
Tobias Lohse](http://MrLoh.se)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=MrLoh "Code") | | [
Serhii Baraniuk](https://www.facebook.com/serhii.baraniuk)
[⚠️](https://github.com/gitpoint/git-point/commits?author=kenitive "Tests") | [
Ben Snider](http://www.bensnider.com/)
[⚠️](https://github.com/gitpoint/git-point/commits?author=stupergenius "Tests") | [
Simon Hoyos](https://www.linkedin.com/in/simonhoyos/)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=shmesa22 "Code") [🎨](#design-shmesa22 "Design") | [
Damien Leroy](https://github.com/ShiiFu)
[🌍](#translation-ShiiFu "Translation") | [
botbotbot](http://dev.im-bot.com)
[⚠️](https://github.com/gitpoint/git-point/commits?author=ibotdotout "Tests") | [
Dmytro Kytsmen](https://github.com/Kietzmann)
[🌍](#translation-Kietzmann "Translation") | -| [
TheCodeTalker](https://thecodetalker.github.io/)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=TheCodeTalker "Code") | [
Leonardo](https://github.com/LeoCp)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=LeoCp "Code") | [
Stephen](https://github.com/coderste)
[πŸ“–](https://github.com/gitpoint/git-point/commits?author=coderste "Documentation") | [
Zahra Traboulsi](http://www.zahra.tech)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=ZahraTee "Code") [⚠️](https://github.com/gitpoint/git-point/commits?author=ZahraTee "Tests") | [
Joseba Carral](http://codevs.es)
[🌍](#translation-jcarral "Translation") | [
CTownsdin](https://github.com/CTownsdin)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=CTownsdin "Code") | +| [
TheCodeTalker](https://thecodetalker.github.io/)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=TheCodeTalker "Code") | [
Leonardo](https://github.com/LeoCp)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=LeoCp "Code") | [
Stephen](https://github.com/coderste)
[πŸ“–](https://github.com/gitpoint/git-point/commits?author=coderste "Documentation") | [
Zahra Traboulsi](http://www.zahra.tech)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=ZahraTee "Code") [⚠️](https://github.com/gitpoint/git-point/commits?author=ZahraTee "Tests") | [
Joseba Carral](http://codevs.es)
[🌍](#translation-jcarral "Translation") | [
CTownsdin](https://github.com/CTownsdin)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=CTownsdin "Code") | [
Apostolis Economou](https://github.com/apoeco)
[πŸ’»](https://github.com/gitpoint/git-point/commits?author=apoeco "Code") | diff --git a/README.md b/README.md index 21ac03967..5dc2a7c70 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ [![Build Status](https://img.shields.io/travis/gitpoint/git-point.svg?style=flat-square)](https://travis-ci.org/gitpoint/git-point) [![Coveralls](https://img.shields.io/coveralls/github/gitpoint/git-point.svg?style=flat-square)](https://coveralls.io/github/gitpoint/git-point) -[![All Contributors](https://img.shields.io/badge/all_contributors-72-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-73-orange.svg?style=flat-square)](#contributors) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/) [![Gitter chat](https://img.shields.io/badge/chat-on_gitter-008080.svg?style=flat-square)](https://gitter.im/git-point) diff --git a/src/components/repository-list-item.component.js b/src/components/repository-list-item.component.js index f32ba27dd..f7fba86d7 100644 --- a/src/components/repository-list-item.component.js +++ b/src/components/repository-list-item.component.js @@ -1,5 +1,5 @@ import React from 'react'; -import { StyleSheet, Text, View } from 'react-native'; +import styled from 'styled-components/native'; import { ListItem, Icon } from 'react-native-elements'; import { emojifyText, abbreviateNumber } from 'utils'; @@ -11,129 +11,134 @@ type Props = { navigation: Object, }; -const styles = StyleSheet.create({ - wrapper: { - marginTop: 5, - marginBottom: 5, - marginLeft: 5, - }, - titleWrapper: { - flexDirection: 'row', - alignItems: 'center', - }, - title: { - color: colors.primaryDark, - ...fonts.fontPrimarySemiBold, - }, - privateIconContainer: { - marginLeft: 6, - }, - description: { - color: colors.primaryDark, - ...fonts.fontPrimaryLight, - }, - extraInfo: { - flexDirection: 'row', - flex: 1, - paddingTop: 5, - }, - extraInfoSubject: { - color: colors.greyDark, - paddingLeft: 3, - paddingTop: 2, - marginRight: 15, - fontSize: normalize(10), - ...fonts.fontPrimary, - }, - repositoryContainer: { - justifyContent: 'center', - flex: 1, - }, - container: { - borderBottomColor: colors.greyLight, - borderBottomWidth: 1, - }, -}); +const ListItemWrapper = styled.View` + margin-top: 5; + margin-bottom: 5; + margin-left: 5; +`; + +const RepoContainer = styled.View` + justify-content: center; + flex: 1; +`; + +const TitleWrapper = styled.View` + flex-direction: row; + align-items: center; +`; + +const ColoredText = styled.Text` + color: ${colors.primaryDark}; +`; + +const TitleText = ColoredText.extend` + ${fonts.fontPrimarySemiBold}; +`; + +const PrivateIconContainer = styled.View` + margin-left: 6; +`; + +const DescriptionText = ColoredText.extend` + ${fonts.fontPrimaryLight}; +`; + +const ExtraInfoWrapper = styled.View` + flex-direction: row; + flex: 1; + padding-top: 5; +`; + +const ExtraInfoText = styled.Text` + color: ${colors.greyDark}; + padding-left: 3; + padding-top: 2; + margin-right: 15; + ${fonts.fontPrimary}; + font-size: ${normalize(10)}; +`; + +const ExtraInfoForksText = ExtraInfoText.extend` + padding-left: 0; + margin-right: 13; +`; const renderTitle = (repository, showFullName) => ( - - - - + + + + {showFullName ? repository.full_name : repository.name} - + {repository.private && ( - + - + )} - - - {emojifyText(repository.description)} - - - - + + {emojifyText(repository.description)} + + + - + {abbreviateNumber(repository.stargazers_count)} - + - + {abbreviateNumber(repository.forks_count)} - + {repository.language !== null && ( )} - {repository.language} - - + {repository.language} + + ); +const Repository = styled(ListItem).attrs({ + titleStyle: { + color: colors.primaryDark, + fontFamily: fonts.fontPrimarySemiBold.fontFamily, + }, + underlayColor: colors.greyLight, + containerStyle: { + borderBottomColor: colors.greyLight, + borderBottomWidth: 1, + }, +})``; + export const RepositoryListItem = ({ repository, showFullName, navigation, }: Props) => ( - navigation.navigate('Repository', { repository })} /> );