import {createStore} from 'vuex' import moment from "moment"; import getSeason from "@/tools/getSeason"; export default createStore({ state: { player: null, time: { week: null, season: null, weekday: null }, inventory: [] }, getters: {}, mutations: { initialize(state) { state.time.week = moment().week(); state.time.season = getSeason(state.time.week); state.time.weekday = moment().weekday() } }, actions: {}, modules: {} });