Skip to content

Commit

Permalink
chore: Remove unused props
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 10, 2024
1 parent 8dabb1a commit 8b536f9
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 21 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
6 changes: 1 addition & 5 deletions frontend/src/lib/components/Forms/OTP/OTPInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,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 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

0 comments on commit 8b536f9

Please sign in to comment.