diff --git a/frontend/src/components/DynamicForm.svelte b/frontend/src/components/DynamicForm.svelte deleted file mode 100755 index 6b5a0a236..000000000 --- a/frontend/src/components/DynamicForm.svelte +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - -
{ event.preventDefault(); handleSubmit(); }} class="space-y-4"> - {#if schema && schema.properties} - {#each Object.entries(schema.properties) as [key, prop]} -
- - {#if prop.type === 'string'} - - {:else if prop.type === 'number' || prop.type === 'integer'} - - {:else if prop.type === 'boolean'} - - {/if} -
- {/each} - - {/if} -
- - - diff --git a/frontend/src/components/EnvSelector.svelte b/frontend/src/components/EnvSelector.svelte deleted file mode 100644 index cf888261f..000000000 --- a/frontend/src/components/EnvSelector.svelte +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - -
- - -
- - - - diff --git a/frontend/src/components/PasswordPrompt.svelte b/frontend/src/components/PasswordPrompt.svelte deleted file mode 100644 index 6b7295743..000000000 --- a/frontend/src/components/PasswordPrompt.svelte +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - -{#if show} - -{/if} - diff --git a/frontend/src/components/TaskList.svelte b/frontend/src/components/TaskList.svelte deleted file mode 100644 index ae35d459e..000000000 --- a/frontend/src/components/TaskList.svelte +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - -
- {#if loading && tasks.length === 0} -
{$t.tasks?.loading}
- {:else if tasks.length === 0} -
{$t.tasks?.no_tasks}
- {:else} - - {/if} -
- - diff --git a/frontend/src/components/auth/ProtectedRoute.svelte b/frontend/src/components/auth/ProtectedRoute.svelte deleted file mode 100644 index 6d7b0b048..000000000 --- a/frontend/src/components/auth/ProtectedRoute.svelte +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - -{#if $auth.loading || isCheckingAccess} -
-
-
-{:else if $auth.isAuthenticated && hasRouteAccess} - {@render children?.()} -{/if} - - diff --git a/frontend/src/components/llm/ValidationReport.svelte b/frontend/src/components/llm/ValidationReport.svelte deleted file mode 100644 index 471399e85..000000000 --- a/frontend/src/components/llm/ValidationReport.svelte +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - -{#if result} -
-
-

{$t.llm?.validation_report_title}

- - {result.status} - -
- -
-

{$t.reports?.summary}

-

{result.summary}

-
- - {#if result.issues && result.issues.length > 0} -
-

{$t.tasks?.issues}

-
- - - - - - - - - - {#each result.issues as issue} - - - - - - {/each} - -
{$t.reports?.severity}{$t.reports?.message}{$t.tasks?.location}
- - {issue.severity} - - {issue.message}{issue.location || $t.common?.not_available}
-
-
- {/if} - - {#if result.screenshot_path} -
-

{$t.dashboard?.screenshot_strategy}

- {$t.dashboard?.dashboard_validation} -
- {/if} -
-{:else} -
-

{$t.llm?.no_validation_result}

-
-{/if} - - diff --git a/frontend/src/lib/components/auth/ProtectedRoute.svelte b/frontend/src/lib/components/auth/ProtectedRoute.svelte new file mode 100644 index 000000000..43f76243e --- /dev/null +++ b/frontend/src/lib/components/auth/ProtectedRoute.svelte @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + +{#if $auth.loading || isCheckingAccess} +
+
+
+{:else if $auth.isAuthenticated && hasRouteAccess} + {@render children?.()} +{/if} + diff --git a/frontend/src/components/backups/BackupList.svelte b/frontend/src/lib/components/backups/BackupList.svelte similarity index 96% rename from frontend/src/components/backups/BackupList.svelte rename to frontend/src/lib/components/backups/BackupList.svelte index 08591ce5a..13d902945 100644 --- a/frontend/src/components/backups/BackupList.svelte +++ b/frontend/src/lib/components/backups/BackupList.svelte @@ -1,5 +1,5 @@ - + - + - + - + - diff --git a/frontend/src/components/Navbar.svelte b/frontend/src/lib/components/layout/Navbar.svelte similarity index 98% rename from frontend/src/components/Navbar.svelte rename to frontend/src/lib/components/layout/Navbar.svelte index d725494a2..1057143c7 100644 --- a/frontend/src/components/Navbar.svelte +++ b/frontend/src/lib/components/layout/Navbar.svelte @@ -1,5 +1,5 @@ - + - + - + + + + + + + + + + + + + + +{#if show} + +{/if} + diff --git a/frontend/src/components/storage/FileList.svelte b/frontend/src/lib/components/storage/FileList.svelte similarity index 97% rename from frontend/src/components/storage/FileList.svelte rename to frontend/src/lib/components/storage/FileList.svelte index 082cae1ee..5565a1535 100644 --- a/frontend/src/components/storage/FileList.svelte +++ b/frontend/src/lib/components/storage/FileList.svelte @@ -1,5 +1,5 @@ - + - + - + - + + +
+ + +
+ diff --git a/frontend/src/components/MappingTable.svelte b/frontend/src/lib/components/ui/MappingTable.svelte similarity index 98% rename from frontend/src/components/MappingTable.svelte rename to frontend/src/lib/components/ui/MappingTable.svelte index 2a093aac2..cdc9e6a0f 100644 --- a/frontend/src/components/MappingTable.svelte +++ b/frontend/src/lib/components/ui/MappingTable.svelte @@ -1,5 +1,5 @@ - + - + @@ -75,6 +72,4 @@ {/each} - - diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 014641bf5..0d4d78163 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -5,7 +5,7 @@ - + @@ -21,10 +21,10 @@ diff --git a/frontend/src/routes/tools/debug/+page.svelte b/frontend/src/routes/tools/debug/+page.svelte index 835742f81..c406d7089 100644 --- a/frontend/src/routes/tools/debug/+page.svelte +++ b/frontend/src/routes/tools/debug/+page.svelte @@ -15,8 +15,8 @@ @UX_STATE: Error -> Nested diagnostic failures remain scoped to the debug workspace. --> diff --git a/frontend/src/routes/tools/mapper/+page.svelte b/frontend/src/routes/tools/mapper/+page.svelte index 891d26275..52c417892 100644 --- a/frontend/src/routes/tools/mapper/+page.svelte +++ b/frontend/src/routes/tools/mapper/+page.svelte @@ -15,8 +15,8 @@ @UX_STATE: Error -> Mapping-specific validation or execution failures remain visible without route changes. --> diff --git a/frontend/src/routes/tools/storage/+page.svelte b/frontend/src/routes/tools/storage/+page.svelte index b7bd1c13e..2faf90312 100644 --- a/frontend/src/routes/tools/storage/+page.svelte +++ b/frontend/src/routes/tools/storage/+page.svelte @@ -21,8 +21,8 @@ import { listFiles, deleteFile } from '../../../services/storageService'; import { addToast } from '$lib/toasts.svelte.js'; import { t } from '$lib/i18n/index.svelte.js'; - import FileList from '../../../components/storage/FileList.svelte'; - import FileUpload from '../../../components/storage/FileUpload.svelte'; + import FileList from '$lib/components/storage/FileList.svelte'; + import FileUpload from '$lib/components/storage/FileUpload.svelte'; // [/SECTION: IMPORTS] // #region loadFiles:Function [TYPE Function]