front-end almost done | started back-end
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
# STORE
|
||||
|
||||
**This directory is not required, you can delete it if you don't want to use it.**
|
||||
|
||||
This directory contains your Vuex Store files.
|
||||
Vuex Store option is implemented in the Nuxt.js framework.
|
||||
|
||||
Creating a file in this directory automatically activates the option in the framework.
|
||||
|
||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/vuex-store).
|
||||
@@ -0,0 +1,17 @@
|
||||
export const state = () => ({
|
||||
languages: null,
|
||||
locale: 'fa',
|
||||
unread: 0
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
updateLanguages(state, payload) {
|
||||
state.languages = payload
|
||||
},
|
||||
changeLocale(state, payload) {
|
||||
state.locale = payload
|
||||
},
|
||||
unreadCount(state, payload) {
|
||||
state.unread = payload
|
||||
}
|
||||
}
|
||||
+470
-417
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user