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

@ -14,7 +14,7 @@
export let image: ProvidedImage
export let clss: string = undefined
let isLoaded = new UIEventSource(false)
async function download() {
const response = await fetch(image.url_hd ?? image.url)
@ -28,11 +28,11 @@
<div class={twMerge("relative h-full w-full", clss)}>
<div class="panzoom-container focusable absolute top-0 left-0 h-full w-full overflow-hidden">
{#if !$isLoaded}
<div class="w-full h-full flex items-center justify-center">
<Loading/>
<div class="flex h-full w-full items-center justify-center">
<Loading />
</div>
{/if}
<ImagePreview {image} {isLoaded}/>
{/if}
<ImagePreview {image} {isLoaded} />
</div>
<div
class="pointer-events-none absolute bottom-0 left-0 flex w-full flex-wrap items-end justify-between"

View file

@ -26,5 +26,11 @@
}
</script>
<img bind:this={panzoomEl} class="panzoom-image h-fit w-fit" on:load={() => {isLoaded?.setData(true)}}
src={image.url_hd ?? image.url} />
<img
bind:this={panzoomEl}
class="panzoom-image h-fit w-fit"
on:load={() => {
isLoaded?.setData(true)
}}
src={image.url_hd ?? image.url}
/>

View file

@ -27,31 +27,31 @@
<LoginToggle {state}>
<div class="my-4">
{#if expanded}
<NearbyImages {tags} {state} {lon} {lat} {feature} {linkable} {layer}>
{#if expanded}
<NearbyImages {tags} {state} {lon} {lat} {feature} {linkable} {layer}>
<button
slot="corner"
class="no-image-background h-6 w-6 cursor-pointer border-none p-0"
use:ariaLabel={t.close}
on:click={() => {
expanded = false
}}
>
<XCircleIcon />
</button>
</NearbyImages>
{:else}
<button
slot="corner"
class="no-image-background h-6 w-6 cursor-pointer border-none p-0"
use:ariaLabel={t.close}
class="flex w-full items-center"
style="margin-left: 0; margin-right: 0"
on:click={() => {
expanded = false
expanded = true
}}
aria-expanded={expanded}
>
<XCircleIcon />
<Camera_plus class="mr-2 block h-8 w-8 p-1" />
<Tr t={t.seeNearby} />
</button>
</NearbyImages>
{:else}
<button
class="flex w-full items-center"
style="margin-left: 0; margin-right: 0"
on:click={() => {
expanded = true
}}
aria-expanded={expanded}
>
<Camera_plus class="mr-2 block h-8 w-8 p-1" />
<Tr t={t.seeNearby} />
</button>
{/if}
{/if}
</div>
</LoginToggle>

View file

@ -79,7 +79,7 @@
>
<Tr t={t.currentLicense.Subs({ license: $licenseStore })} />
</button>
<br/>
<br />
<Tr t={t.respectPrivacy} />
</div>
</div>