Browse

{total} {total === 1 ? 'image' : 'images'}
{ if (e.key === 'Enter') { if (tagSugIndex >= 0 && tagSugIndex < tagSuggestions.length) { selectTagSug(tagSuggestions[tagSugIndex]); } else { applyFilter(); } } else if (e.key === 'Tab' || e.key === 'ArrowDown') { if (showTagSugs && tagSuggestions.length > 0) { e.preventDefault(); tagSugIndex = (tagSugIndex + 1) % tagSuggestions.length; } } else if (e.key === 'ArrowUp') { if (showTagSugs && tagSuggestions.length > 0) { e.preventDefault(); tagSugIndex = tagSugIndex <= 0 ? tagSuggestions.length - 1 : tagSugIndex - 1; } } else if (e.key === 'Escape') { showTagSugs = false; tagSugIndex = -1; } }} onblur={() => setTimeout(() => { showTagSugs = false; tagSugIndex = -1; }, 200)} /> {#if showTagSugs}
{#each tagSuggestions as s, i} {/each}
{/if}
{ if (e.key === 'Enter') { if (uploaderSugIndex >= 0 && uploaderSugIndex < uploaderSuggestions.length) { selectUploaderSug(uploaderSuggestions[uploaderSugIndex]); } else { applyFilter(); } } else if (e.key === 'Tab' || e.key === 'ArrowDown') { if (showUploaderSugs && uploaderSuggestions.length > 0) { e.preventDefault(); uploaderSugIndex = (uploaderSugIndex + 1) % uploaderSuggestions.length; } } else if (e.key === 'ArrowUp') { if (showUploaderSugs && uploaderSuggestions.length > 0) { e.preventDefault(); uploaderSugIndex = uploaderSugIndex <= 0 ? uploaderSuggestions.length - 1 : uploaderSugIndex - 1; } } else if (e.key === 'Escape') { showUploaderSugs = false; uploaderSugIndex = -1; } }} onblur={() => setTimeout(() => { showUploaderSugs = false; uploaderSugIndex = -1; }, 200)} /> {#if showUploaderSugs}
{#each uploaderSuggestions as s, i} {/each}
{/if}
{#if filterTag || filterUploader} {/if}
{#if loading}

Loading...

{:else if error}

{error}

{:else if images.length === 0}
{#if filterTag || filterUploader}

No results {#if filterTag}for tag “{filterTag}”{/if} {#if filterTag && filterUploader} and {/if} {#if filterUploader}by uploader “{filterUploader}”{/if}.

{:else}

The archive is empty.

UPLOAD MEDIA {/if}
{:else}
{#each images as img, i (img.id)} {/each}
{/if} {#if viewerIndex >= 0} {/if}