├── .all-contributorsrc ├── .buckconfig ├── .commitlint └── index.js ├── .editorconfig ├── .env ├── .eslintignore ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.md │ └── FEATURE_REQUEST.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .prettierrc ├── .stylelintrc ├── .travis.yml ├── .watchmanconfig ├── App.js ├── AssetRegistry.js ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── CONTRIBUTORS.md ├── LICENSE ├── README.md ├── __tests__ ├── data │ ├── api │ │ ├── error.js │ │ ├── issue.js │ │ ├── notification.js │ │ ├── organization.js │ │ ├── pull-request.js │ │ ├── search.js │ │ ├── user.js │ │ └── users.js │ ├── label.js │ └── screens.js └── tests │ ├── actions │ ├── organization.action.js │ └── repository.action.js │ ├── api │ └── index.js │ ├── components │ ├── Badge.js │ ├── Button.js │ ├── CodeLine.js │ ├── CommentInput.js │ ├── EntityInfo.js │ ├── GithubHtmlView.js │ ├── ImageZoom.js │ ├── IssueListItem.js │ ├── LabelButton.js │ ├── LabelListItem.js │ ├── NotificationIcon.js │ ├── NotificationListItem.js │ ├── RepositoryProfile.js │ ├── StateBadge.js │ ├── ToggleView.js │ ├── UserListItem.js │ ├── UserProfile.js │ └── ViewContainer.js │ ├── others │ ├── locales.js │ └── normalize-text.js │ ├── reducers │ ├── auth.reducer.js │ ├── issue.reducer.js │ ├── notifications.reducer.js │ ├── organization.reducer.js │ ├── repository.reducer.js │ └── user.reducer.js │ └── utilities │ ├── action-helpers.js │ ├── color-helpers.js │ ├── migration-helper.js │ └── text-helper.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ ├── css │ │ │ └── github-markdown.css │ │ └── fonts │ │ │ ├── .gitignore │ │ │ └── Inconsolata-Regular.ttf │ │ ├── java │ │ └── com │ │ │ └── gitpoint │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── drawable │ │ └── ic_foreground.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_round_launcher.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_round_launcher.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_round_launcher.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_round_launcher.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_round_launcher.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_round_launcher.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── babel.config.js ├── commitlint.config.js ├── index.js ├── ios ├── GitPoint-tvOS │ └── Info.plist ├── GitPoint-tvOSTests │ └── Info.plist ├── GitPoint.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── GitPoint-tvOS.xcscheme │ │ └── GitPoint.xcscheme ├── GitPoint │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon-1024.png │ │ │ ├── icon-20@1x.png │ │ │ ├── icon-20@2x.png │ │ │ ├── icon-20@3x.png │ │ │ ├── icon-29@1x.png │ │ │ ├── icon-29@2x.png │ │ │ ├── icon-29@3x.png │ │ │ ├── icon-40@1x.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-40@3x.png │ │ │ ├── icon-50@1x.png │ │ │ ├── icon-50@2x.png │ │ │ ├── icon-57@1x.png │ │ │ ├── icon-57@2x.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-60@3x.png │ │ │ ├── icon-72@1x.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76@1x.png │ │ │ ├── icon-76@2x.png │ │ │ └── icon-83.5@2x.png │ │ ├── Contents.json │ │ └── LaunchImage.launchimage │ │ │ ├── Contents.json │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-667h@2x.png │ │ │ ├── Default-Landscape-736h@3x.png │ │ │ ├── Default-Portrait-2436h@3x.png │ │ │ ├── Default-Portrait-736h@3x.png │ │ │ └── Default@2x.png │ ├── Info.plist │ └── main.m ├── GitPointTests │ ├── GitPointTests.m │ └── Info.plist └── ip.txt ├── metro.config.js ├── package.json ├── root.reducer.js ├── root.store.js ├── routes.js ├── scripts └── extract-i18n.js ├── src ├── api │ ├── actions │ │ └── index.js │ ├── client.js │ ├── index.js │ ├── proxies │ │ ├── create-dispatch-proxy.js │ │ └── index.js │ ├── queries │ │ ├── index.js │ │ └── repo.query.js │ ├── reducers │ │ ├── entities.js │ │ ├── index.js │ │ └── pagination.js │ └── schemas │ │ ├── events.js │ │ ├── gql-repos.js │ │ ├── index.js │ │ ├── issues.js │ │ ├── orgs.js │ │ ├── repos.js │ │ └── users.js ├── assets │ ├── css │ │ └── github-markdown.css │ ├── fonts │ │ ├── Inconsolata-Regular.ttf │ │ ├── Menlo.ttf │ │ ├── Nunito-Bold.ttf │ │ ├── Nunito-Italic.ttf │ │ ├── Nunito-Light.ttf │ │ ├── Nunito-Regular.ttf │ │ └── Nunito-SemiBold.ttf │ ├── git-point-icon.png │ ├── images │ │ └── bg-checkered.png │ ├── loading-avatar.png │ ├── login-background.png │ ├── logo-black.png │ └── logo.png ├── auth │ ├── auth.action.js │ ├── auth.reducer.js │ ├── auth.selectors.js │ ├── auth.type.js │ ├── index.js │ └── screens │ │ ├── auth-profile.screen.js │ │ ├── events.screen.js │ │ ├── index.js │ │ ├── language-setting.screen.js │ │ ├── language-settings.js │ │ ├── login.screen.js │ │ ├── privacy-policy.screen.js │ │ ├── splash.screen.js │ │ ├── user-options.screen.js │ │ └── welcome.screen.js ├── components │ ├── badge.component.js │ ├── button.component.js │ ├── code-line.component.js │ ├── comment-input.component.js │ ├── comment-list-item.component.js │ ├── commit-list-item.component.js │ ├── diff-blocks.component.js │ ├── entity-info.component.js │ ├── error-screen.js │ ├── github-htmlview.component.js │ ├── github-style.js │ ├── image-zoom.component.js │ ├── index.js │ ├── inline-label.component.js │ ├── issue-description.component.js │ ├── issue-event-list-item.component.js │ ├── issue-list-item.component.js │ ├── label-button.component.js │ ├── label-list-item.component.js │ ├── loading-indicators │ │ ├── index.js │ │ ├── loading-common-item.component.js │ │ ├── loading-container.component.js │ │ ├── loading-event-list-item.component.js │ │ ├── loading-list-item.component.js │ │ ├── loading-members-list.component.js │ │ ├── loading-modal.component.js │ │ ├── loading-repository-list-item.component.js │ │ ├── loading-repository-profile.component.js │ │ └── loading-user-list-item.component.js │ ├── markdown-webview.component.js │ ├── members.component.js │ ├── mention-area.component.js │ ├── notification-icon.component.js │ ├── notification-list-item.component.js │ ├── parallax-scroll.component.js │ ├── repository-list-item.component.js │ ├── repository-profile.component.js │ ├── search-bar.component.android.js │ ├── search-bar.component.ios.js │ ├── section-list.component.js │ ├── state-badge.component.js │ ├── toggle-view.component.js │ ├── topics-list.component.js │ ├── user-list-item.component.js │ ├── user-profile.component.js │ └── view-container.component.js ├── config │ ├── animations.js │ ├── colors.js │ ├── common.js │ ├── fonts.js │ ├── index.js │ ├── normalize-text.js │ ├── reactotron.js │ └── status-bar.js ├── issue │ ├── index.js │ ├── issue.action.js │ ├── issue.reducer.js │ ├── issue.type.js │ └── screens │ │ ├── edit-issue-comment.screen.js │ │ ├── index.js │ │ ├── issue-settings.screen.js │ │ ├── issue.screen.js │ │ ├── new-issue.screen.js │ │ └── pull-merge.screen.js ├── locale │ ├── index.js │ └── languages │ │ ├── ca.js │ │ ├── de.js │ │ ├── en.js │ │ ├── eo.js │ │ ├── es.js │ │ ├── eu.js │ │ ├── fr.js │ │ ├── gl.js │ │ ├── id.js │ │ ├── index.js │ │ ├── it.js │ │ ├── nb.js │ │ ├── nl.js │ │ ├── ph.js │ │ ├── pl.js │ │ ├── pt.js │ │ ├── ptBr.js │ │ ├── ru.js │ │ ├── sr.js │ │ ├── sv.js │ │ ├── th.js │ │ ├── tr.js │ │ ├── uk.js │ │ ├── zhCn.js │ │ └── zhTw.js ├── notifications │ ├── index.js │ ├── notifications.action.js │ ├── notifications.reducer.js │ ├── notifications.type.js │ └── screens │ │ ├── index.js │ │ └── notifications.screen.js ├── organization │ ├── index.js │ ├── organization.action.js │ ├── organization.constants.js │ ├── organization.reducer.js │ ├── organization.selectors.js │ └── screens │ │ ├── index.js │ │ └── organization-profile.screen.js ├── repository │ ├── index.js │ ├── repository.action.js │ ├── repository.reducer.js │ ├── repository.type.js │ └── screens │ │ ├── commit-list.screen.js │ │ ├── commit.screen.js │ │ ├── index.js │ │ ├── issue-list.screen.js │ │ ├── pull-diff.screen.js │ │ ├── pull-list.screen.js │ │ ├── read-me.screen.js │ │ ├── repository-code-list.screen.js │ │ ├── repository-file.screen.js │ │ └── repository.screen.js ├── search │ ├── index.js │ └── screens │ │ ├── index.js │ │ └── search.screen.js ├── user │ ├── index.js │ ├── screens │ │ ├── follower-list.screen.js │ │ ├── following-list.screen.js │ │ ├── index.js │ │ ├── profile.screen.js │ │ ├── repository-list.screen.js │ │ └── starred-repository-list.screen.js │ ├── user.action.js │ ├── user.reducer.js │ └── user.type.js └── utils │ ├── action-helper.js │ ├── api-helpers.js │ ├── color-helpers.js │ ├── event-helpers.js │ ├── index.js │ ├── loading-animation.js │ ├── localization-helper.js │ ├── method-helpers.js │ ├── migration-helper.js │ └── text-helper.js ├── testenv.js └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.commitlint/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | rules: { 3 | 'body-leading-blank': [1, 'always'], 4 | 'footer-leading-blank': [1, 'always'], 5 | 'header-max-length': [2, 'always', 72], 6 | 'scope-case': [2, 'always', 'lowerCase'], 7 | 'subject-empty': [2, 'never'], 8 | 'subject-full-stop': [2, 'never', '.'], 9 | 'type-case': [2, 'always', 'lowerCase'], 10 | 'type-empty': [2, 'never'], 11 | 'type-enum': [ 12 | 2, 13 | 'always', 14 | [ 15 | 'build', 16 | 'chore', 17 | 'docs', 18 | 'feat', 19 | 'fix', 20 | 'perf', 21 | 'refactor', 22 | 'revert', 23 | 'style', 24 | 'test', 25 | ], 26 | ], 27 | }, 28 | }; 29 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | CODEPUSH_ANDROID_DEPLOYMENT_KEY= 2 | CODEPUSH_IOS_DEPLOYMENT_KEY= 3 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | __tests__/** 2 | testenv.js 3 | coverage/** 4 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | node_modules/react-native/flow-github/ 28 | 29 | [options] 30 | module.system.node.resolve_dirname=node_modules 31 | module.system.node.resolve_dirname=src 32 | module.name_mapper='^package.json$' -> '/package.json' 33 | emoji=true 34 | 35 | esproposal.optional_chaining=enable 36 | esproposal.nullish_coalescing=enable 37 | 38 | module.system=haste 39 | module.system.haste.use_name_reducers=true 40 | # get basename 41 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 42 | # strip .js or .js.flow suffix 43 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 44 | # strip .ios suffix 45 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 46 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 47 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 48 | module.system.haste.paths.blacklist=.*/__tests__/.* 49 | module.system.haste.paths.blacklist=.*/__mocks__/.* 50 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 51 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 52 | 53 | munge_underscores=true 54 | 55 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 56 | 57 | module.file_ext=.js 58 | module.file_ext=.jsx 59 | module.file_ext=.json 60 | module.file_ext=.native.js 61 | 62 | suppress_type=$FlowIssue 63 | suppress_type=$FlowFixMe 64 | suppress_type=$FlowFixMeProps 65 | suppress_type=$FlowFixMeState 66 | 67 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 68 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 69 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 70 | 71 | [version] 72 | ^0.92.0 73 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.md: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | name: 🐛 Bug report 4 | about: Create a report to help us improve 5 | --- 6 | 7 | 15 | 16 | 30 | 31 | | Question | Response | 32 | | ---------------- | ----------- | 33 | | Version? | v1.4.1 | 34 | | Devices tested? | iPhone 7... | 35 | 36 | --- 37 | 38 | ## What Currently Happens? 39 | 40 | 43 | 44 | ## What Do You Expect To Happen? 45 | 46 | 49 | 50 | ## My Reproduction Steps 51 | 52 | 56 | 57 | 1. XXX 58 | 1. XXX 59 | 1. XXX 60 | 1. XXX 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | name: 🚀 Feature request 4 | about: Submit a proposal for a new feature 5 | --- 6 | 7 | 15 | 16 | 30 | 31 | ## What Currently Happens? 32 | 33 | 36 | 37 | ## What Would You Like To Happen? 38 | 39 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 20 | 21 | | Question | Response | 22 | | ---------------- | ----------- | 23 | | Version? | v1.4.1 | 24 | | Devices tested? | iPhone 7... | 25 | | Bug fix? | yes/no | 26 | | New feature? | yes/no | 27 | | Includes tests? | yes/no | 28 | | All Tests pass? | yes/no | 29 | | Related ticket? | #... | 30 | 31 | --- 32 | 33 | ## Screenshots 34 | 35 | 40 | 41 | | Before | After | 42 | | -------- | -------- | 43 | |![before](http://placekitten.com/700/1000)|![after](http://placekitten.com/700/1001)| 44 | 45 | ## Description 46 | 47 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | package-lock.json 39 | 40 | # BUCK 41 | buck-out/ 42 | \.buckd/ 43 | *.keystore 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://docs.fastlane.tools/best-practices/source-control/ 51 | 52 | fastlane/report.xml 53 | fastlane/Preview.html 54 | fastlane/screenshots 55 | 56 | # react-native-packager 57 | react-native-packager-cache* 58 | haste-map-react-native-packager* 59 | 60 | # eslint cache 61 | .eslintcache 62 | 63 | # editors 64 | .vscode 65 | .idea 66 | 67 | coverage 68 | 69 | # Bundle artifact 70 | *.jsbundle 71 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | printWidth: 80 2 | singleQuote: true 3 | trailingComma: es5 4 | bracketSpacing: true 5 | semi: true 6 | useTabs: false 7 | tabWidth: 2 8 | -------------------------------------------------------------------------------- /.stylelintrc: -------------------------------------------------------------------------------- 1 | { 2 | "processors": ["stylelint-processor-styled-components"], 3 | "extends": [ 4 | "stylelint-config-standard", 5 | "stylelint-config-styled-components" 6 | ], 7 | "rules": { 8 | "block-no-empty": null, 9 | "declaration-colon-newline-after": null, 10 | "declaration-property-value-whitelist": { 11 | "margin": ["/^(0|[+-]?(\\d*\\.)?\\d+px)( (0|[+-]?(\\d*\\.)?\\d+px)){0,3}$/"], 12 | "padding": ["/^(0|[+-]?(\\d*\\.)?\\d+px)( (0|[+-]?(\\d*\\.)?\\d+px)){0,3}$/"], 13 | }, 14 | "value-list-max-empty-lines": null 15 | }, 16 | "syntax": "scss" 17 | } 18 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | cache: 3 | yarn: true 4 | directories: 5 | - node_modules 6 | node_js: 7 | - 8 8 | script: 9 | - yarn run eslint && yarn run stylelint && yarn run test:coverage 10 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Provider } from 'react-redux'; 3 | import styled from 'styled-components'; 4 | import { 5 | AppRegistry, 6 | LayoutAnimation, 7 | StatusBar, 8 | Platform, 9 | } from 'react-native'; 10 | import codePush from 'react-native-code-push'; 11 | import { PersistGate } from 'redux-persist/integration/react'; 12 | import { SafeAreaProvider } from 'react-native-safe-area-context'; // eslint-disable-line 13 | import { colors, getStatusBarConfig } from 'config'; 14 | import { getCurrentLocale, configureLocale } from 'utils'; 15 | import { GitPoint } from './routes'; 16 | import { configureStore, persistor } from './root.store'; 17 | 18 | const Container = styled.View` 19 | align-items: center; 20 | background-color: ${colors.white}; 21 | flex: 1; 22 | justify-content: center; 23 | `; 24 | 25 | const Logo = styled.Image` 26 | height: 100; 27 | width: 100; 28 | `; 29 | 30 | if (console) { 31 | console.disableYellowBox = true; // eslint-disable-line no-console 32 | } 33 | 34 | class App extends Component { 35 | static async initLocale() { 36 | const locale = await getCurrentLocale(); 37 | 38 | configureLocale(locale); 39 | } 40 | 41 | constructor() { 42 | super(); 43 | 44 | this.state = { 45 | rehydrated: false, 46 | }; 47 | this.statusBarHandler = this.statusBarHandler.bind(this); 48 | } 49 | 50 | componentWillMount() { 51 | this.constructor.initLocale(); 52 | } 53 | 54 | componentDidMount() { 55 | if (!__DEV__) { 56 | codePush.sync({ 57 | updateDialog: false, 58 | installMode: codePush.InstallMode.IMMEDIATE, 59 | }); 60 | } 61 | } 62 | 63 | componentWillUpdate() { 64 | LayoutAnimation.spring(); 65 | } 66 | 67 | getCurrentRouteName(navigationState) { 68 | if (!navigationState) { 69 | return null; 70 | } 71 | const route = navigationState.routes[navigationState.index]; 72 | 73 | if (route.routes) { 74 | return this.getCurrentRouteName(route); 75 | } 76 | 77 | return route.routeName; 78 | } 79 | 80 | statusBarHandler(prev, next) { 81 | const routeName = this.getCurrentRouteName(next); 82 | 83 | const { translucent, backgroundColor, barStyle } = getStatusBarConfig( 84 | routeName 85 | ); 86 | 87 | if (Platform.OS === 'android') { 88 | StatusBar.setTranslucent(translucent); 89 | StatusBar.setBackgroundColor(backgroundColor); 90 | } 91 | StatusBar.setBarStyle(barStyle); 92 | } 93 | 94 | renderLogo = () => ( 95 | 96 | 97 | 98 | ); 99 | 100 | render() { 101 | return ( 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | ); 112 | } 113 | } 114 | 115 | AppRegistry.registerComponent('GitPoint', () => App); 116 | -------------------------------------------------------------------------------- /AssetRegistry.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * strict 9 | */ 10 | module.exports = { 11 | registerAsset(data) { 12 | return data; 13 | }, 14 | }; 15 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at houssein.djirdeh@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017-2019 Houssein Djirdeh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /__tests__/data/api/error.js: -------------------------------------------------------------------------------- 1 | export const authError = { 2 | message: 'Requires authentication', 3 | documentation_url: 4 | 'https://developer.github.com/v3/activity/notifications/#list-your-notifications', 5 | }; 6 | -------------------------------------------------------------------------------- /__tests__/data/api/notification.js: -------------------------------------------------------------------------------- 1 | export const notification = { 2 | id: '1', 3 | repository: { 4 | id: 1296269, 5 | owner: { 6 | login: 'octocat', 7 | id: 1, 8 | avatar_url: 'https://github.com/images/error/octocat_happy.gif', 9 | gravatar_id: '', 10 | url: 'https://api.github.com/users/octocat', 11 | html_url: 'https://github.com/octocat', 12 | followers_url: 'https://api.github.com/users/octocat/followers', 13 | following_url: 14 | 'https://api.github.com/users/octocat/following{/other_user}', 15 | gists_url: 'https://api.github.com/users/octocat/gists{/gist_id}', 16 | starred_url: 17 | 'https://api.github.com/users/octocat/starred{/owner}{/repo}', 18 | subscriptions_url: 'https://api.github.com/users/octocat/subscriptions', 19 | organizations_url: 'https://api.github.com/users/octocat/orgs', 20 | repos_url: 'https://api.github.com/users/octocat/repos', 21 | events_url: 'https://api.github.com/users/octocat/events{/privacy}', 22 | received_events_url: 23 | 'https://api.github.com/users/octocat/received_events', 24 | type: 'User', 25 | site_admin: false, 26 | }, 27 | name: 'Hello-World', 28 | full_name: 'octocat/Hello-World', 29 | description: 'This your first repo!', 30 | private: false, 31 | fork: false, 32 | url: 'https://api.github.com/repos/octocat/Hello-World', 33 | html_url: 'https://github.com/octocat/Hello-World', 34 | }, 35 | subject: { 36 | title: 'Greetings', 37 | url: 'https://api.github.com/repos/octokit/octokit.rb/issues/123', 38 | latest_comment_url: 39 | 'https://api.github.com/repos/octokit/octokit.rb/issues/comments/123', 40 | type: 'Issue', 41 | }, 42 | reason: 'subscribed', 43 | unread: true, 44 | updated_at: '2014-11-07T22:01:45Z', 45 | last_read_at: '2014-11-07T22:01:45Z', 46 | url: 'https://api.github.com/notifications/threads/1', 47 | }; 48 | -------------------------------------------------------------------------------- /__tests__/data/api/organization.js: -------------------------------------------------------------------------------- 1 | export default { 2 | login: 'github', 3 | id: 1, 4 | url: 'https://api.github.com/orgs/github', 5 | repos_url: 'https://api.github.com/orgs/github/repos', 6 | events_url: 'https://api.github.com/orgs/github/events', 7 | hooks_url: 'https://api.github.com/orgs/github/hooks', 8 | issues_url: 'https://api.github.com/orgs/github/issues', 9 | members_url: 'https://api.github.com/orgs/github/members{/member}', 10 | public_members_url: 11 | 'https://api.github.com/orgs/github/public_members{/member}', 12 | avatar_url: 'https://github.com/images/error/octocat_happy.gif', 13 | description: 'A great organization', 14 | name: 'github', 15 | blog: 'https://github.com/blog', 16 | location: 'San Francisco', 17 | email: 'octocat@github.com', 18 | public_repos: 2, 19 | public_gists: 1, 20 | html_url: 'https://github.com/octocat', 21 | created_at: '2008-01-14T04:33:35Z', 22 | type: 'Organization', 23 | total_private_repos: 100, 24 | owned_private_repos: 100, 25 | private_gists: 81, 26 | disk_usage: 10000, 27 | collaborators: 8, 28 | billing_email: 'support@github.com', 29 | plan: { 30 | name: 'Medium', 31 | space: 400, 32 | private_repos: 20, 33 | }, 34 | default_repository_settings: 'read', 35 | members_can_create_repositories: true, 36 | }; 37 | -------------------------------------------------------------------------------- /__tests__/data/api/search.js: -------------------------------------------------------------------------------- 1 | export const repos = { 2 | total_count: 40, 3 | incomplete_results: false, 4 | items: [ 5 | { 6 | id: 3081286, 7 | name: 'Tetris', 8 | full_name: 'dtrupenn/Tetris', 9 | owner: { 10 | login: 'dtrupenn', 11 | id: 872147, 12 | avatar_url: 13 | 'https://secure.gravatar.com/avatar/e7956084e75f239de85d3a31bc172ace?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png', 14 | gravatar_id: '', 15 | url: 'https://api.github.com/users/dtrupenn', 16 | received_events_url: 17 | 'https://api.github.com/users/dtrupenn/received_events', 18 | type: 'User', 19 | }, 20 | private: false, 21 | html_url: 'https://github.com/dtrupenn/Tetris', 22 | description: 'A C implementation of Tetris using Pennsim through LC4', 23 | fork: false, 24 | url: 'https://api.github.com/repos/dtrupenn/Tetris', 25 | created_at: '2012-01-01T00:31:50Z', 26 | updated_at: '2013-01-05T17:58:47Z', 27 | pushed_at: '2012-01-01T00:37:02Z', 28 | homepage: '', 29 | size: 524, 30 | stargazers_count: 1, 31 | watchers_count: 1, 32 | language: 'Assembly', 33 | forks_count: 0, 34 | open_issues_count: 0, 35 | master_branch: 'master', 36 | default_branch: 'master', 37 | score: 10.309712, 38 | }, 39 | ], 40 | }; 41 | 42 | export const users = { 43 | total_count: 12, 44 | incomplete_results: false, 45 | items: [ 46 | { 47 | login: 'mojombo', 48 | id: 1, 49 | avatar_url: 50 | 'https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png', 51 | gravatar_id: '', 52 | url: 'https://api.github.com/users/mojombo', 53 | html_url: 'https://github.com/mojombo', 54 | followers_url: 'https://api.github.com/users/mojombo/followers', 55 | subscriptions_url: 'https://api.github.com/users/mojombo/subscriptions', 56 | organizations_url: 'https://api.github.com/users/mojombo/orgs', 57 | repos_url: 'https://api.github.com/users/mojombo/repos', 58 | received_events_url: 59 | 'https://api.github.com/users/mojombo/received_events', 60 | type: 'User', 61 | score: 105.47857, 62 | }, 63 | ], 64 | }; 65 | -------------------------------------------------------------------------------- /__tests__/data/label.js: -------------------------------------------------------------------------------- 1 | export default { 2 | name: 'test label text', 3 | color: 'c3c3c3', 4 | }; 5 | -------------------------------------------------------------------------------- /__tests__/data/screens.js: -------------------------------------------------------------------------------- 1 | // iPhones 2 | export const iPhone5 = { width: 320, height: 568 }; 3 | export const iPhone6 = { width: 375, height: 667 }; 4 | export const iPhone6Plus = { width: 414, height: 736 }; 5 | export const iPhone7 = { width: 375, height: 667 }; 6 | export const iPhone7Plus = { width: 414, height: 736 }; 7 | 8 | // iPods 9 | export const iPodTouch = { width: 320, height: 568 }; 10 | 11 | // iPads 12 | export const iPadPro = { width: 1024, height: 1366 }; 13 | export const iPadGen3 = { witdh: 768, height: 1024 }; 14 | export const iPadAir = { witdh: 768, height: 1024 }; 15 | export const iPadMini = { witdh: 768, height: 1024 }; 16 | 17 | // Android Phones 18 | export const Nexus6P = { width: 411, height: 731 }; 19 | export const Nexus5X = { width: 411, height: 731 }; 20 | export const GooglePixel = { width: 411, height: 731 }; 21 | export const GooglePixelXL = { width: 411, height: 731 }; 22 | export const SamsungGalaxyNote5 = { width: 360, height: 640 }; 23 | export const SamsungGalaxyS7 = { width: 360, height: 640 }; 24 | export const SamsungGalaxyS7Edge = { width: 360, height: 640 }; 25 | export const LGG5 = { width: 360, height: 640 }; 26 | export const OnePlus3 = { width: 360, height: 640 }; 27 | 28 | // Android Tablets 29 | export const Nexus7 = { width: 600, height: 960 }; 30 | export const Nexus9 = { width: 768, height: 1024 }; 31 | export const SamsungGalaxyTab10 = { width: 800, height: 1280 }; 32 | export const ChromebookPixel = { width: 1280, height: 850 }; 33 | -------------------------------------------------------------------------------- /__tests__/tests/actions/organization.action.js: -------------------------------------------------------------------------------- 1 | import configureStore from 'redux-mock-store'; 2 | import thunk from 'redux-thunk'; 3 | import { 4 | GET_ORG_REPOS_LOADING, 5 | GET_ORG_REPOS_ERROR, 6 | GET_ORG_REPOS, 7 | } from 'organization/organization.constants'; 8 | import { fetchOrganizationRepos } from 'organization/organization.action'; 9 | import { v3 } from 'api'; 10 | 11 | const store = configureStore([thunk])({ auth: { accessToken: 'ABCXYZ' } }); 12 | 13 | jest.mock('api', () => ({ 14 | v3: { 15 | getJson: jest.fn(), 16 | }, 17 | })); 18 | 19 | describe('fetchOrganizationRepos()', () => { 20 | afterEach(() => { 21 | store.clearActions(); 22 | }); 23 | 24 | it('should return a success response', async () => { 25 | const expectedData = { name: 'organization' }; 26 | 27 | v3.getJson.mockResolvedValueOnce(expectedData); 28 | await store.dispatch(fetchOrganizationRepos('')); 29 | 30 | expect(store.getActions()).toEqual( 31 | expect.arrayContaining([ 32 | { 33 | type: GET_ORG_REPOS_LOADING, 34 | payload: true, 35 | }, 36 | { 37 | type: GET_ORG_REPOS_ERROR, 38 | payload: '', 39 | }, 40 | { 41 | type: GET_ORG_REPOS, 42 | payload: expectedData, 43 | }, 44 | ]) 45 | ); 46 | 47 | expect(store.getActions()).not.toEqual( 48 | expect.arrayContaining([ 49 | { 50 | type: GET_ORG_REPOS_LOADING, 51 | payload: false, 52 | }, 53 | { 54 | type: GET_ORG_REPOS_ERROR, 55 | payload: expectedData, 56 | }, 57 | ]) 58 | ); 59 | }); 60 | 61 | it('should return an error response', async () => { 62 | const expectedData = { error: 'no organization' }; 63 | 64 | v3.getJson.mockRejectedValueOnce(expectedData); 65 | await store.dispatch(fetchOrganizationRepos('')); 66 | 67 | expect(store.getActions()).toEqual( 68 | expect.arrayContaining([ 69 | { 70 | type: GET_ORG_REPOS_LOADING, 71 | payload: true, 72 | }, 73 | { 74 | type: GET_ORG_REPOS_LOADING, 75 | payload: false, 76 | }, 77 | { 78 | type: GET_ORG_REPOS_ERROR, 79 | payload: '', 80 | }, 81 | { 82 | type: GET_ORG_REPOS_ERROR, 83 | payload: expectedData, 84 | }, 85 | ]) 86 | ); 87 | 88 | expect(store.getActions()).not.toEqual( 89 | expect.arrayContaining([ 90 | { 91 | type: GET_ORG_REPOS, 92 | payload: expectedData, 93 | }, 94 | ]) 95 | ); 96 | }); 97 | }); 98 | -------------------------------------------------------------------------------- /__tests__/tests/components/Badge.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { shallow } from 'enzyme'; 3 | 4 | import { Badge } from 'components'; 5 | 6 | describe('', () => { 7 | it('correctly renders with text', () => { 8 | const wrapper = shallow(); 9 | 10 | expect( 11 | wrapper 12 | .childAt(0) 13 | .childAt(0) 14 | .text() 15 | ).toEqual('test text'); 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /__tests__/tests/components/Button.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { shallow, render } from 'enzyme'; 3 | 4 | import { Button } from 'components'; 5 | 6 | describe('