Share common component & filter data

This commit is contained in:
Unknown
2019-06-17 17:13:04 +02:00
parent 4c311a8dbb
commit 21ccb787f6
14 changed files with 283 additions and 27 deletions

22
pages/php/index.vue Normal file
View File

@@ -0,0 +1,22 @@
<template lang="pug">
CategoryPage(:resources="resources")
</template>
<script>
import CategoryPage from '../../components/CategoryPage'
import store from '../../store.json'
export default {
data() {
return {
resources: store.find(x => x.title.toLowerCase() === 'php')
}
},
components: {
CategoryPage
}
}
</script>
<style lang="scss" scoped>
</style>