From ff242fb807ed124674a4f6ba7f28b2abed1104f9 Mon Sep 17 00:00:00 2001 From: melinoix Date: Mon, 23 Sep 2024 17:40:09 +0200 Subject: [PATCH 1/3] split ModelForm component in multiple components --- .../src/lib/components/Forms/ModelForm.svelte | 1253 +---------------- .../AppliedControlsPoliciesForm.svelte | 119 ++ .../Forms/ModelForm/AssetsForm.svelte | 54 + .../ComplianceAssessmentsForm.svelte | 134 ++ .../Forms/ModelForm/EntitiesForm.svelte | 42 + .../ModelForm/EntityAssessmentsForm.svelte | 201 +++ .../Forms/ModelForm/EvidencesForm.svelte | 52 + .../Forms/ModelForm/FrameworksForm.svelte | 29 + .../Forms/ModelForm/ProjectForm.svelte | 42 + .../ModelForm/ReferenceControlsForm.svelte | 65 + .../ModelForm/RepresentativesForm.svelte | 64 + .../RequirementAssessmentsForm.svelte | 42 + .../ModelForm/RiskAcceptancesForm.svelte | 72 + .../Forms/ModelForm/RiskAssessmentForm.svelte | 106 ++ .../Forms/ModelForm/RiskScenariosForm.svelte | 42 + .../Forms/ModelForm/SolutionsForm.svelte | 43 + .../Forms/ModelForm/SsoSettingsForm.svelte | 308 ++++ .../Forms/ModelForm/ThreatsForm.svelte | 48 + .../Forms/ModelForm/UsersForm.svelte | 55 + 19 files changed, 1581 insertions(+), 1190 deletions(-) create mode 100644 frontend/src/lib/components/Forms/ModelForm/AppliedControlsPoliciesForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/AssetsForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/ComplianceAssessmentsForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/EntitiesForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/EntityAssessmentsForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/EvidencesForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/FrameworksForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/ProjectForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/ReferenceControlsForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/RepresentativesForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/RequirementAssessmentsForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/RiskAcceptancesForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/RiskAssessmentForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/RiskScenariosForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/SolutionsForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/SsoSettingsForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/ThreatsForm.svelte create mode 100644 frontend/src/lib/components/Forms/ModelForm/UsersForm.svelte diff --git a/frontend/src/lib/components/Forms/ModelForm.svelte b/frontend/src/lib/components/Forms/ModelForm.svelte index b3d18a1a0..b998acd9b 100644 --- a/frontend/src/lib/components/Forms/ModelForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm.svelte @@ -1,30 +1,43 @@ + +{#if model.urlModel === 'applied-controls' || model.urlModel === 'policies'} + {#if schema.shape.category} + + + + +