Revert "Merge pull request #54 from S3B4S/dynamic-routing"

This reverts commit f13f012c29, reversing
changes made to bc0aab4217.
This commit is contained in:
lost.design
2019-06-16 08:22:26 +02:00
parent 36df8a25b1
commit 90b50220a4
17 changed files with 966 additions and 756 deletions

View File

@@ -1,27 +0,0 @@
<template lang="pug">
div
h1 {{ category.title }}
.cards
template(v-for='resource in category.resources')
Card(:title='resource.title' :desc='resource.desc' :url='resource.url')
</template>
<script>
import store from '../store.json'
import Card from '../components/Card'
export default {
data () {
return {
categoryTitle: this.$route.params.category,
categories: store,
}
},
computed: {
category() {
return this.categories.find(category => category.title.toLowerCase() === this.categoryTitle.toLowerCase())
}
},
components: { Card, },
}
</script>