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';
|
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 { auditLogs } = data;
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
<Card.Root>
|
|
|
|
|
<Card.Header>
|
2025-03-20 19:57:41 +01:00
|
|
|
<Card.Title>{m.audit_log()}</Card.Title>
|
2025-01-19 15:41:16 +01:00
|
|
|
<Card.Description class="mt-1"
|
2025-03-20 19:57:41 +01:00
|
|
|
>{m.see_your_account_activities_from_the_last_3_months()}</Card.Description
|
2025-01-19 15:41:16 +01:00
|
|
|
>
|
2024-09-09 10:29:41 +02:00
|
|
|
</Card.Header>
|
|
|
|
|
<Card.Content>
|
2025-03-10 12:37:16 +01:00
|
|
|
<AuditLogList auditLogs={data.auditLogs} requestOptions={auditLogsRequestOptions} />
|
2024-09-09 10:29:41 +02:00
|
|
|
</Card.Content>
|
|
|
|
|
</Card.Root>
|