Add first iteration of the Image DB editor

This commit is contained in:
Oliver 2026-01-18 23:34:24 -07:00
parent 773c506570
commit c7c02702d7
13 changed files with 425 additions and 7 deletions

View file

@ -0,0 +1,30 @@
<div class="inputs">
<label for="{{meta.idp}}-name">
Name (Optional)
</label>
<input
id="{{meta.idp}}-name"
type="text"
name="name"
value="{{image.name}}"
>
<label for="{{meta.idp}}-tags">
Tags (Optional)
</label>
<string-tags
id="{{meta.idp}}-tags"
value="{{image.tags}}"
name="tags"
></string-tags>
<label for="{{meta.idp}}-artists">
Artists (Optional)
</label>
<multi-select
id="{{meta.idp}}-artists"
name="artists"
>
{{ tb-options image.artists artists }}
</multi-select>
</div>

View file

@ -0,0 +1,14 @@
<header>
<div class="row">
<label for="{{meta.idp}}-image">
Image File
</label>
{{!-- TODO: when adding support for editing, make this readonly --}}
<input
type="file"
id="{{meta.idp}}-image"
accept="{{imageTypes}}"
name="file"
>
</div>
</header>

View file

@ -0,0 +1,12 @@
<div class="preview">
{{#if image.path}}
<img
src="{{imageURL}}"
alt=""
>
{{else}}
<span class="placeholder">
Select an image to see the preview
</span>
{{/if}}
</div>