Skip to content

Commit d508a35

Browse files
committed
Update Vuex ORM and other NPM packages
1 parent 70c5328 commit d508a35

File tree

7 files changed

+943
-884
lines changed

7 files changed

+943
-884
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ module.exports = {
1414
parserOptions: {
1515
parser: 'babel-eslint'
1616
}
17-
}
17+
}

package.json

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,17 @@
66
"lint": "vue-cli-service lint"
77
},
88
"devDependencies": {
9-
"@vue/cli-plugin-babel": "^3.0.0-beta.15",
10-
"@vue/cli-plugin-eslint": "^3.0.0-beta.15",
11-
"@vue/cli-service": "^3.0.0-beta.15",
12-
"@vue/eslint-config-standard": "^3.0.0-rc.3",
13-
"@vuex-orm/core": "^0.25.5",
9+
"@vue/cli-plugin-babel": "^3.0.4",
10+
"@vue/cli-plugin-eslint": "^3.0.4",
11+
"@vue/cli-service": "^3.0.4",
12+
"@vue/eslint-config-standard": "^3.0.4",
13+
"@vuex-orm/core": "^0.26.2",
1414
"normalize.css": "^8.0.0",
15-
"postcss-css-variables": "^0.9.0",
16-
"postcss-import": "^11.1.0",
17-
"postcss-nested": "^3.0.0",
18-
"vue": "^2.5.16",
19-
"vue-template-compiler": "^2.5.16",
15+
"postcss-css-variables": "^0.10.0",
16+
"postcss-import": "^12.0.0",
17+
"postcss-nested": "^4.1.0",
18+
"vue": "^2.5.17",
19+
"vue-template-compiler": "^2.5.17",
2020
"vuex": "^3.0.1"
21-
},
22-
"browserslist": [
23-
"> 1%",
24-
"last 2 versions",
25-
"not ie <= 8"
26-
]
21+
}
2722
}
File renamed without changes.

src/components/App.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,22 @@ export default {
3333
AppFooter
3434
},
3535
36+
data () {
37+
return {
38+
yay: 'Hello!'
39+
}
40+
},
41+
3642
created () {
3743
// Here we are stubbing the initial data. In the real world, this
3844
// should be the response from the API Backend.
3945
const initialData = data
4046
4147
this.$store.dispatch('entities/todos/create', { data: initialData })
48+
},
49+
50+
mounted () {
51+
this.$store.dispatch('entities/users/test')
4252
}
4353
}
4454
</script>

src/store/modules/users.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
export default {
2-
namespaced: true
2+
namespaced: true,
3+
4+
actions: {
5+
test () {
6+
console.log(this)
7+
console.log(this.yay)
8+
}
9+
}
310
}

vue.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
module.exports = {
2+
lintOnSave: false,
3+
24
devServer: {
35
port: 3000
46
}

0 commit comments

Comments
 (0)