all files / src/vuex/ store.js

100% Statements 17/17
100% Branches 4/4
100% Functions 1/1
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                                        
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import actions from './actions'
import mutations from './mutations'
import { WORKING_TIME } from '../config'
 
Vue.use(Vuex)
 
const state = {
  started: false,
  paused: false,
  stopped: false,
  isWorking: true,
  counter: WORKING_TIME,
  interval: null,
  timestamp: 0,
  soundEnabled: true
}
 
export default new Vuex.Store({
  state,
  mutations,
  getters,
  actions
})