-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from henry-ns/dev
v1.0
- Loading branch information
Showing
28 changed files
with
1,872 additions
and
1,162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
GATSBY_GITHUB_TOKEN= | ||
GITHUB_TOKEN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,5 +65,8 @@ public | |
yarn-error.log | ||
.pnp/ | ||
.pnp.js | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
!.env.example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,17 @@ | |
"version": "0.1.0", | ||
"author": "Henrique Miranda <[email protected]>", | ||
"dependencies": { | ||
"apollo-boost": "^0.4.7", | ||
"babel-plugin-polished": "^1.1.0", | ||
"babel-plugin-styled-components": "^1.10.6", | ||
"dotenv": "^8.2.0", | ||
"framer-motion": "^1.7.0", | ||
"gatsby": "^2.18.16", | ||
"gatsby-image": "^2.2.37", | ||
"gatsby-plugin-google-analytics": "^2.1.31", | ||
"gatsby-plugin-manifest": "^2.2.34", | ||
"gatsby-plugin-netlify": "^2.1.30", | ||
"gatsby-plugin-netlify-cache": "^1.2.0", | ||
"gatsby-plugin-nprogress": "^2.1.17", | ||
"gatsby-plugin-offline": "^3.0.30", | ||
"gatsby-plugin-page-creator": "^2.1.37", | ||
"gatsby-plugin-polished": "^1.0.4", | ||
|
@@ -24,10 +25,14 @@ | |
"gatsby-plugin-sitemap": "^2.2.24", | ||
"gatsby-plugin-styled-components": "^3.1.16", | ||
"gatsby-source-filesystem": "^2.1.43", | ||
"gatsby-source-graphql": "^2.1.32", | ||
"gatsby-transformer-sharp": "^2.3.9", | ||
"graphql-tag": "^2.10.1", | ||
"isomorphic-fetch": "^2.2.1", | ||
"polished": "^3.4.2", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.12.0", | ||
"react-apollo": "^3.1.3", | ||
"react-dom": "^16.12.0", | ||
"react-helmet-async": "^1.0.4", | ||
"react-icons": "^3.8.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import ApolloClient from 'apollo-boost'; | ||
import fetch from 'isomorphic-fetch'; | ||
|
||
export const client = new ApolloClient({ | ||
uri: 'https://api.github.com/graphql', | ||
request: async operation => { | ||
operation.setContext({ | ||
headers: { | ||
authorization: `token ${process.env.GATSBY_GITHUB_TOKEN}`, | ||
}, | ||
}); | ||
}, | ||
fetch, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.