Skip to content

Commit

Permalink
No titles in _document.js, along with using custom GraphQL package.
Browse files Browse the repository at this point in the history
TL;DR GraphQL 14.0.2 cannot be used since tons of GraphQL stuff depends on 0.13.x/0.12.x/0.11.x.
However, it has to be used with Webpack 4 because Webpack has a bug with it.
Or GraphQL has one with it, idk.
Anyways, I uploaded a custom GraphQL package to Discord to fix it.
  • Loading branch information
retrixe committed Oct 8, 2018
1 parent 31434c4 commit 86d2cfb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@material-ui/icons": "^3.0.1",
"apollo-boost": "^0.1.4",
"eris": "abalabahaha/eris#dev",
"graphql": "^0.13.2",
"graphql": "https://cdn.discordapp.com/attachments/415150079050252308/498798226166775818/graphql.tgz",
"graphql-yoga": "^1.8.5",
"isomorphic-unfetch": "^2.0.0",
"json5": "^0.5.1",
Expand Down
1 change: 0 additions & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class MyDocument extends Document {
return (
<html lang='en' dir='ltr'>
<Head>
<title>IveBot</title>
<link rel='icon' href={ico} />
<meta charSet='utf-8' />
{/* Use minimum-scale=1 to enable GPU rasterization */}
Expand Down
1 change: 1 addition & 0 deletions pages/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ query getAllCommonServers($token: String!) {
return (
<ApolloProvider client={client}>
<>
<title>IveBot</title>
{/* login dialog. */}
<Dialog open={this.state.open} onClose={this.closeDialog}>
<DialogTitle>Log In</DialogTitle>
Expand Down
1 change: 1 addition & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Index extends React.Component {
render () {
return (
<div style={{ marginRight: 16, marginLeft: 16 }}>
<title>IveBot</title>
<AppBar>
<Toolbar>
<Typography variant='title' color='inherit' style={{ flex: 1 }}>IveBot</Typography>
Expand Down
16 changes: 11 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4147,12 +4147,11 @@ graphql@^0.10.1:
dependencies:
iterall "^1.1.0"

"graphql@^0.11.0 || ^0.12.0 || ^0.13.0", graphql@^0.13.2:
"graphql@^0.11.0 || ^0.12.0 || ^0.13.0", "graphql@https://cdn.discordapp.com/attachments/415150079050252308/498797170607259649/graphql.tar.gz":
version "0.13.2"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.13.2.tgz#4c740ae3c222823e7004096f832e7b93b2108270"
integrity sha512-QZ5BL8ZO/B20VA8APauGBg3GyEgZ19eduvpLWoq5x7gMmWnHoy8rlQWPLmWgFvo1yNgjSEFMesmS4R6pPr7xog==
resolved "https://cdn.discordapp.com/attachments/415150079050252308/498797170607259649/graphql.tar.gz#df4947f0a39282974a34ad9c36f12ca62631cbad"
dependencies:
iterall "^1.2.1"
iterall "^1.2.2"

graphql@^0.12.3:
version "0.12.3"
Expand All @@ -4161,6 +4160,13 @@ graphql@^0.12.3:
dependencies:
iterall "1.1.3"

"graphql@https://cdn.discordapp.com/attachments/415150079050252308/498798226166775818/graphql.tgz":
version "0.13.2"
uid df4947f0a39282974a34ad9c36f12ca62631cbad
resolved "https://cdn.discordapp.com/attachments/415150079050252308/498798226166775818/graphql.tgz#df4947f0a39282974a34ad9c36f12ca62631cbad"
dependencies:
iterall "^1.2.2"

has-ansi@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
Expand Down Expand Up @@ -4826,7 +4832,7 @@ iterall@1.1.3:
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.3.tgz#1cbbff96204056dde6656e2ed2e2226d0e6d72c9"
integrity sha512-Cu/kb+4HiNSejAPhSaN1VukdNTTi/r4/e+yykqjlG/IW+1gZH5b4+Bq3whDX4tvbYugta3r8KTMUiqT3fIGxuQ==

iterall@^1.1.0, iterall@^1.1.3, iterall@^1.2.1:
iterall@^1.1.0, iterall@^1.1.3, iterall@^1.2.1, iterall@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.2.2.tgz#92d70deb8028e0c39ff3164fdbf4d8b088130cd7"
integrity sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA==
Expand Down

0 comments on commit 86d2cfb

Please sign in to comment.