Skip to content

Commit

Permalink
Chore/remove unused props (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Dec 10, 2024
2 parents 0a3ea3f + 8b536f9 commit 8bee503
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 25 deletions.
2 changes: 0 additions & 2 deletions frontend/src/lib/components/Chart/TimeSeriesChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
resolve: (x) => x
};
export let cachedValue: any[] | undefined = undefined;
export let createFromSelection = false;
const { value, errors, constraints } = formFieldProxy(form, field);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
export let cacheLocks: Record<string, CacheLock> = {};
export let formDataCache: Record<string, any> = {};
export let initialData: Record<string, any> = {};
export let context: string;
</script>

<AutocompleteSelect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<script lang="ts">
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<any>;
export let model: ModelInfo;
export let cacheLocks: Record<string, CacheLock> = {};
export let formDataCache: Record<string, any> = {};
export let initialData: Record<string, any> = {};
</script>

<TextField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<script lang="ts">
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<any>;
export let form: SuperForm<any>;
export let model: ModelInfo;
export let cacheLocks: Record<string, CacheLock> = {};
export let formDataCache: Record<string, any> = {};
export let data: any = {};
</script>

<Select
Expand Down
8 changes: 1 addition & 7 deletions frontend/src/lib/components/Forms/OTP/OTPInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
export let form: SuperForm<Record<string, string>>;
export let numOfInputs: number = 6;
export let separator = '';
export let disableDefaultStyle = false;
export let inputClass = '';
export let wrapperClass = '';
export let separatorClass = '';
Expand Down Expand Up @@ -68,11 +67,7 @@
{/each}
</div>
{/if}
<div
class={`${disableDefaultStyle ? '' : 'wrapper'} ${wrapperClass}`}
style={wrapperStyle}
on:keyup={keyUpHandler}
>
<div class={`wrapper ${wrapperClass}`} style={wrapperStyle} on:keyup={keyUpHandler}>
{#each codes as value, i (i)}
<OTPItem
num={numberOnly}
Expand All @@ -81,7 +76,6 @@
index={i}
bind:codes
{inputs}
nostyle={disableDefaultStyle}
className={inputClass}
style={inputStyle}
placeholder={placeholders[i]}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/lib/components/Forms/OTP/OTPItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/lib/components/ModelTable/ModelTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
export let pagination = true;
export let numberRowsPerPage = 10;
export let thFiler = false;
export let tags = true;
export let orderBy: { identifier: string; direction: 'asc' | 'desc' } | undefined = undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
export let title = 'activity';
export let status = '';
export let meta = null;
export let href = '#';
export let accent_color = '';
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script lang="ts">
import type { PageData } from './$types';
export let data: PageData;
import TimeSeriesChart from '$lib/components/Chart/TimeSeriesChart.svelte';
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
const modalStore: ModalStore = getModalStore();
export let totp;
export let _form;
export let formAction: string;
Expand Down

0 comments on commit 8bee503

Please sign in to comment.