Chore: regenerate docs, lint

This commit is contained in:
Pieter Vander Vennet 2023-12-30 15:24:30 +01:00
parent 7b41b617f6
commit bad0edd4b0
201 changed files with 6044 additions and 1750 deletions

View file

@ -52,7 +52,7 @@
if (maxDistanceInMeters) {
onDestroy(
mla.location.addCallbackD((newLocation) => {
const l : [number, number] = [newLocation.lon, newLocation.lat]
const l: [number, number] = [newLocation.lon, newLocation.lat]
const c: [number, number] = [initialCoordinate.lon, initialCoordinate.lat]
const d = GeoOperations.distanceBetween(l, c)
if (d <= maxDistanceInMeters) {

View file

@ -79,9 +79,9 @@
},
[valuesign, beta]
)
function onSave(){
if(_value.data){
function onSave() {
if (_value.data) {
value.setData(_value.data)
}
}
@ -100,10 +100,8 @@
</div>
</div>
<button class="primary" on:click={() => onSave()}>
Select this incline
</button>
<button class="primary" on:click={() => onSave()}>Select this incline</button>
<div>
<Tr t={Translations.t.validation.slope.inputExplanation} />
</div>

View file

@ -39,7 +39,10 @@
{#if availableLanguages?.length > 1}
<form class={twMerge("flex max-w-full items-center pr-4", clss)}>
<label class="neutral-label flex max-w-full" use:ariaLabel={Translations.t.general.pickLanguage}>
<label
class="neutral-label flex max-w-full"
use:ariaLabel={Translations.t.general.pickLanguage}
>
<LanguageIcon class="mr-1 h-4 w-4 shrink-0" aria-hidden="true" />
<Dropdown cls="max-w-full" value={assignTo}>
{#if preferredFiltered}

View file

@ -101,7 +101,7 @@
if (_value.data !== fromUpstream && fromUpstream !== "") {
_value.setData(fromUpstream)
}
}),
})
)
} else {
// Handled by the UnitInput
@ -115,7 +115,7 @@
Utils.sortedByLevenshteinDistance(
type,
Validators.AllValidators.map((v) => v.name),
(v) => v,
(v) => v
)
.slice(0, 5)
.join(", ")
@ -135,17 +135,16 @@
}
}
}
</script>
{#if validator?.textArea}
<textarea
class="w-full"
bind:value={$_value}
inputmode={validator?.inputmode ?? "text"}
placeholder={_placeholder}
bind:this={htmlElem}
/>
<textarea
class="w-full"
bind:value={$_value}
inputmode={validator?.inputmode ?? "text"}
placeholder={_placeholder}
bind:this={htmlElem}
/>
{:else}
<div class={twMerge("inline-flex", cls)}>
<input