2024-09-09 10:29:41 +02:00
|
|
|
<script lang="ts">
|
2025-04-03 10:11:49 -05:00
|
|
|
import AuditLogList from '$lib/components/audit-log-list.svelte';
|
2024-09-09 10:29:41 +02:00
|
|
|
import * as Card from '$lib/components/ui/card';
|
2025-03-20 19:57:41 +01:00
|
|
|
import { m } from '$lib/paraglide/messages';
|
2025-04-28 10:38:53 +02:00
|
|
|
import userStore from '$lib/stores/user-store';
|
2025-05-21 12:15:27 -05:00
|
|
|
import { LogsIcon } from '@lucide/svelte';
|
2025-04-03 10:11:49 -05:00
|
|
|
import AuditLogSwitcher from './audit-log-switcher.svelte';
|
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-04-28 10:38:53 +02:00
|
|
|
{#if $userStore?.isAdmin}
|
|
|
|
|
<AuditLogSwitcher currentPage="personal" />
|
|
|
|
|
{/if}
|
2025-04-03 10:11:49 -05:00
|
|
|
|
2025-03-30 13:19:14 -05:00
|
|
|
<div>
|
2025-10-13 11:12:55 +02:00
|
|
|
<Card.Root class="gap-0">
|
2025-03-30 13:19:14 -05:00
|
|
|
<Card.Header>
|
|
|
|
|
<Card.Title>
|
2025-05-21 12:15:27 -05:00
|
|
|
<LogsIcon class="text-primary/80 size-5" />
|
2025-03-30 13:19:14 -05:00
|
|
|
{m.audit_log()}
|
|
|
|
|
</Card.Title>
|
|
|
|
|
<Card.Description>{m.see_your_account_activities_from_the_last_3_months()}</Card.Description>
|
|
|
|
|
</Card.Header>
|
|
|
|
|
<Card.Content>
|
2025-10-13 11:12:55 +02:00
|
|
|
<AuditLogList />
|
2025-03-30 13:19:14 -05:00
|
|
|
</Card.Content>
|
|
|
|
|
</Card.Root>
|
|
|
|
|
</div>
|