@dracul/audit-frontend 1.35.4 → 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.4",
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": "e1efb726822b8011ead5ff2701c20e5e35c76182"
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: 'Crear',
164
- read: 'Visualizar',
165
+ create: 'Criar',
166
+ read: 'Exibir',
165
167
  update: 'Modificar',
166
- delete: 'Eliminar',
168
+ delete: 'Excluir',
167
169
 
168
170
  detailMessages: {
169
- create: 'Se ha creado un recurso con ID "{resourceID}"',
170
- read: 'Se ha visualizado un recurso con ID "{resourceID}"',
171
- update: 'Se ha modificado un recurso con ID "{resourceID}"',
172
- delete: 'Se ha eliminado un recurso con ID "{resourceID}"',
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 anterior',
178
- newValue: 'Valor nuevo',
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: 'resource',
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,
@@ -2,11 +2,17 @@ query fetchAudit{
2
2
  fetchAudit{
3
3
  id
4
4
  user{
5
- id
6
- username
7
- }
5
+ id
6
+ username
7
+ }
8
8
  action
9
- resource
9
+ entity
10
+ details
11
+ changes {
12
+ field
13
+ oldValue
14
+ newValue
15
+ }
10
16
  }
11
17
  }
12
18
 
@@ -6,6 +6,12 @@ query findAudit($id:ID!){
6
6
  username
7
7
  }
8
8
  action
9
- resource
9
+ entity
10
+ details
11
+ changes {
12
+ field
13
+ oldValue
14
+ newValue
15
+ }
10
16
  }
11
17
  }