@nixweb/nixloc-ui 0.0.59 → 0.0.62
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
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
:class="{
|
|
8
8
|
topo: posicao == 'topo',
|
|
9
9
|
rodape: posicao == 'rodape',
|
|
10
|
-
esconde: menu.escondeMostra,
|
|
11
|
-
mostra: !menu.escondeMostra,
|
|
12
10
|
}"
|
|
13
11
|
>
|
|
14
12
|
<div class="tamanho">
|
|
@@ -35,7 +33,6 @@ export default {
|
|
|
35
33
|
},
|
|
36
34
|
computed: {
|
|
37
35
|
...mapGetters("generic", ["carregando"]),
|
|
38
|
-
...mapState("generic", ["menu"]),
|
|
39
36
|
},
|
|
40
37
|
};
|
|
41
38
|
</script>
|
|
@@ -48,6 +45,7 @@ export default {
|
|
|
48
45
|
overflow: hidden;
|
|
49
46
|
z-index: 20;
|
|
50
47
|
padding: 18px;
|
|
48
|
+
margin-left: 220px;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
.tamanho {
|
|
@@ -68,11 +66,4 @@ export default {
|
|
|
68
66
|
border-top: 1px solid #e1e1e2;
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
.esconde {
|
|
72
|
-
padding-left: 60px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.mostra {
|
|
76
|
-
padding-left: 230px;
|
|
77
|
-
}
|
|
78
69
|
</style>
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
@click.prevent="navegarPara('dashboard')"
|
|
8
8
|
:class="sessaoDestaque('home')"
|
|
9
9
|
>
|
|
10
|
-
<
|
|
11
|
-
|
|
10
|
+
<div class="div-icone lado-a-lado" :style="'background-color:' + corBase">
|
|
11
|
+
<i class="fa fa-home icone" aria-hidden="true"></i>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="lado-a-lado titulo">Dashboard</div>
|
|
12
14
|
</a>
|
|
13
15
|
</li>
|
|
14
16
|
|
|
@@ -18,9 +20,13 @@
|
|
|
18
20
|
@click.prevent="abrirSubMenu(item.modulo)"
|
|
19
21
|
:class="sessaoDestaque(item.modulo)"
|
|
20
22
|
>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
<div class="div-icone lado-a-lado" :style="'background-color:' + corBase">
|
|
24
|
+
<i :class="item.icone" class="icone" aria-hidden="true"></i>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="lado-a-lado titulo">{{ item.modulo }}</div>
|
|
27
|
+
<div class="lado-a-lado seta menu__arrow-icon">
|
|
28
|
+
<i class="fa fa-chevron-right" aria-hidden="true"></i>
|
|
29
|
+
</div>
|
|
24
30
|
</a>
|
|
25
31
|
</li>
|
|
26
32
|
</ul>
|
|
@@ -62,6 +68,12 @@ import { mapState } from "vuex";
|
|
|
62
68
|
|
|
63
69
|
export default {
|
|
64
70
|
name: "Menu",
|
|
71
|
+
props: {
|
|
72
|
+
corBase: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: "#4680A5",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
65
77
|
data() {
|
|
66
78
|
return {
|
|
67
79
|
modulo: "",
|
|
@@ -116,3 +128,25 @@ export default {
|
|
|
116
128
|
},
|
|
117
129
|
};
|
|
118
130
|
</script>
|
|
131
|
+
|
|
132
|
+
<style scoped>
|
|
133
|
+
.div-icone {
|
|
134
|
+
width: 30px;
|
|
135
|
+
height: 30px;
|
|
136
|
+
padding-left: 6px;
|
|
137
|
+
padding-top: 3px;
|
|
138
|
+
border-radius: 8px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.icone {
|
|
142
|
+
color: white;
|
|
143
|
+
font-size: 16px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.titulo {
|
|
147
|
+
margin-left: 15px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.seta {
|
|
151
|
+
}
|
|
152
|
+
</style>
|
|
@@ -176,7 +176,12 @@ export default {
|
|
|
176
176
|
return response.data;
|
|
177
177
|
}
|
|
178
178
|
}, (err) => {
|
|
179
|
-
|
|
179
|
+
if (err.response)
|
|
180
|
+
if (err.response.status === 403)
|
|
181
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
|
|
182
|
+
|
|
183
|
+
if (!err.response)
|
|
184
|
+
context.commit('insereNotificacaoErroApi');
|
|
180
185
|
return false;
|
|
181
186
|
})
|
|
182
187
|
},
|
|
@@ -201,7 +206,13 @@ export default {
|
|
|
201
206
|
return response.data;
|
|
202
207
|
}
|
|
203
208
|
}, (err) => {
|
|
204
|
-
|
|
209
|
+
if (err.response)
|
|
210
|
+
if (err.response.status === 403)
|
|
211
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
|
|
212
|
+
|
|
213
|
+
if (!err.response)
|
|
214
|
+
context.commit('insereNotificacaoErroApi');
|
|
215
|
+
|
|
205
216
|
return false;
|
|
206
217
|
})
|
|
207
218
|
},
|
|
@@ -245,12 +256,18 @@ export default {
|
|
|
245
256
|
return response.data;
|
|
246
257
|
} else {
|
|
247
258
|
context.commit('insereNotificacao', response.data.notificacoes)
|
|
259
|
+
context.commit('insereMetodoExecutadoApi', 'deleteAllApiErro');
|
|
248
260
|
context.commit('insereToast', 'deleteApiErro');
|
|
249
261
|
return response.data;
|
|
250
262
|
}
|
|
251
263
|
|
|
252
264
|
}, (err) => {
|
|
253
|
-
|
|
265
|
+
if (err.response)
|
|
266
|
+
if (err.response.status === 403)
|
|
267
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
|
|
268
|
+
|
|
269
|
+
if (!err.response)
|
|
270
|
+
context.commit('insereNotificacaoErroApi');
|
|
254
271
|
return false;
|
|
255
272
|
})
|
|
256
273
|
},
|
|
@@ -275,7 +292,12 @@ export default {
|
|
|
275
292
|
}
|
|
276
293
|
|
|
277
294
|
}, (err) => {
|
|
278
|
-
|
|
295
|
+
if (err.response)
|
|
296
|
+
if (err.response.status === 403)
|
|
297
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
|
|
298
|
+
|
|
299
|
+
if (!err.response)
|
|
300
|
+
context.commit('insereNotificacaoErroApi');
|
|
279
301
|
return false;
|
|
280
302
|
})
|
|
281
303
|
},
|
|
@@ -320,7 +342,12 @@ export default {
|
|
|
320
342
|
return response.data;
|
|
321
343
|
}
|
|
322
344
|
}, (err) => {
|
|
323
|
-
|
|
345
|
+
if (err.response)
|
|
346
|
+
if (err.response.status === 403)
|
|
347
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
|
|
348
|
+
|
|
349
|
+
if (!err.response)
|
|
350
|
+
context.commit('insereNotificacaoErroApi');
|
|
324
351
|
return false;
|
|
325
352
|
})
|
|
326
353
|
},
|
|
@@ -340,7 +367,12 @@ export default {
|
|
|
340
367
|
return response.data;
|
|
341
368
|
}
|
|
342
369
|
}, (err) => {
|
|
343
|
-
|
|
370
|
+
if (err.response)
|
|
371
|
+
if (err.response.status === 403)
|
|
372
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário não autorizado!" }])
|
|
373
|
+
|
|
374
|
+
if (!err.response)
|
|
375
|
+
context.commit('insereNotificacaoErroApi');
|
|
344
376
|
return false;
|
|
345
377
|
})
|
|
346
378
|
},
|