chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2024-08-14 13:53:56 +02:00
parent f77570589d
commit 9b8a9337fd
111 changed files with 2911 additions and 1280 deletions

View file

@ -21,7 +21,7 @@
class={$classnames}
>
{#if $icon}
<Icon clss="w-4 h-4" icon={$icon}/>
{/if}
<Icon clss="w-4 h-4" icon={$icon} />
{/if}
{@html $text}
</a>

View file

@ -2,7 +2,7 @@ import { Utils } from "../../Utils"
import BaseUIElement from "../BaseUIElement"
/**
* @deprecated
*/
*/
export default class Img extends BaseUIElement {
private readonly _src: string
private readonly _rawSvg: boolean

View file

@ -12,14 +12,13 @@
export let cls = "m-0.5 p-0.5 sm:p-1 md:m-1"
export let enabled: Store<boolean> = new ImmutableStore(true)
export let arialabel: Translation = undefined
export let arialabelDynamic : Store<Translation> = new ImmutableStore(arialabel)
let arialabelString = arialabelDynamic.bind(tr => tr?.current)
export let arialabelDynamic: Store<Translation> = new ImmutableStore(arialabel)
let arialabelString = arialabelDynamic.bind((tr) => tr?.current)
export let htmlElem: UIEventSource<HTMLElement> = undefined
let _htmlElem: HTMLElement
$: {
htmlElem?.setData(_htmlElem)
}
</script>
<button

View file

@ -40,10 +40,7 @@
style={svelteElem.getStyle()}
/>
{:else}
<svelte:component
this={svelteElem?._svelteComponent}
{...svelteElem._props}
/>
<svelte:component this={svelteElem?._svelteComponent} {...svelteElem._props} />
{/if}
{:else}
<span bind:this={elem} />

View file

@ -21,14 +21,14 @@
{#if $txt}
{#if cls}
<span class={cls}>
<span lang={$lang}>
{@html Utils.purify($txt)}
<span class={cls}>
<span lang={$lang}>
{@html Utils.purify($txt)}
</span>
<WeblateLink context={t?.context} />
</span>
<WeblateLink context={t?.context} />
</span>
{:else}
<span lang={$lang}>
<span lang={$lang}>
{@html Utils.purify($txt)}
</span>
<WeblateLink context={t?.context} />

View file

@ -31,7 +31,7 @@
target="_blank"
tabindex="-1"
>
<LanguageIcon class="font-gray"/>
<LanguageIcon class="font-gray" />
</a>
{/if}
{/if}