@dracul/audit-frontend 1.35.3 → 1.35.5
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dracul/audit-frontend",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.5",
|
|
4
4
|
"description": "Audit frontend",
|
|
5
5
|
"author": "Cristian Incarnato <cristian.cdi@gmail.com>",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"type": "git",
|
|
39
39
|
"url": "git+https://github.com/draculjs/modular-framework.git"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "f593ab2b43687a9e8c3545c164e30494a868bf59"
|
|
42
42
|
}
|
|
@@ -38,6 +38,7 @@ const i18nMessages = {
|
|
|
38
38
|
read: 'A resource with ID "{resourceID}" was visualized',
|
|
39
39
|
update: 'A resource with ID "{resourceID}" was updated',
|
|
40
40
|
delete: 'A resource with ID "{resourceID}" was deleted',
|
|
41
|
+
restart: 'A resource with ID "{resourceID}" was restarted',
|
|
41
42
|
},
|
|
42
43
|
|
|
43
44
|
changes: {
|
|
@@ -104,6 +105,7 @@ const i18nMessages = {
|
|
|
104
105
|
read: 'Se ha visualizado un recurso con ID "{resourceID}"',
|
|
105
106
|
update: 'Se ha modificado un recurso con ID "{resourceID}"',
|
|
106
107
|
delete: 'Se ha eliminado un recurso con ID "{resourceID}"',
|
|
108
|
+
restart: 'Se ha reiniciado un recurso con ID "{resourceID}"',
|
|
107
109
|
},
|
|
108
110
|
|
|
109
111
|
changes: {
|
|
@@ -160,22 +162,23 @@ const i18nMessages = {
|
|
|
160
162
|
action: 'Ação',
|
|
161
163
|
|
|
162
164
|
actions: {
|
|
163
|
-
create: '
|
|
164
|
-
read: '
|
|
165
|
+
create: 'Criar',
|
|
166
|
+
read: 'Exibir',
|
|
165
167
|
update: 'Modificar',
|
|
166
|
-
delete: '
|
|
168
|
+
delete: 'Excluir',
|
|
167
169
|
|
|
168
170
|
detailMessages: {
|
|
169
|
-
create: '
|
|
170
|
-
read: '
|
|
171
|
-
update: '
|
|
172
|
-
delete: '
|
|
171
|
+
create: 'Um recurso com a ID “{resourceID}” foi criado',
|
|
172
|
+
read: 'Um recurso com ID “{resourceID}” foi exibido',
|
|
173
|
+
update: 'Um recurso com a ID “{resourceID}” foi modificado',
|
|
174
|
+
delete: 'Um recurso com a ID “{resourceID}” foi excluído',
|
|
175
|
+
restart: 'Um recurso com a ID “{resourceID}” foi reiniciado',
|
|
173
176
|
},
|
|
174
177
|
|
|
175
178
|
changes: {
|
|
176
179
|
field: 'Campo',
|
|
177
|
-
oldValue: 'Valor
|
|
178
|
-
newValue: '
|
|
180
|
+
oldValue: 'Valor antigo',
|
|
181
|
+
newValue: 'Novo valor',
|
|
179
182
|
},
|
|
180
183
|
},
|
|
181
184
|
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
150
150
|
value: null
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
field: '
|
|
153
|
+
field: 'entity',
|
|
154
154
|
operator: '$regex',
|
|
155
155
|
value: null
|
|
156
156
|
}
|
|
@@ -203,7 +203,10 @@ export default {
|
|
|
203
203
|
this.pageNumber = 1
|
|
204
204
|
this.fetch()
|
|
205
205
|
},
|
|
206
|
-
fetch() {
|
|
206
|
+
async fetch() {
|
|
207
|
+
|
|
208
|
+
const fetchAll = await AuditProvider.fetchAudit()
|
|
209
|
+
console.log(fetchAll)
|
|
207
210
|
this.loading = true
|
|
208
211
|
AuditProvider.paginateAudit(
|
|
209
212
|
this.pageNumber,
|
|
@@ -214,7 +217,7 @@ export default {
|
|
|
214
217
|
this.getOrderDesc
|
|
215
218
|
).then(r => {
|
|
216
219
|
console.log('paginate audit', r)
|
|
217
|
-
|
|
220
|
+
r.data.paginateAudit.items.forEach((item) => item.changes.length == 0 ? item.changes.length = 1 : null)
|
|
218
221
|
this.items = r.data.paginateAudit.items
|
|
219
222
|
this.totalItems = r.data.paginateAudit.totalItems
|
|
220
223
|
}).catch(err => {
|