🎨 Site > Store > Separate into modules

This commit is contained in:
brunosimon
2017-08-14 22:43:50 +02:00
parent 0eb639a9db
commit 2b0dec5d0a
17 changed files with 178 additions and 184 deletions
@@ -1,3 +0,0 @@
<template src="./template.html"></template>
<script src="./script.js"></script>
<style src="./style.styl" lang="stylus"></style>
@@ -1,25 +0,0 @@
export default
{
name: 'projects-hub',
computed:
{
projects()
{
return this.$store.state.projects
}
},
created()
{
},
methods:
{
onProjectClick(projectSlug)
{
this.$store.commit('setProject', projectSlug)
}
}
}
@@ -1,5 +0,0 @@
<div>
<a href="#" v-for="project in projects" @click.prevent="onProjectClick(project.slug)">
{{ project.name }}
</a>
</div>