2024-09-09 10:29:41 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
import * as Card from '$lib/components/ui/card';
|
2025-03-20 19:57:41 +01:00
|
|
|
import { m } from '$lib/paraglide/messages';
|
2025-03-30 13:19:14 -05:00
|
|
|
import { LogsIcon } from 'lucide-svelte';
|
2024-09-09 10:29:41 +02:00
|
|
|
import AuditLogList from './audit-log-list.svelte';
|
|
|
|
|
|
|
|
|
|
let { data } = $props();
|
2025-03-10 12:37:16 +01:00
|
|
|
let auditLogsRequestOptions = $state(data.auditLogsRequestOptions);
|
2024-09-09 10:29:41 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<svelte:head>
|
2025-03-20 19:57:41 +01:00
|
|
|
<title>{m.audit_log()}</title>
|
2024-09-09 10:29:41 +02:00
|
|
|
</svelte:head>
|
|
|
|
|
|
2025-03-30 13:19:14 -05:00
|
|
|
<div>
|
|
|
|
|
<Card.Root>
|
|
|
|
|
<Card.Header>
|
|
|
|
|
<Card.Title>
|
|
|
|
|
<LogsIcon class="text-primary/80 h-5 w-5" />
|
|
|
|
|
{m.audit_log()}
|
|
|
|
|
</Card.Title>
|
|
|
|
|
<Card.Description>{m.see_your_account_activities_from_the_last_3_months()}</Card.Description>
|
|
|
|
|
</Card.Header>
|
|
|
|
|
<Card.Content>
|
|
|
|
|
<AuditLogList auditLogs={data.auditLogs} requestOptions={auditLogsRequestOptions} />
|
|
|
|
|
</Card.Content>
|
|
|
|
|
</Card.Root>
|
|
|
|
|
</div>
|