Commit 75ea313 1 parent 2a393f8 commit 75ea313 Copy full SHA for 75ea313
File tree 6 files changed +43
-6
lines changed
gatsby-theme-rpsych-viz/src/components
6 files changed +43
-6
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,4 @@ RUN yarn global add gatsby-cli
3
3
WORKDIR /app
4
4
COPY . ./
5
5
RUN yarn --pure-lockfile
6
- RUN chmod +x seed_dummy_data.sh
7
- RUN ./seed_dummy_data.sh
6
+ CMD ["./gatsby-start.sh" ]
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ services:
4
4
build :
5
5
context : .
6
6
dockerfile : Dockerfile
7
- command : yarn workspace gatsby-theme-rpsych-cohend gatsby develop -H 0.0.0.0
8
7
ports :
9
8
- " 8000:8000"
10
9
volumes :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ sh ./seed-dummy-data.sh
3
+ echo " ## Starting gatsby in develop mode"
4
+ yarn workspace gatsby-theme-rpsych-cohend gatsby develop -H 0.0.0.0
Original file line number Diff line number Diff line change @@ -24,8 +24,9 @@ const GitHubSponsors = React.memo(() => {
24
24
const classes = useStyles ( ) ;
25
25
const data = useStaticQuery ( gitHubQuery ) ;
26
26
const { t } = useTranslation ( "blog" ) ;
27
- const gitHubSponsors =
28
- data . allGithubData . nodes [ 0 ] . data . user . sponsorshipsAsMaintainer . nodes ;
27
+ const gitHubSponsors = data . allGithubData
28
+ ? data . allGithubData . nodes [ 0 ] . data . user . sponsorshipsAsMaintainer . nodes
29
+ : [ ] ;
29
30
30
31
return (
31
32
< div >
Original file line number Diff line number Diff line change @@ -34,6 +34,40 @@ exports.createSchemaCustomization = ({ actions }) => {
34
34
localName: String
35
35
name: String
36
36
}
37
+ type allGithubData implements Node {
38
+ filter: String
39
+ sort: String
40
+ skip: String
41
+ limit: String
42
+ nodes: GitHubNode
43
+ }
44
+ type GitHubNode {
45
+ id: String
46
+ data: GitHubData
47
+ }
48
+ type GitHubData {
49
+ user: GitHubUser
50
+ }
51
+ type GitHubUser {
52
+ sponsorshipsAsMaintainer: GitHubSponsorshipsAsMaintainer
53
+ }
54
+ type GitHubSponsorshipsAsMaintainer implements Node {
55
+ nodes: SponsorNode
56
+ }
57
+ type SponsorNode {
58
+ tier: GitHubTier
59
+ sponsor: GitHubSponsor
60
+ }
61
+ type GitHubTier {
62
+ monthlyPriceInDollars: Int
63
+ createdAt: Date
64
+ }
65
+ type GitHubSponsor {
66
+ name: String
67
+ avatarUrl: String
68
+ url: String
69
+ login: String
70
+ }
37
71
` ) ;
38
72
} ;
39
73
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ echo " ## Extracting temp assets/data "
2
2
tar -xzvf gatsby-theme-rpsych/assets/profile.tar.gz
3
3
tar -xzvf gatsby-theme-rpsych/assets/Posters.tar.gz
4
4
tar -xzvf gatsby-theme-rpsych/assets/coffee-supporters.tar.gz
You can’t perform that action at this time.
0 commit comments