Skip to content

Commit

Permalink
format site
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed Jul 4, 2021
1 parent e51b95f commit 7ab5ee0
Show file tree
Hide file tree
Showing 36 changed files with 56,582 additions and 420 deletions.
18 changes: 10 additions & 8 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
1,406 changes: 1,401 additions & 5 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

Large diffs are not rendered by default.

2,214 changes: 2,188 additions & 26 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

52,826 changes: 52,785 additions & 41 deletions .yarn/releases/yarn-2.4.2.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
spec: '@yarnpkg/plugin-workspace-tools'
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
spec: '@yarnpkg/plugin-typescript'

yarnPath: .yarn/releases/yarn-2.4.2.cjs
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center"><img src="media/thumbnail.png" width="860" /></div>

# 🦅 SwiftGraphQL
<div align="center">
<img src="media/thumbnail.png" width="240" />
</div>

> A GraphQL client that lets you forget about GraphQL.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"colors" : [
"colors": [
{
"idiom" : "universal"
"idiom": "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
{
"images" : [
"images": [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
"idiom": "iphone",
"scale": "2x",
"size": "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
"idiom": "iphone",
"scale": "3x",
"size": "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
"idiom": "iphone",
"scale": "2x",
"size": "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
"idiom": "iphone",
"scale": "3x",
"size": "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
"idiom": "iphone",
"scale": "2x",
"size": "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
"idiom": "iphone",
"scale": "3x",
"size": "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
"idiom": "iphone",
"scale": "2x",
"size": "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
"idiom": "iphone",
"scale": "3x",
"size": "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
"idiom": "ipad",
"scale": "1x",
"size": "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
"idiom": "ipad",
"scale": "2x",
"size": "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
"idiom": "ipad",
"scale": "1x",
"size": "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
"idiom": "ipad",
"scale": "2x",
"size": "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
"idiom": "ipad",
"scale": "1x",
"size": "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
"idiom": "ipad",
"scale": "2x",
"size": "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
"idiom": "ipad",
"scale": "1x",
"size": "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
"idiom": "ipad",
"scale": "2x",
"size": "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
"idiom": "ipad",
"scale": "2x",
"size": "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
"idiom": "ios-marketing",
"scale": "1x",
"size": "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
6 changes: 3 additions & 3 deletions examples/StarWars/StarWars/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
2 changes: 1 addition & 1 deletion examples/StarWars/swiftgraphql.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
scalars:
Date: DateTime
Date: DateTime
Binary file removed media/landscape.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added media/medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
printWidth: 130,
semi: false,
singleQuote: true,
trailingComma: 'all',
Expand Down
5 changes: 1 addition & 4 deletions scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ function update(raw: string, index: string): string {
<!-- index-end -->
`

const source = raw.replace(
/<!-- index-start -->([\w\W]*)<!-- index-end -->/,
index,
)
const source = raw.replace(/<!-- index-start -->([\w\W]*)<!-- index-end -->/, index)

return prettier.format(source, {
parser: 'markdown',
Expand Down
3 changes: 1 addition & 2 deletions server/src/graphql/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { subscriptionType } from 'nexus'
export const Subscription = subscriptionType({
definition(t) {
t.int('number', {
description:
'Returns a random number every second. You should see it changing if your subscriptions work right.',
description: 'Returns a random number every second. You should see it changing if your subscriptions work right.',
subscribe() {
return (async function* () {
while (true) {
Expand Down
14 changes: 3 additions & 11 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,13 @@ const schema = makeSchema({
sourceTypes: {
modules: [
{
module: path.join(
__dirname.replace(/\/dist$/, '/src'),
'./types/backingTypes.ts',
),
module: path.join(__dirname.replace(/\/dist$/, '/src'), './types/backingTypes.ts'),
alias: 'swapi',
},
],
},
contextType: {
module: path.join(
__dirname.replace(/\/dist$/, '/src'),
'./types/backingTypes.ts',
),
module: path.join(__dirname.replace(/\/dist$/, '/src'), './types/backingTypes.ts'),
export: 'ContextType',
},
prettierConfig: require.resolve('../../prettier.config.js'),
Expand Down Expand Up @@ -75,8 +69,6 @@ if (require.main === module) {
const port = process.env.PORT || 4000

server.listen({ port }, () => {
console.log(
`🚀 Server ready at http://localhost:${port}${server.graphqlPath}`,
)
console.log(`🚀 Server ready at http://localhost:${port}${server.graphqlPath}`)
})
}
Loading

0 comments on commit 7ab5ee0

Please sign in to comment.