feat(account): web item giver with colour pickers, den variants, tints and previews

/account/items, linked from the account page and using its sign-in, gives
items to the account signed in:

- clothing: the item's own colours, or four colours of your own as a
  picker, #RRGGBB, or AJ's numbers (palette places, or the whole item's
  colour id signed or unsigned), converted as you type; hex colours not in
  the palette become an exact custom colour
- den items: the variants their art has (lib/den-variants.json, made by
  tools/den-variants.sh) and a whole-item tint with a strength, kept in the
  item's version above the variant and drawn by DenItemHelper (build 83)
- a preview of each: clothing icons coloured on the page as the game
  colours them, den items played by Ruffle in a sandboxed frame through
  public/item-preview.swf (tools/preview-host)

a give with a custom colour id that does not exist is refused.
This commit is contained in:
Burrowdev committed 2026-10-23 19:14:49 +03:00
1 parent 44af83f1c5
commit 7cfef493fa
18 files changed
+1958 -7

No files matched your search

+3
View File
@@ -94,6 +94,8 @@
transition: background 0.12s, border-color 0.12s, color 0.12s;
}
button:hover { background: var(--raised); border-color: #555; }
a.button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 8px; white-space: nowrap; text-decoration: none; }
a.button:hover { background: var(--raised); border-color: #555; }
button:disabled { opacity: 0.45; cursor: default; }
button:focus-visible, a:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
button.primary { font-weight: 700; color: #000; background: var(--text); border-color: var(--text); }
@@ -225,6 +227,7 @@
<header>
<img class="mark" src="/logo.png" alt="">
<h1 id="title"></h1>
<a class="button" id="item-giver" href="/account/items">Item giver</a>
<button id="sign-out" type="button">Sign out</button>
</header>