From 8dabb1aab79b287092cf29a2f77c4cc69a13d2f4 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Mon, 9 Dec 2024 20:15:08 +0100 Subject: [PATCH 1/2] wip --- frontend/src/lib/components/Forms/OTP/OTPInput.svelte | 2 -- frontend/src/lib/components/Forms/OTP/OTPItem.svelte | 1 - .../login/mfa/components/MFAAuthenticateModal.svelte | 1 - 3 files changed, 4 deletions(-) diff --git a/frontend/src/lib/components/Forms/OTP/OTPInput.svelte b/frontend/src/lib/components/Forms/OTP/OTPInput.svelte index 3e4938c00..6601c51dd 100644 --- a/frontend/src/lib/components/Forms/OTP/OTPInput.svelte +++ b/frontend/src/lib/components/Forms/OTP/OTPInput.svelte @@ -8,7 +8,6 @@ export let form: SuperForm>; export let numOfInputs: number = 6; export let separator = ''; - export let disableDefaultStyle = false; export let inputClass = ''; export let wrapperClass = ''; export let separatorClass = ''; @@ -81,7 +80,6 @@ index={i} bind:codes {inputs} - nostyle={disableDefaultStyle} className={inputClass} style={inputStyle} placeholder={placeholders[i]} diff --git a/frontend/src/lib/components/Forms/OTP/OTPItem.svelte b/frontend/src/lib/components/Forms/OTP/OTPItem.svelte index cfc7c1068..a4ad3c0db 100644 --- a/frontend/src/lib/components/Forms/OTP/OTPItem.svelte +++ b/frontend/src/lib/components/Forms/OTP/OTPItem.svelte @@ -4,7 +4,6 @@ export let value: string; export let codes: string[]; export let inputs: (null | HTMLInputElement)[]; - export let nostyle: boolean; export let className: string; export let num: boolean; export let style: string; diff --git a/frontend/src/routes/(authentication)/login/mfa/components/MFAAuthenticateModal.svelte b/frontend/src/routes/(authentication)/login/mfa/components/MFAAuthenticateModal.svelte index 7417095b0..7880375f5 100644 --- a/frontend/src/routes/(authentication)/login/mfa/components/MFAAuthenticateModal.svelte +++ b/frontend/src/routes/(authentication)/login/mfa/components/MFAAuthenticateModal.svelte @@ -11,7 +11,6 @@ const modalStore: ModalStore = getModalStore(); - export let totp; export let _form; export let formAction: string; From 8b536f95d2c96edd47c3d9ae888655b0cc81d3c7 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Tue, 10 Dec 2024 11:20:17 +0100 Subject: [PATCH 2/2] chore: Remove unused props --- frontend/src/lib/components/Chart/TimeSeriesChart.svelte | 2 -- .../src/lib/components/Forms/AutocompleteSelect.svelte | 1 - .../lib/components/Forms/ModelForm/FearedEventForm.svelte | 1 - .../components/Forms/ModelForm/FilteringLabelForm.svelte | 8 ++------ .../components/Forms/ModelForm/GeneralSettingForm.svelte | 5 +++-- frontend/src/lib/components/Forms/OTP/OTPInput.svelte | 6 +----- frontend/src/lib/components/ModelTable/ModelTable.svelte | 1 - .../(app)/(internal)/ebios-rm/[id=uuid]/Tile.svelte | 1 - .../(app)/(internal)/experimental/timeseries/+page.svelte | 2 -- 9 files changed, 6 insertions(+), 21 deletions(-) diff --git a/frontend/src/lib/components/Chart/TimeSeriesChart.svelte b/frontend/src/lib/components/Chart/TimeSeriesChart.svelte index 30f53a76d..2b7a8c486 100644 --- a/frontend/src/lib/components/Chart/TimeSeriesChart.svelte +++ b/frontend/src/lib/components/Chart/TimeSeriesChart.svelte @@ -4,9 +4,7 @@ export let width = 'w-auto'; export let height = 'h-full'; export let classesContainer = ''; - export let title = ''; export let name = ''; - export let timeseries = []; const chart_id = `${name}_div`; onMount(async () => { const echarts = await import('echarts'); diff --git a/frontend/src/lib/components/Forms/AutocompleteSelect.svelte b/frontend/src/lib/components/Forms/AutocompleteSelect.svelte index 8e71e96f4..cfd635728 100644 --- a/frontend/src/lib/components/Forms/AutocompleteSelect.svelte +++ b/frontend/src/lib/components/Forms/AutocompleteSelect.svelte @@ -29,7 +29,6 @@ resolve: (x) => x }; export let cachedValue: any[] | undefined = undefined; - export let createFromSelection = false; const { value, errors, constraints } = formFieldProxy(form, field); diff --git a/frontend/src/lib/components/Forms/ModelForm/FearedEventForm.svelte b/frontend/src/lib/components/Forms/ModelForm/FearedEventForm.svelte index 9580233a3..d979b3524 100644 --- a/frontend/src/lib/components/Forms/ModelForm/FearedEventForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm/FearedEventForm.svelte @@ -13,7 +13,6 @@ export let cacheLocks: Record = {}; export let formDataCache: Record = {}; export let initialData: Record = {}; - export let context: string; - import AutocompleteSelect from '../AutocompleteSelect.svelte'; - import { getOptions } from '$lib/utils/crud'; - import type { SuperValidated } from 'sveltekit-superforms'; - import type { ModelInfo, CacheLock } from '$lib/utils/types'; import TextField from '$lib/components/Forms/TextField.svelte'; + import type { CacheLock } from '$lib/utils/types'; import * as m from '$paraglide/messages.js'; + import type { SuperValidated } from 'sveltekit-superforms'; export let form: SuperValidated; - export let model: ModelInfo; export let cacheLocks: Record = {}; export let formDataCache: Record = {}; - export let initialData: Record = {}; import Select from '../Select.svelte'; import * as m from '$paraglide/messages'; + import type { CacheLock, ModelInfo } from '$lib/utils/types'; + import type { SuperForm } from 'sveltekit-superforms'; - export let form: SuperValidated; + export let form: SuperForm; export let model: ModelInfo; export let cacheLocks: Record = {}; export let formDataCache: Record = {}; - export let data: any = {};