@nixweb/nixloc-ui 0.0.30 → 0.0.34
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div class="painel">
|
|
3
3
|
<Toast />
|
|
4
4
|
<Carregando v-show="carregando('painel')" />
|
|
5
5
|
<div v-show="!carregando('painel')">
|
|
@@ -81,10 +81,6 @@ export default {
|
|
|
81
81
|
},
|
|
82
82
|
updated() {
|
|
83
83
|
this.rotaAtual = this.$route.name;
|
|
84
|
-
/* var caminho = this.$route.path;
|
|
85
|
-
var modulo = caminho.split("/")[1];
|
|
86
|
-
eventBus.$emit("topoAtivado", modulo);
|
|
87
|
-
eventBus.$emit("menuAtivado", modulo);*/
|
|
88
84
|
},
|
|
89
85
|
computed: {
|
|
90
86
|
...mapGetters("generic", ["carregando"]),
|
|
@@ -101,9 +97,8 @@ export default {
|
|
|
101
97
|
<style scoped>
|
|
102
98
|
.c-container {
|
|
103
99
|
margin: auto;
|
|
104
|
-
padding-left:
|
|
105
|
-
padding-right:
|
|
106
|
-
padding-top: 60px;
|
|
100
|
+
padding-left: 30px;
|
|
101
|
+
padding-right: 30px;
|
|
107
102
|
max-width: 1400px;
|
|
108
103
|
}
|
|
109
104
|
|
|
@@ -129,4 +124,8 @@ export default {
|
|
|
129
124
|
.c-voltar:hover {
|
|
130
125
|
color: #8ca1b7;
|
|
131
126
|
}
|
|
127
|
+
|
|
128
|
+
.painel {
|
|
129
|
+
padding: 20px;
|
|
130
|
+
}
|
|
132
131
|
</style>
|
|
@@ -196,6 +196,11 @@ export default {
|
|
|
196
196
|
</script>
|
|
197
197
|
|
|
198
198
|
<style scoped>
|
|
199
|
+
|
|
200
|
+
table {
|
|
201
|
+
border-collapse: initial !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
199
204
|
table tbody tr td {
|
|
200
205
|
max-width: 350px;
|
|
201
206
|
}
|
|
@@ -207,6 +212,7 @@ table tbody tr td {
|
|
|
207
212
|
padding-top: 7px !important;
|
|
208
213
|
padding-bottom: 5px !important;
|
|
209
214
|
padding-right: 5px !important;
|
|
215
|
+
border-bottom: 0px !important;
|
|
210
216
|
}
|
|
211
217
|
|
|
212
218
|
.td-checkbox {
|
package/src/config/token.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export default class Token {
|
|
2
|
+
|
|
2
3
|
tokenHeaders() {
|
|
3
4
|
return {
|
|
4
5
|
"Content-Type": "application/json",
|
|
5
|
-
Authorization: "Bearer " + sessionStorage.token
|
|
6
|
+
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).usuario.usuarioLogado.token
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
9
|
tokenHeadersFormData() {
|
|
9
10
|
return {
|
|
10
11
|
"Content-Type": "multipart/form-data",
|
|
11
|
-
Authorization: "Bearer " + sessionStorage.token
|
|
12
|
+
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).usuario.usuarioLogado.token
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import axios from "@/config/axios";
|
|
2
2
|
import dicas from "@/config/dicas";
|
|
3
|
-
import Token from "
|
|
3
|
+
import Token from "@nixweb/nixloc-ui/src/config/token";
|
|
4
|
+
|
|
4
5
|
|
|
5
6
|
export default {
|
|
6
7
|
namespaced: true,
|
|
@@ -134,7 +135,7 @@ export default {
|
|
|
134
135
|
state.notificacoes = notificacoes;
|
|
135
136
|
},
|
|
136
137
|
insereNotificacaoErroApi: (state) => {
|
|
137
|
-
var erro = { property: "ERRO API",
|
|
138
|
+
var erro = { property: "ERRO API", mensagem: "Falha de Comunicação!" };
|
|
138
139
|
state.notificacoes = [erro];
|
|
139
140
|
},
|
|
140
141
|
removeNotificacao: (state) => {
|