* add vuex, cleanup client directory and create example components

* disale sample unit test

* disable import for non existing file

* correct regexp for unit tests, add simple test to avoid error, add babel-polyfill for Vuex

* add line wrongly removed, update regexp
This commit is contained in:
Matteo Pagliazzi
2016-09-20 18:58:02 +02:00
committed by GitHub
parent 381bea1e94
commit 2f626c7875
17 changed files with 116 additions and 87 deletions

View File

@@ -0,0 +1,20 @@
<template lang="pug">
h1 {{ title }}
</template>
<script>
import { mapState } from 'vuex';
export default {
computed: mapState([
'title',
]),
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1 {
color: #42b983;
}
</style>