i18 cleanup
This commit is contained in:
@@ -37,15 +37,15 @@
|
||||
const pageSize = 20;
|
||||
|
||||
const TASK_TYPE_OPTIONS = [
|
||||
{ value: 'all', label: $t.reports?.all_types || 'All types' },
|
||||
{ value: 'all', label: $t.reports?.all_types },
|
||||
{ value: 'llm_verification', label: 'LLM' },
|
||||
{ value: 'backup', label: $t.nav?.backups || 'Backups' },
|
||||
{ value: 'migration', label: $t.nav?.migration || 'Migration' },
|
||||
{ value: 'backup', label: $t.nav?.backups },
|
||||
{ value: 'migration', label: $t.nav?.migration },
|
||||
{ value: 'documentation', label: 'Documentation' }
|
||||
];
|
||||
|
||||
const STATUS_OPTIONS = [
|
||||
{ value: 'all', label: $t.reports?.all_statuses || 'All statuses' },
|
||||
{ value: 'all', label: $t.reports?.all_statuses },
|
||||
{ value: 'success', label: 'Success' },
|
||||
{ value: 'failed', label: 'Failed' },
|
||||
{ value: 'in_progress', label: 'In progress' },
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
<div class="mx-auto w-full max-w-7xl space-y-4">
|
||||
<PageHeader
|
||||
title={$t.reports?.title || 'Reports'}
|
||||
title={$t.reports?.title }
|
||||
subtitle={() => null}
|
||||
actions={() => null}
|
||||
/>
|
||||
@@ -143,38 +143,38 @@
|
||||
class="inline-flex items-center justify-center rounded-lg border border-slate-300 px-3 py-1.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50"
|
||||
on:click={() => loadReports()}
|
||||
>
|
||||
{$t.common?.refresh || 'Refresh'}
|
||||
{$t.common?.refresh }
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="inline-flex items-center justify-center rounded-lg border border-slate-300 px-3 py-1.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50"
|
||||
on:click={clearFilters}
|
||||
>
|
||||
{$t.reports?.clear_filters || 'Clear filters'}
|
||||
{$t.reports?.clear_filters }
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if loading}
|
||||
<div class="rounded-xl border border-slate-200 bg-white p-6 text-sm text-slate-500 shadow-sm">
|
||||
{$t.reports?.loading || 'Loading reports...'}
|
||||
{$t.reports?.loading }
|
||||
</div>
|
||||
{:else if error}
|
||||
<div class="rounded-xl border border-red-200 bg-red-50 p-4 text-red-700 shadow-sm">
|
||||
<p>{error}</p>
|
||||
<button class="mt-2 inline-flex items-center justify-center rounded-lg border border-red-300 px-3 py-1 text-sm font-medium text-red-700 transition-colors hover:bg-red-100" on:click={() => loadReports()}>
|
||||
{$t.reports?.retry_load || $t.common?.retry || 'Retry'}
|
||||
{$t.reports?.retry_load || $t.common?.retry }
|
||||
</button>
|
||||
</div>
|
||||
{:else if !collection || collection.total === 0}
|
||||
<div class="rounded-xl border border-slate-200 bg-white p-6 text-sm text-slate-500 shadow-sm">
|
||||
{$t.reports?.empty || 'No reports available.'}
|
||||
{$t.reports?.empty }
|
||||
</div>
|
||||
{:else if collection.items.length === 0 && hasActiveFilters()}
|
||||
<div class="rounded-xl border border-slate-200 bg-white p-6 text-sm text-slate-500 shadow-sm">
|
||||
<p>{$t.reports?.filtered_empty || 'No reports match your filters.'}</p>
|
||||
<p>{$t.reports?.filtered_empty }</p>
|
||||
<button class="mt-2 inline-flex items-center justify-center rounded-lg border border-slate-300 px-3 py-1 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50" on:click={clearFilters}>
|
||||
{$t.reports?.clear_filters || 'Clear filters'}
|
||||
{$t.reports?.clear_filters }
|
||||
</button>
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user