@nixweb/nixloc-ui 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -6,9 +6,6 @@ import Token from "@nixweb/nixloc-ui/src/config/token";
|
|
|
6
6
|
export default {
|
|
7
7
|
namespaced: true,
|
|
8
8
|
state: {
|
|
9
|
-
menu: {
|
|
10
|
-
itens: []
|
|
11
|
-
},
|
|
12
9
|
modal: {
|
|
13
10
|
nome: undefined,
|
|
14
11
|
abrir: false
|
|
@@ -69,14 +66,6 @@ export default {
|
|
|
69
66
|
},
|
|
70
67
|
},
|
|
71
68
|
mutations: {
|
|
72
|
-
insereItemMenu: (state, itens) => {
|
|
73
|
-
itens.forEach(function (obj) {
|
|
74
|
-
state.menu.itens.push(obj);
|
|
75
|
-
});
|
|
76
|
-
},
|
|
77
|
-
removeItensMenu: (state) => {
|
|
78
|
-
state.menu.itens = [];
|
|
79
|
-
},
|
|
80
69
|
abrirModal: (state, nome) => {
|
|
81
70
|
state.modal.nome = nome;
|
|
82
71
|
state.modal.abrir = true;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
namespaced: true,
|
|
3
|
+
state: {
|
|
4
|
+
usuarioLogado: {},
|
|
5
|
+
menu: {
|
|
6
|
+
itens: []
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
mutations: {
|
|
10
|
+
insereUsuarioLogado: (state, obj) => {
|
|
11
|
+
state.usuarioLogado = obj;
|
|
12
|
+
},
|
|
13
|
+
insereItemMenu: (state, itens) => {
|
|
14
|
+
itens.forEach(function (obj) {
|
|
15
|
+
state.menu.itens.push(obj);
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
removeItensMenu: (state) => {
|
|
19
|
+
state.menu.itens = [];
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
}
|
package/src/store/store.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import Vuex from 'vuex';
|
|
3
3
|
|
|
4
|
+
import usuario from './modulos/usuario'
|
|
4
5
|
import generic from './modulos/generic'
|
|
5
6
|
import validation from './modulos/validation'
|
|
6
7
|
|
|
@@ -8,6 +9,6 @@ Vue.use(Vuex)
|
|
|
8
9
|
|
|
9
10
|
export default new Vuex.Store({
|
|
10
11
|
modules: {
|
|
11
|
-
generic, validation
|
|
12
|
+
generic, validation, usuario
|
|
12
13
|
}
|
|
13
14
|
})
|