Remove GraphQL code

This commit is contained in:
BenRoe 2019-07-25 14:14:06 +02:00
parent 5971b87628
commit b595fb21f3
2 changed files with 2 additions and 60 deletions

View File

@ -65,19 +65,7 @@ module.exports = {
name: 'rss.xml'
}
}
},
{
use: '@gridsome/source-graphql',
options: {
url: process.env.GITHUB_API_V4_URL,
fieldName: 'github',
typeName: 'githubTypes',
headers: {
Authorization: `Bearer ${process.env.GITHUB_AUTH_TOKEN}`,
},
},
},
}
],
transformers: {
remark: {

View File

@ -6,13 +6,6 @@
<!-- <vue-good-table
:columns="columns"
:rows="switches"/> -->
<ul>
<li v-for="edge in $page.github.repository.ref.target.history.edges" :key="edge.node.oid">
<!-- <g-link :to="`/products/${edge.node.handle}`"> -->
{{ edge.node.message }}
<!-- </g-link> -->
</li>
</ul>
</div>
</div>
@ -20,46 +13,7 @@
</template>
<page-query>
query allCommits {
github {
repository(name: "awesome-mechanical-keyboard", owner: "benroe") {
ref(qualifiedName: "master") {
target {
... on githubTypes_Commit {
history(first: 10) {
pageInfo {
hasNextPage
}
edges {
node {
messageHeadline
oid
message
comments(first: 5) {
edges {
node {
id
body
author {
login
}
}
}
}
author {
name
email
date
}
}
}
}
}
}
}
}
}
}
</page-query>
<script>