Skip to content

Commit

Permalink
store test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Moliner committed Sep 22, 2018
1 parent 5fdf7d9 commit ed5c997
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 49 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"assets-loader": "^0.5.2",
"connect-history-api-fallback": "^1.5.0",
"element-ui": "^2.4.7",
"gsap": "^2.0.2",
Expand All @@ -31,6 +30,7 @@
"@vue/cli-plugin-pwa": "^3.0.3",
"@vue/cli-service": "^3.0.3",
"@vue/eslint-config-standard": "^3.0.3",
"assets-loader": "^0.5.2",
"favicons-webpack-plugin": "0.0.9",
"node-sass": "^4.9.3",
"pug": "^2.0.3",
Expand Down
13 changes: 13 additions & 0 deletions src/components/core/Loader.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template lang="pug">

</template>

<script>
export default {
}
</script>

<style>
</style>
6 changes: 4 additions & 2 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
import Vue from 'vue'
import Vuex from 'vuex'

import modules from './modules'
import global from './modules/global'

Vue.use(Vuex)

const store = new Vuex.Store({
modules
modules: {
global
}
})

export default store
12 changes: 6 additions & 6 deletions src/store/modules/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ const state = {
loaded: false
}

const getters = {
isLoaded: state => {
return state.loaded
}
}

const mutations = {
[types.SET_LOADING] (state, loadedState) {
state.loaded = loadedState
}
}

const getters = {
isLoaded: state => {
return state.loaded
}
}

export default {
state,
getters,
Expand Down
40 changes: 0 additions & 40 deletions src/store/modules/index.js

This file was deleted.

0 comments on commit ed5c997

Please sign in to comment.