-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Relay integration * what is the deal with eslint * gatsbygram update * Hacker News example * Drupal example * bonus dependency * Missed adding this * Actually format example code * update dependencies * Get types for nested arguments + handle argument lists * Add missing babel-runtime dependency * Try removing hoisting to see if that fixes site builds * debugging * Updates from @jquense's changes * Set websites to use 'canary' versions of websites so always download latest * Add required yaml-loader * Remove yarn.locks from example sites as we always want to install the latest code to catch errors early * Update www for the new relay compiler * Lengthen debounce so stuff can really finish * Make paths to bin relative * Restore lerna hoisting * Add error and quit if a query name is missing * Dunno if this helps but... * Fix version string * debugging... * More info * Follow links * Add netlify.toml to set yarn version * Turned out not what we want * Get around permission error on Netlify * Don't overwrite the Gatsby bin directory or it'll stop working * Remove this workaround * Remove debuggin
- Loading branch information
1 parent
899554b
commit bb772f8
Showing
61 changed files
with
1,204 additions
and
33,376 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
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 @@ | ||
yarn.lock |
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,8 @@ | ||
{ | ||
"env": { | ||
"browser": true | ||
}, | ||
"globals": { | ||
"graphql": false | ||
} | ||
} |
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,48 @@ | ||
import * as PropTypes from "prop-types" | ||
import React from "react" | ||
import { rhythm } from "../utils/typography" | ||
|
||
const propTypes = { | ||
user: PropTypes.shape({ | ||
avatar: PropTypes.string.isRequired, | ||
username: PropTypes.string.isRequired, | ||
}), | ||
} | ||
|
||
function Avatar({ user }) { | ||
return ( | ||
<img | ||
src={user.avatar} | ||
alt={user.username} | ||
css={{ | ||
display: `block`, | ||
margin: `0 auto`, | ||
borderRadius: `100%`, | ||
width: rhythm(2), | ||
height: rhythm(2), | ||
[`@media (min-width: 460px)`]: { | ||
width: rhythm(3), | ||
height: rhythm(3), | ||
}, | ||
[`@media (min-width: 525px)`]: { | ||
width: rhythm(4), | ||
height: rhythm(4), | ||
}, | ||
[`@media (min-width: 600px)`]: { | ||
width: `inherit`, | ||
height: `inherit`, | ||
}, | ||
}} | ||
/> | ||
) | ||
} | ||
|
||
Avatar.propTypes = propTypes | ||
|
||
export default Avatar | ||
export const userFragment = graphql` | ||
fragment Avatar_user on PostsJson { | ||
avatar | ||
username | ||
} | ||
` |
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.