Skip to content

Commit 8dae09b

Browse files
committed
add vuex & set modules vuex
1 parent 77dd033 commit 8dae09b

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"dependencies": {
1414
"vue": "^2.3.3",
1515
"vue-router": "^2.3.1",
16-
"vuetify": "^0.15.7"
16+
"vuetify": "^0.15.7",
17+
"vuex": "^2.4.0"
1718
},
1819
"devDependencies": {
1920
"autoprefixer": "^7.1.2",
2021
"babel-core": "^6.22.1",
21-
"sw-precache-webpack-plugin": "^0.11.4",
2222
"babel-eslint": "^7.1.1",
2323
"babel-loader": "^7.1.1",
2424
"babel-plugin-transform-runtime": "^6.22.0",
@@ -31,10 +31,10 @@
3131
"css-loader": "^0.28.0",
3232
"cssnano": "^3.10.0",
3333
"eslint": "^3.19.0",
34+
"eslint-config-standard": "^6.2.1",
3435
"eslint-friendly-formatter": "^3.0.0",
3536
"eslint-loader": "^1.7.1",
3637
"eslint-plugin-html": "^3.1.0",
37-
"eslint-config-standard": "^6.2.1",
3838
"eslint-plugin-promise": "^3.4.0",
3939
"eslint-plugin-standard": "^2.0.1",
4040
"eventsource-polyfill": "^0.9.6",
@@ -44,24 +44,25 @@
4444
"friendly-errors-webpack-plugin": "^1.1.3",
4545
"html-webpack-plugin": "^2.28.0",
4646
"http-proxy-middleware": "^0.17.3",
47-
"webpack-bundle-analyzer": "^2.2.1",
48-
"semver": "^5.3.0",
49-
"shelljs": "^0.7.6",
5047
"opn": "^5.1.0",
5148
"optimize-css-assets-webpack-plugin": "^2.0.0",
5249
"ora": "^1.2.0",
50+
"rimraf": "^2.6.0",
51+
"semver": "^5.3.0",
52+
"shelljs": "^0.7.6",
5353
"stylus": "^0.54.5",
5454
"stylus-loader": "^3.0.1",
55-
"rimraf": "^2.6.0",
55+
"sw-precache-webpack-plugin": "^0.11.4",
56+
"uglify-es": "^3.0.25",
5657
"url-loader": "^0.5.8",
5758
"vue-loader": "^12.1.0",
5859
"vue-style-loader": "^3.0.1",
5960
"vue-template-compiler": "^2.3.3",
6061
"webpack": "^2.6.1",
62+
"webpack-bundle-analyzer": "^2.2.1",
6163
"webpack-dev-middleware": "^1.10.0",
6264
"webpack-hot-middleware": "^2.18.0",
63-
"webpack-merge": "^4.1.0",
64-
"uglify-es": "^3.0.25"
65+
"webpack-merge": "^4.1.0"
6566
},
6667
"engines": {
6768
"node": ">= 4.0.0",

src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Vue from 'vue'
44
import Vuetify from 'vuetify'
55
import App from './App'
66
import router from './router'
7+
import { store } from './store'
78

89
Vue.use(Vuetify)
910
Vue.config.productionTip = false
@@ -12,6 +13,7 @@ Vue.config.productionTip = false
1213
new Vue({
1314
el: '#app',
1415
router,
16+
store,
1517
template: '<App/>',
1618
components: { App }
1719
})

src/store/shared/index.js

Whitespace-only changes.

src/store/user/index.js

Whitespace-only changes.

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,6 +5095,10 @@ vuetify@^0.15.7:
50955095
version "0.15.7"
50965096
resolved "https://registry.yarnpkg.com/vuetify/-/vuetify-0.15.7.tgz#a712d646485d22dfd8b7ab2e70fb378582beb9d7"
50975097

5098+
vuex@^2.4.0:
5099+
version "2.4.0"
5100+
resolved "https://registry.yarnpkg.com/vuex/-/vuex-2.4.0.tgz#e1d0430646282b40007fdd06ec6ae88a9f5a1e14"
5101+
50985102
watchpack@^1.3.1:
50995103
version "1.4.0"
51005104
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.4.0.tgz#4a1472bcbb952bd0a9bb4036801f954dfb39faac"

0 commit comments

Comments
 (0)