From 73ff076cf8f94f0ec5e116c058461af7e776b5a4 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Fri, 20 Dec 2024 19:10:26 +0100 Subject: [PATCH] Remove breadcrumbObject store --- .../components/DetailView/DetailView.svelte | 29 ++++++++----------- frontend/src/lib/utils/stores.ts | 1 - .../[id=uuid]/edit/+page.svelte | 5 +--- .../analytics/ComposerSelect.svelte | 11 ++++--- .../[id=uuid]/action-plan/+page.svelte | 11 ++----- .../[id=uuid]/flash-mode/+page.svelte | 9 ++---- .../ebios-rm/[id=uuid]/+page.svelte | 17 +++++------ .../entity-assessments/[id=uuid]/+page.svelte | 5 +--- .../frameworks/[id=uuid]/+page.svelte | 12 ++++---- .../libraries/[id=uuid]/+page.svelte | 19 ++++-------- .../risk-assessments/[id=uuid]/+page.svelte | 5 +--- .../[id=uuid]/remediation-plan/+page.svelte | 9 ++---- .../risk-matrices/[id=uuid]/+page.svelte | 4 --- .../risk-scenarios/[id=uuid]/+page.svelte | 8 ++--- .../[id=uuid]/edit/+page.svelte | 13 +++------ .../stakeholders/[id=uuid]/edit/+page.svelte | 5 +--- .../users/[id=uuid]/edit/+page.svelte | 2 -- .../[id=uuid]/edit/+page.svelte | 5 +--- .../[id=uuid]/+page.svelte | 9 ++---- .../[id=uuid]/table-mode/+page.svelte | 23 +++++++-------- .../evidences/[id=uuid]/+page.svelte | 20 +++++-------- .../[id=uuid]/+page.svelte | 25 ++++++++-------- .../[id=uuid]/edit/+page.svelte | 8 +---- 23 files changed, 89 insertions(+), 166 deletions(-) diff --git a/frontend/src/lib/components/DetailView/DetailView.svelte b/frontend/src/lib/components/DetailView/DetailView.svelte index bcd978e68..013f87fb6 100644 --- a/frontend/src/lib/components/DetailView/DetailView.svelte +++ b/frontend/src/lib/components/DetailView/DetailView.svelte @@ -1,32 +1,29 @@ - import { composerSchema } from '$lib/utils/schemas'; - import SuperForm from '$lib/components/Forms/Form.svelte'; + import Anchor from '$lib/components/Anchor/Anchor.svelte'; import AutocompleteSelect from '$lib/components/Forms/AutocompleteSelect.svelte'; - import type { AnyZodObject } from 'zod'; - import type { SuperValidated } from 'sveltekit-superforms'; - import { onMount } from 'svelte'; + import SuperForm from '$lib/components/Forms/Form.svelte'; import { getOptions } from '$lib/utils/crud'; + import { composerSchema } from '$lib/utils/schemas'; import * as m from '$paraglide/messages'; + import { onMount } from 'svelte'; + import type { SuperValidated } from 'sveltekit-superforms'; import { zod } from 'sveltekit-superforms/adapters'; - import Anchor from '$lib/components/Anchor/Anchor.svelte'; export let composerForm: SuperValidated>; diff --git a/frontend/src/routes/(app)/(internal)/compliance-assessments/[id=uuid]/action-plan/+page.svelte b/frontend/src/routes/(app)/(internal)/compliance-assessments/[id=uuid]/action-plan/+page.svelte index 53d3197bf..416fa1ece 100644 --- a/frontend/src/routes/(app)/(internal)/compliance-assessments/[id=uuid]/action-plan/+page.svelte +++ b/frontend/src/routes/(app)/(internal)/compliance-assessments/[id=uuid]/action-plan/+page.svelte @@ -1,16 +1,11 @@ diff --git a/frontend/src/routes/(app)/(internal)/frameworks/[id=uuid]/+page.svelte b/frontend/src/routes/(app)/(internal)/frameworks/[id=uuid]/+page.svelte index 847143f3a..a77ae7608 100644 --- a/frontend/src/routes/(app)/(internal)/frameworks/[id=uuid]/+page.svelte +++ b/frontend/src/routes/(app)/(internal)/frameworks/[id=uuid]/+page.svelte @@ -1,16 +1,14 @@
diff --git a/frontend/src/routes/(app)/(internal)/risk-scenarios/[id=uuid]/+page.svelte b/frontend/src/routes/(app)/(internal)/risk-scenarios/[id=uuid]/+page.svelte index c48fb9efe..3a60190fa 100644 --- a/frontend/src/routes/(app)/(internal)/risk-scenarios/[id=uuid]/+page.svelte +++ b/frontend/src/routes/(app)/(internal)/risk-scenarios/[id=uuid]/+page.svelte @@ -1,21 +1,17 @@
diff --git a/frontend/src/routes/(app)/(third-party)/[model=thirdparty_urlmodels]/[id=uuid]/edit/+page.svelte b/frontend/src/routes/(app)/(third-party)/[model=thirdparty_urlmodels]/[id=uuid]/edit/+page.svelte index 04428a987..9bfb2209e 100644 --- a/frontend/src/routes/(app)/(third-party)/[model=thirdparty_urlmodels]/[id=uuid]/edit/+page.svelte +++ b/frontend/src/routes/(app)/(third-party)/[model=thirdparty_urlmodels]/[id=uuid]/edit/+page.svelte @@ -1,11 +1,8 @@
diff --git a/frontend/src/routes/(app)/(third-party)/compliance-assessments/[id=uuid]/+page.svelte b/frontend/src/routes/(app)/(third-party)/compliance-assessments/[id=uuid]/+page.svelte index b39fe3ce4..9be58eb9c 100644 --- a/frontend/src/routes/(app)/(third-party)/compliance-assessments/[id=uuid]/+page.svelte +++ b/frontend/src/routes/(app)/(third-party)/compliance-assessments/[id=uuid]/+page.svelte @@ -1,7 +1,6 @@