Skip to content

Commit

Permalink
Repro
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Sep 5, 2019
1 parent f53d9df commit a536a1c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"tabWidth": 2,
"printWidth": 120,
"semi": true,
"singleQuote": true
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Place your settings in this file to overwrite default and user settings.
{
"vetur.validation.template": false,
"prettier.eslintIntegration": true
"vetur.format.options.tabSize": 4,
"vetur.format.options.useTabs": true
}
32 changes: 14 additions & 18 deletions client/components/Counter.vue
Original file line number Diff line number Diff line change
@@ -1,38 +1,34 @@
<template>
<div class="counter-wrapper">
<div>{{ msg }}</div>
<div>
<img src="https://vuejs.org/images/logo.png" width="200" height="200" />
</div>
<div class="counter">
{{ count }}
</div>
<button @click="$store.commit('INCREMENT')">Increment</button>
<button @click="$store.commit('DECREMENT')">Decrement</button>
<button @click="$store.dispatch('incrementAsync')">Increment Async</button>
</div>
<div><img src="https://vuejs.org/images/logo.png" width="200" height="200" /></div>
<div class="counter">{{ count }}</div>
<button @click="$store.commit('INCREMENT');">Increment</button>
<button @click="$store.commit('DECREMENT');">Decrement</button>
<button @click="$store.dispatch('incrementAsync');">Increment Async</button>
</div>
</template>

<script>
import * as _ from 'lodash'
import * as _ from 'lodash';
export default {
data () {
data() {
return {
msg: 'Vetur means "Winter" in icelandic.'
}
};
},
computed: {
count () {
return this.$store.state.count
count() {
return this.$store.state.count;
}
},
methods: {
hello () {
console.log(this.msg)
hello() {
console.log(this.msg);
}
}
}
};
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit a536a1c

Please sign in to comment.