forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
f77570589d
commit
9b8a9337fd
111 changed files with 2911 additions and 1280 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
target="_blank"
|
||||
tabindex="-1"
|
||||
>
|
||||
<LanguageIcon class="font-gray"/>
|
||||
<LanguageIcon class="font-gray" />
|
||||
</a>
|
||||
{/if}
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue