Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 65e4198

Browse files
author
John P Vajda
committed
fix: removed gh sponsor code
1 parent 71c5f52 commit 65e4198

File tree

6 files changed

+2
-213
lines changed

6 files changed

+2
-213
lines changed

gatsby-config.js

-37
Original file line numberDiff line numberDiff line change
@@ -200,42 +200,5 @@ module.exports = {
200200
},
201201
},
202202
},
203-
204-
// Github API for sponsorship section on homepage
205-
{
206-
resolve: `gatsby-source-github-api`,
207-
options: {
208-
typeName: `GitHub`,
209-
fieldName: `github`,
210-
url: `https://api.github.com/graphql`,
211-
// token: required by the GitHub API
212-
token: process.env.GITHUB_API_TOKEN,
213-
// GraphQLquery: defaults to a search query
214-
graphQLQuery: `
215-
query{
216-
organization(login: "newrelic") {
217-
sponsoring(last: 100, orderBy: {field: LOGIN, direction: ASC}) {
218-
nodes {
219-
... on User {
220-
name
221-
avatarUrl
222-
login
223-
url
224-
bio
225-
}
226-
... on Organization {
227-
name
228-
avatarUrl
229-
login
230-
url
231-
description
232-
}
233-
}
234-
totalCount
235-
}
236-
}
237-
}`,
238-
},
239-
},
240203
],
241204
};

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"@newrelic/gatsby-theme-newrelic": "^4.0.5",
1313
"@splitsoftware/splitio-react": "^1.2.4",
1414
"date-fns": "^2.17.0",
15-
"dotenv": "^10.0.0",
1615
"feather-icons": "^4.28.0",
1716
"gatsby": "^3.8.0",
1817
"gatsby-build-newrelic": "1.1.16",
@@ -26,7 +25,6 @@
2625
"gatsby-remark-copy-linked-files": "^4.5.0",
2726
"gatsby-remark-images": "^5.5.0",
2827
"gatsby-source-filesystem": "^3.8.0",
29-
"gatsby-source-github-api": "^1.0.0",
3028
"gatsby-transformer-json": "^3.8.0",
3129
"js-cookie": "^2.2.1",
3230
"js-search": "^2.0.0",

src/components/SimpleSponsorModule.js

-46
This file was deleted.

src/components/githubSponsors.js

-30
This file was deleted.

src/pages/index.js

-42
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Layout from '../components/layout';
77
import SEO from '../components/seo';
88
import HomePageHighlights from '../components/HomePageHighlights';
99
import HomePageInternalProjects from '../components/HomePageInternalProjects';
10-
import GithubSponsors from '../components/githubSponsors';
1110
import HomepageCollection from '../components/HomepageCollection';
1211
import * as styles from './home-page.module.scss';
1312

@@ -72,25 +71,6 @@ export const query = graphql`
7271
path
7372
}
7473
}
75-
gd: githubData {
76-
rawResult {
77-
data {
78-
organization {
79-
sponsoring {
80-
totalCount
81-
nodes {
82-
avatarUrl
83-
name
84-
url
85-
bio
86-
description
87-
login
88-
}
89-
}
90-
}
91-
}
92-
}
93-
}
9474
}
9575
`;
9676

