Skip to content

Commit

Permalink
fix: drop json and yaml from homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 committed Dec 9, 2024
1 parent c58e943 commit b832ae8
Showing 1 changed file with 1 addition and 163 deletions.
164 changes: 1 addition & 163 deletions src/components/home/Configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ const Configuration = (): JSX.Element => {
</div>
<div>
<CodeBlock language="bash">npm i -g @tailcallhq/tailcall</CodeBlock>

<Tabs>
{CodeTabItem({code: GRAPHQL_CONFIG, language: "graphql"})}
{CodeTabItem({code: YML_CONFIG, language: "yaml"})}
{CodeTabItem({code: JSON_CONFIG, language: "json"})}
</Tabs>
{CodeTabItem({code: GRAPHQL_CONFIG, language: "graphql"})}
</div>
</Section>
)
Expand Down Expand Up @@ -80,160 +75,3 @@ type Post {
user: User @http(url: "http://jsonplaceholder.typicode.com/users/{{.value.userId}}")
}
`

const YML_CONFIG = `server:
port: 8000
upstream:
baseURL: http://jsonplaceholder.typicode.com
schema:
query: Query
types:
Post:
fields:
body:
type: String
required: true
cache: null
id:
type: Int
required: true
cache: null
title:
type: String
required: true
cache: null
user:
type: User
http:
url: http://jsonplaceholder.typicode.com/users/{{.value.userId}}
cache: null
userId:
type: Int
required: true
cache: null
cache: null
Query:
fields:
posts:
type: Post
list: true
http:
url: http://jsonplaceholder.typicode.com/posts
cache: null
users:
type: User
list: true
http:
url: http://jsonplaceholder.typicode.com/users
cache: null
cache: null
User:
fields:
email:
type: String
required: true
cache: null
id:
type: Int
required: true
cache: null
name:
type: String
required: true
cache: null
username:
type: String
required: true
cache: null
cache: null
`

const JSON_CONFIG = `{
"server": {
"port": 8000
},
"schema": {
"query": "Query"
},
"types": {
"Post": {
"fields": {
"body": {
"type": "String",
"required": true,
"cache": null
},
"id": {
"type": "Int",
"required": true,
"cache": null
},
"title": {
"type": "String",
"required": true,
"cache": null
},
"user": {
"type": "User",
"http": {
"url": "http://jsonplaceholder.typicode.com/users/{{.value.userId}}"
},
"cache": null
},
"userId": {
"type": "Int",
"required": true,
"cache": null
}
},
"cache": null
},
"Query": {
"fields": {
"posts": {
"type": "Post",
"list": true,
"http": {
"url": "http://jsonplaceholder.typicode.com/posts"
},
"cache": null
},
"users": {
"type": "User",
"list": true,
"http": {
"url": "http://jsonplaceholder.typicode.com/users"
},
"cache": null
}
},
"cache": null
},
"User": {
"fields": {
"email": {
"type": "String",
"required": true,
"cache": null
},
"id": {
"type": "Int",
"required": true,
"cache": null
},
"name": {
"type": "String",
"required": true,
"cache": null
},
"username": {
"type": "String",
"required": true,
"cache": null
}
},
"cache": null
}
}
}
`

0 comments on commit b832ae8

Please sign in to comment.