@dracul/audit-frontend
Advanced tools
+2
-2
| { | ||
| "name": "@dracul/audit-frontend", | ||
| "version": "1.35.10", | ||
| "version": "1.35.11", | ||
| "description": "Audit frontend", | ||
@@ -41,3 +41,3 @@ "author": "Cristian Incarnato <cristian.cdi@gmail.com>", | ||
| }, | ||
| "gitHead": "e60e625a659eaedb5c1089c968d3090dd22678ca" | ||
| "gitHead": "750fb29ad6271d5efbb26e8cf063a667e33bac52" | ||
| } |
@@ -108,3 +108,3 @@ const i18nMessages = { | ||
| delete: 'Se ha eliminado el recurso "{resourceID}"', | ||
| restart: 'Se ha reiniciado el recurso "{resourceID}', | ||
| restart: 'Se ha reiniciado el recurso "{resourceID}"', | ||
| }, | ||
@@ -165,14 +165,14 @@ | ||
| actions: { | ||
| create: 'Crear', | ||
| read: 'Visualizar', | ||
| ações: { | ||
| create: 'Criar', | ||
| read: 'Display', | ||
| update: 'Modificar', | ||
| delete: 'Eliminar', | ||
| delete: 'Excluir', | ||
| restart: 'Reiniciar', | ||
| detailMessages: { | ||
| create: 'Se ha creado el recurso "{resourceID}"', | ||
| read: 'Se ha visualizado el recurso "{resourceID}"', | ||
| update: 'Se ha modificado el recurso "{resourceID}"', | ||
| delete: 'Se ha eliminado el recurso "{resourceID}"', | ||
| restart: 'Se ha reiniciado el recurso "{resourceID}"', | ||
| create: 'O recurso “{resourceID}” foi criado', | ||
| read: 'O recurso “{resourceID}” foi exibido', | ||
| update: 'O recurso “{resourceID}” foi modificado', | ||
| delete: 'O recurso “{resourceID}” foi excluído', | ||
| restart: 'O recurso “{resourceID}” foi reiniciado', | ||
| }, | ||
@@ -182,4 +182,4 @@ | ||
| field: 'Campo', | ||
| oldValue: 'Valor anterior', | ||
| newValue: 'Valor nuevo', | ||
| oldValue: 'Valor antigo', | ||
| newValue: 'Novo valor', | ||
| }, | ||
@@ -186,0 +186,0 @@ }, |
@@ -282,4 +282,17 @@ <template> | ||
| }, | ||
| getDetailsText(item){ | ||
| return item.resourceData?.Spec?.Name || item.details | ||
| getDetailsText(audit){ | ||
| console.log(`audit: ${JSON.stringify(audit, null, 2)}`) | ||
| console.log(`typeof resource data: ${typeof audit.resourceData}`) | ||
| if (audit && audit.resourceData && audit.resourceData !== '' && typeof audit.resourceData === 'string' && audit.resourceData !== null && audit.resourceData !== undefined) { | ||
| try { | ||
| audit.resourceData = JSON.parse(audit.resourceData) | ||
| } catch { | ||
| console.error('Invalid JSON format in resourceData') | ||
| return [] | ||
| } | ||
| } | ||
| return audit.resourceData?.Spec?.Name || audit.details | ||
| }, | ||
@@ -286,0 +299,0 @@ performSearch() { |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
34267
1.78%0
-100%