├── .env ├── .github └── FUNDING.yml ├── .gitignore ├── LICENSE ├── README.md ├── babel-server.config.js ├── github.gif ├── home.png ├── package.json ├── promo └── gitix.png ├── promotion └── icons │ └── ic_launcher_gitix_512.png ├── public ├── _headers ├── android-chrome-192x192.png ├── android-chrome-512x512.png ├── apple-touch-icon.png ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico ├── images │ ├── bitbucket.png │ ├── bitbucket.svg │ ├── git.png │ ├── git.svg │ ├── github.png │ ├── github.svg │ ├── githuman.png │ ├── gitix.png │ ├── gitlab.png │ ├── gitlab.svg │ ├── menu.svg │ ├── octocat.svg │ └── user.png ├── index.html ├── manifest.json ├── mstile-150x150.png └── safari-pinned-tab.svg ├── server └── index.js ├── src ├── App.js ├── components │ ├── AddRepositories.js │ ├── App-Container.js │ ├── Avatar.js │ ├── Contributions.js │ ├── CreateRepo.js │ ├── Followers.css │ ├── Followers.js │ ├── Following.js │ ├── Footer.js │ ├── Issues.js │ ├── LoadingChecker.js │ ├── LoadingIndicator.js │ ├── LoginScreen.js │ ├── LoginView.js │ ├── Nav.js │ ├── Overview.js │ ├── Profile.js │ ├── ProfileDetails.js │ ├── ProfileMenu.js │ ├── PullRequests.js │ ├── RepoCard.js │ ├── Repositories.js │ ├── Stars.js │ ├── User.js │ ├── UserMenu.js │ ├── constants.js │ └── models.js ├── images │ └── octocat.svg ├── index.css ├── index.js └── lib │ └── blockstack.js └── yarn.lock /.env: -------------------------------------------------------------------------------- 1 | REACT_APP_VERSION=$npm_package_version 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | custom: ['https://opencollective.com/openintents/contribute'] 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | 12 | # misc 13 | .DS_Store 14 | .env.local 15 | .env.development.local 16 | .env.test.local 17 | .env.production.local 18 | 19 | npm-debug.log* 20 | yarn-debug.log* 21 | yarn-error.log* 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Paul Fitzgerald 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React-Github 💻👩‍💻💽👨‍💻 2 | 3 | This is `React-Github`, a React front end client that communicates with the Github GraphQL API. 4 | 5 | See it in action [here](http://pau1fitz.github.io/react-github). 6 | 7 | Before running the code **locally** you will need to deploy [Heroku Gatekeeper](https://github.com/prose/gatekeeper#deploy-on-heroku) with the appropriate Github client id and client secret. Then run the following: 8 | 9 | ``` 10 | yarn 11 | yarn start 12 | visit http://localhost:3000 13 | ``` 14 | 15 | ![alt text](https://github.com/Pau1fitz/react-github/blob/master/github.gif "Home") 16 | 17 | ### License 18 | 19 | Released under the MIT License. Check [LICENSE.md](https://github.com/Pau1fitz/react-github/blob/master/LICENSE) for more info. 20 | -------------------------------------------------------------------------------- /babel-server.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@babel/preset-react", 4 | "@babel/preset-env", 5 | ], 6 | plugins: [ 7 | "@babel/plugin-proposal-class-properties", 8 | ], 9 | }; 10 | -------------------------------------------------------------------------------- /github.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/github.gif -------------------------------------------------------------------------------- /home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/home.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gitix", 3 | "version": "0.3.0", 4 | "homepage": "/", 5 | "dependencies": { 6 | "@babel/node": "^7.7.4", 7 | "@babel/plugin-proposal-class-properties": "^7.7.4", 8 | "@babel/preset-env": "^7.7.4", 9 | "@babel/preset-react": "^7.7.4", 10 | "@material-ui/core": "^4.5.2", 11 | "@material-ui/icons": "^4.5.1", 12 | "blockstack": "^20.0.0-alpha.5", 13 | "blockstack-collections": "0.1.8", 14 | "cors": "^2.8.5", 15 | "express-ws": "^4.0.0", 16 | "github-calendar": "^1.3.2", 17 | "gitstar-components": "^1.0.5", 18 | "lodash": "^4.17.15", 19 | "moment": "^2.21.0", 20 | "radiks": "^0.3.0-beta.1", 21 | "radiks-server": "^0.3.0-beta.1", 22 | "react": "^16.11.0", 23 | "react-blockstack": "^0.6.3", 24 | "react-blockstack-button": "^0.1.0", 25 | "react-dom": "^16.11.0", 26 | "react-helmet": "^5.2.1", 27 | "react-router": "^5.1.2", 28 | "react-router-dom": "^5.1.2", 29 | "react-scripts": "3.2.0", 30 | "react-share": "^3.0.1", 31 | "styled-components": "^4.4.1" 32 | }, 33 | "scripts": { 34 | "babel-node": "babel-node --config-file ./babel-server.config.js", 35 | "start-web": "react-scripts start", 36 | "build": "react-scripts build", 37 | "test": "react-scripts test --env=jsdom", 38 | "eject": "react-scripts eject", 39 | "start": "NODE_ENV=production yarn babel-node server" 40 | }, 41 | "browserslist": [ 42 | ">0.2%", 43 | "not dead", 44 | "not ie <= 11", 45 | "not op_mini all" 46 | ] 47 | } 48 | -------------------------------------------------------------------------------- /promo/gitix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/promo/gitix.png -------------------------------------------------------------------------------- /promotion/icons/ic_launcher_gitix_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/promotion/icons/ic_launcher_gitix_512.png -------------------------------------------------------------------------------- /public/_headers: -------------------------------------------------------------------------------- 1 | /index.html 2 | Access-Control-Allow-Origin: * 3 | Access-Control-Allow-Headers: "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding" 4 | Access-Control-Allow-Methods: "POST, GET, OPTIONS, DELETE, PUT" 5 | /manifest.json 6 | Access-Control-Allow-Origin: * 7 | Access-Control-Allow-Headers: "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding" 8 | Access-Control-Allow-Methods: "POST, GET, OPTIONS, DELETE, PUT" -------------------------------------------------------------------------------- /public/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/android-chrome-192x192.png -------------------------------------------------------------------------------- /public/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/android-chrome-512x512.png -------------------------------------------------------------------------------- /public/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/apple-touch-icon.png -------------------------------------------------------------------------------- /public/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/favicon-16x16.png -------------------------------------------------------------------------------- /public/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/favicon-32x32.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/favicon.ico -------------------------------------------------------------------------------- /public/images/bitbucket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/images/bitbucket.png -------------------------------------------------------------------------------- /public/images/bitbucket.svg: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 23 | 25 | image/svg+xml 26 | 28 | Bitbucket-blue 29 | 30 | 31 | 32 | 52 | 53 | Bitbucket-blue 55 | Created with Sketch. 57 | 59 | 67 | 71 | 75 | 76 | 77 | 80 | 83 | 85 | 88 | 91 | 96 | 101 | 102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /public/images/git.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/images/git.png -------------------------------------------------------------------------------- /public/images/git.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /public/images/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/images/github.png -------------------------------------------------------------------------------- /public/images/github.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /public/images/githuman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/images/githuman.png -------------------------------------------------------------------------------- /public/images/gitix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/images/gitix.png -------------------------------------------------------------------------------- /public/images/gitlab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/images/gitlab.png -------------------------------------------------------------------------------- /public/images/gitlab.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | logo 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 59 | 60 | -------------------------------------------------------------------------------- /public/images/menu.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Codes 60-69 General Group: Rain. 6 | Code: 64 7 | Description: Rain, not freezing, intermittent (heavy at time of observation) 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /public/images/octocat.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/images/user.png -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 26 | 30 | 31 | 32 | gitix.org | Decentralized git profiles 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 93 | 96 |
97 | 98 | 99 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "Gitix", 3 | "name": "Gitix | Decentralized home of all git contributions", 4 | "icons": [ 5 | { 6 | "src": "https://app.gitix.org/favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": "./index.html", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff", 15 | "did_authors": ["did:stack:v0:1E72AfQC47JaR3DRhwWVaRnguppAsKRCk4-0", "did:stack:v0:1Mk9gNKVdeLsodtbtUssVJmJMRHaEa2hGF-67"] 16 | } 17 | -------------------------------------------------------------------------------- /public/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openintents/gitix/d18da4127170963c2f7ea707852d4c2cdd005320/public/mstile-150x150.png -------------------------------------------------------------------------------- /public/safari-pinned-tab.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | Created by potrace 1.11, written by Peter Selinger 2001-2013 9 | 10 | 12 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /server/index.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const cors = require('cors') 3 | const expressWS = require('express-ws'); 4 | const { setup } = require('radiks-server'); 5 | 6 | const app = express(); 7 | expressWS(app) 8 | 9 | app.use(cors()) 10 | 11 | var server = require('http').Server(app), 12 | 13 | port = process.env.PORT || 5000; 14 | server.listen(port); 15 | 16 | console.log("listening to port ", port); 17 | 18 | 19 | setup({ 20 | mongoDBUrl: process.env.MONGODB_URI || 'mongodb://localhost:27017/radiks-server' 21 | }).then((RadiksController) => { 22 | app.use('/radiks', RadiksController); 23 | app.use(express.static('public')) 24 | console.log("Radiks server live") 25 | }); 26 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useState } from "react"; 2 | import AppContainer from "./components/App-Container"; 3 | import { withRouter } from "react-router-dom"; 4 | import { useBlockstack } from "react-blockstack"; 5 | import { Helmet } from "react-helmet"; 6 | import { configure, User } from "radiks"; 7 | import { RADIKS_SERVER_URL } from "./components/constants"; 8 | import Footer from "./components/Footer"; 9 | 10 | const NotSignedIn = { 11 | checking: false, 12 | user: null, 13 | isSignedIn: false 14 | }; 15 | 16 | const App = () => { 17 | const [ , setSignIn] = useState({ ...NotSignedIn, checking: true }); 18 | const { userData, userSession } = useBlockstack(); 19 | useEffect(() => { 20 | configure({ 21 | apiServer: RADIKS_SERVER_URL, 22 | userSession 23 | }); 24 | }, [userSession]); 25 | 26 | useEffect(() => { 27 | if (userData) { 28 | console.log("user configured") 29 | User.createWithCurrentUser().then(() => { 30 | setSignIn({ checking: false, user: userData, isSignedIn: true }); 31 | }); 32 | } else { 33 | setSignIn(NotSignedIn); 34 | } 35 | }, [userData]); 36 | 37 | const title = "gitix.org"; 38 | const metaDescription = "Decentralized git profiles"; 39 | const img = "https://app.gitix.org/favicon.ico"; 40 | return ( 41 | <> 42 | 43 | {title} 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |