feat: hecho filtro de busqueda para los logs

This commit is contained in:
fede committed 2026-07-20 21:30:40 -03:00
1 parent 1c0da9d70f
commit a25afa1750
12 files changed
+288 -57

No files matched your search

+8 -1
View File
@@ -10,6 +10,9 @@
let { logs } = $props();
/**
* @param {string | number | Date} iso
*/
function formatFecha(iso) {
return new Date(iso).toLocaleString('es-AR', {
day: '2-digit',
@@ -21,7 +24,11 @@
}
</script>
<DataTable {headers} rows={logs} expandable>
{#if !logs}
<p>No hay logs para mostrar</p>
{/if}
<DataTable {headers} rows={logs ?? []} expandable>
<svelte:fragment slot="cell" let:row let:cell>
{#if cell.key === 'created_at'}
{formatFecha(row.created_at)}