@@ -114,15 +94,6 @@ const HomePage = ({ data, pageContext }) => {
11494
.sort(sortByStats)
11595
.slice(0, 5);
11696

117-
const sponsorsProgram = get(
118-
data,
119-
'gd.rawResult.data.organization.sponsoring.nodes',
120-
[]
121-
)
122-
// Can get up to 100 results in ascending order, this randomizes the array and then picks the first 8
123-
.sort(() => Math.random() - 0.5)
124-
.slice(0, 8);
125-
12697
const externalProjects = [
12798
get(data, 'openTelemetry.nodes[0]'),
12899
get(data, 'w3cDistributedTracingWg.nodes[0]'),
@@ -194,19 +165,6 @@ const HomePage = ({ data, pageContext }) => {
194165
</div>
195166
<HomePageInternalProjects data={internalProjects} />
196167
</div>
197-
198-
<div className={styles.featuredInternalProjectsContainer}>
199-
<div className={styles.featuredInternalProjectsSection}>
200-
<h3 className={styles.featuredInternalProjectsSectionTitle}>
201-
Projects we sponsor
202-
</h3>
203-
<p className={styles.featuredInternalProjectsSectionDescription}>
204-
New Relic supports 50+ organizations and developers. Find out more{' '}
205-
<Link to="https://github.com/orgs/newrelic/sponsoring"> here</Link>.
206-
</p>
207-
</div>
208-
<GithubSponsors data={sponsorsProgram} />
209-
</div>
210168
</Layout>
211169
);
212170
};

yarn.lock

+2-56
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22
# yarn lockfile v1
33

44

5-
"101@^1.0.0", "101@^1.5.0":
6-
version "1.6.3"
7-
resolved "https://registry.yarnpkg.com/101/-/101-1.6.3.tgz#9071196e60c47e4ce327075cf49c0ad79bd822fd"
8-
integrity sha512-4dmQ45yY0Dx24Qxp+zAsNLlMF6tteCyfVzgbulvSyC7tCyd3V8sW76sS0tHq8NpcbXfWTKasfyfzU1Kd86oKzw==
9-
dependencies:
10-
clone "^1.0.2"
11-
deep-eql "^0.1.3"
12-
keypather "^1.10.2"
13-
145
"@ardatan/[email protected]":
156
version "0.0.6"
167
resolved "https://registry.yarnpkg.com/@ardatan/aggregate-error/-/aggregate-error-0.0.6.tgz#fe6924771ea40fc98dc7a7045c2e872dc8527609"
@@ -4617,11 +4608,6 @@ clone-response@^1.0.2:
46174608
dependencies:
46184609
mimic-response "^1.0.0"
46194610

4620-
clone@^1.0.2:
4621-
version "1.0.4"
4622-
resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e"
4623-
integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4=
4624-
46254611
co@^4.6.0:
46264612
version "4.6.0"
46274613
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
@@ -5426,13 +5412,6 @@ decompress-response@^6.0.0:
54265412
dependencies:
54275413
mimic-response "^3.1.0"
54285414

5429-
deep-eql@^0.1.3:
5430-
version "0.1.3"
5431-
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-0.1.3.tgz#ef558acab8de25206cd713906d74e56930eb69f2"
5432-
integrity sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=
5433-
dependencies:
5434-
type-detect "0.1.1"
5435-
54365415
deep-extend@^0.6.0:
54375416
version "0.6.0"
54385417
resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
@@ -5787,11 +5766,6 @@ dot-prop@^5.2.0:
57875766
dependencies:
57885767
is-obj "^2.0.0"
57895768

5790-
dotenv@^10.0.0:
5791-
version "10.0.0"
5792-
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81"
5793-
integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==
5794-
57955769
dotenv@^8.2.0:
57965770
version "8.6.0"
57975771
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.6.0.tgz#061af664d19f7f4d8fc6e4ff9b584ce237adcb8b"
@@ -7540,14 +7514,6 @@ gatsby-source-filesystem@^3.10.0, gatsby-source-filesystem@^3.8.0:
75407514
valid-url "^1.0.9"
75417515
xstate "^4.14.0"
75427516

7543-
gatsby-source-github-api@^1.0.0:
7544-
version "1.0.0"
7545-
resolved "https://registry.yarnpkg.com/gatsby-source-github-api/-/gatsby-source-github-api-1.0.0.tgz#7ad889adf787f6ce40225576ef44b57c987a97cf"
7546-
integrity sha512-LodydqSivxmV5SkiNmc68jEKfrExWaDxRWIHVUJuH0lOq2OhSePSkWXNLXW7aDZMbsiVE7QjDWu3xQEhdP2q1Q==
7547-
dependencies:
7548-
graphql-fetch "^1.0.1"
7549-
uuid "^3.1.0"
7550-
75517517
gatsby-telemetry@^2.14.0:
75527518
version "2.14.0"
75537519
resolved "https://registry.yarnpkg.com/gatsby-telemetry/-/gatsby-telemetry-2.14.0.tgz#d4f9ec0623bac509999586e2e9f4a211661d43e7"
@@ -8113,14 +8079,6 @@ graphql-config@^3.0.2:
81138079
minimatch "3.0.4"
81148080
string-env-interpolation "1.0.1"
81158081

8116-
graphql-fetch@^1.0.1:
8117-
version "1.0.1"
8118-
resolved "https://registry.yarnpkg.com/graphql-fetch/-/graphql-fetch-1.0.1.tgz#145112b27c603f06387a41ca4db58dd1edcaad9e"
8119-
integrity sha1-FFESsnxgPwY4ekHKTbWN0e3KrZ4=
8120-
dependencies:
8121-
"101" "^1.5.0"
8122-
isomorphic-fetch "^2.2.1"
8123-
81248082
graphql-playground-html@^1.6.29:
81258083
version "1.6.29"
81268084
resolved "https://registry.yarnpkg.com/graphql-playground-html/-/graphql-playground-html-1.6.29.tgz#5b0c60a0161cc0f3116085f64c5a16cb3b2d9a16"
@@ -9323,7 +9281,7 @@ isobject@^3.0.0, isobject@^3.0.1:
93239281
resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
93249282
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
93259283

9326-
isomorphic-fetch@^2.1.1, isomorphic-fetch@^2.2.1:
9284+
isomorphic-fetch@^2.1.1:
93279285
version "2.2.1"
93289286
resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9"
93299287
integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=
@@ -10033,13 +9991,6 @@ kebab-hash@^0.1.2:
100339991
dependencies:
100349992
lodash.kebabcase "^4.1.1"
100359993

10036-
keypather@^1.10.2:
10037-
version "1.10.2"
10038-
resolved "https://registry.yarnpkg.com/keypather/-/keypather-1.10.2.tgz#e0449632d4b3e516f21cc014ce7c5644fddce614"
10039-
integrity sha1-4ESWMtSz5RbyHMAUznxWRP3c5hQ=
10040-
dependencies:
10041-
"101" "^1.0.0"
10042-
100439994
keyv@^3.0.0:
100449995
version "3.1.0"
100459996
resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9"
@@ -15503,11 +15454,6 @@ type-check@~0.3.2:
1550315454
dependencies:
1550415455
prelude-ls "~1.1.2"
1550515456

15506-
15507-
version "0.1.1"
15508-
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822"
15509-
integrity sha1-C6XsKohWQORw6k6FBZcZANrFiCI=
15510-
1551115457
1551215458
version "4.0.8"
1551315459
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
@@ -16093,7 +16039,7 @@ [email protected]:
1609316039
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
1609416040
integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=
1609516041

16096-
[email protected], uuid@^3.0.0, uuid@^3.1.0, uuid@^3.3.2:
16042+
[email protected], uuid@^3.0.0, uuid@^3.3.2:
1609716043
version "3.4.0"
1609816044
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
1609916045
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==

0 commit comments

Comments
 (0)