-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make urql a peerDependency. Update examples to use pure CSS. (#224)
- Loading branch information
1 parent
50c26ae
commit e7eeabc
Showing
48 changed files
with
833 additions
and
2,043 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "1-execute-query-mutation", | ||
"version": "0.1.0", | ||
"description": "An example of how to execute one off queries and mutations using reason-urql.", | ||
"main": "index.bs.js", | ||
"main": "src/index.bs.js", | ||
"author": "Parker Ziegler <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
|
@@ -13,9 +13,11 @@ | |
}, | ||
"dependencies": { | ||
"@reasonml-community/graphql-ppx": "^1.0.1", | ||
"bs-css-emotion": "^1.2.0", | ||
"graphql": "^15.4.0", | ||
"react": "^16.8.0", | ||
"reason-react": "^0.7.0", | ||
"reason-urql": "link:../../" | ||
"reason-urql": "link:../../", | ||
"urql": "~1.10.0" | ||
}, | ||
"devDependencies": { | ||
"bs-platform": "7.3.2", | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "2-query", | ||
"version": "0.1.0", | ||
"description": "An example of how to use queries in reason-urql.", | ||
"main": "index.bs.js", | ||
"author": "Kara Stubbs <[email protected]>", | ||
"description": "An example of how to use the useQuery hook in reason-urql.", | ||
"main": "src/index.bs.js", | ||
"author": "Kara Stubbs <[email protected]>, Parker Ziegler <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "bsb -make-world", | ||
|
@@ -12,9 +12,12 @@ | |
"start:demo": "webpack-dev-server" | ||
}, | ||
"dependencies": { | ||
"bs-css-emotion": "^1.2.0", | ||
"@reasonml-community/graphql-ppx": "^1.0.1", | ||
"graphql": "^15.4.0", | ||
"react": "^16.8.0", | ||
"reason-react": "^0.7.0", | ||
"reason-urql": "link:../../" | ||
"reason-urql": "link:../../", | ||
"urql": "~1.10.0" | ||
}, | ||
"devDependencies": { | ||
"@baransu/graphql_ppx_re": "^0.7.1", | ||
|
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,106 @@ | ||
.dex-container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin: auto; | ||
} | ||
|
||
.dex { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 5px; | ||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), | ||
0 4px 6px -2px rgba(0, 0, 0, 0.05); | ||
} | ||
|
||
.dex > * + * { | ||
margin-top: 1rem; | ||
} | ||
|
||
.dex__image-container { | ||
padding: 4rem 8rem 0; | ||
} | ||
|
||
.dex__image { | ||
display: inline-block; | ||
max-width: 100%; | ||
height: 12rem; | ||
width: 12rem; | ||
} | ||
|
||
.dex__text { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
align-self: stretch; | ||
padding: 2rem 8rem; | ||
background: #f25050; | ||
color: #ffffff; | ||
border-top: 2px solid hsl(210, 23%, 95%); | ||
} | ||
|
||
.dex__title { | ||
font-size: 2rem; | ||
margin: 0; | ||
padding: 0.5rem; | ||
} | ||
|
||
.dex__subtitle { | ||
font-size: 1.5rem; | ||
margin: 0; | ||
padding: 0.25rem; | ||
} | ||
|
||
.dex__stats { | ||
font-size: 1.2rem; | ||
} | ||
|
||
.sidebar-container { | ||
position: absolute; | ||
inset: 0; | ||
display: grid; | ||
grid-template-columns: minmax(20rem, 20%) 1fr; | ||
} | ||
|
||
.sidebar { | ||
display: flex; | ||
flex-direction: column; | ||
background: #f25050; | ||
padding: 1rem; | ||
overflow: auto; | ||
} | ||
|
||
.sidebar__search { | ||
font-size: 1.6rem; | ||
margin-bottom: 1rem; | ||
padding: 0.5rem; | ||
border: none; | ||
} | ||
|
||
.sidebar__list { | ||
margin: 0 -1rem; | ||
padding-left: 0; | ||
} | ||
|
||
.sidebar__list-item { | ||
list-style-type: none; | ||
cursor: pointer; | ||
} | ||
|
||
.sidebar__list-item:hover { | ||
background: #f29441; | ||
} | ||
|
||
.sidebar__button { | ||
font-size: 1.4rem; | ||
color: #ffffff; | ||
background: none; | ||
border: none; | ||
width: 100%; | ||
padding: 1rem; | ||
text-align: left; | ||
cursor: pointer; | ||
} |
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
Oops, something went wrong.