tobogganSe connecter

library

Prebuilt pebble components: drop-in custom elements, no compiler needed

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Dernier runAucun
0Étoiles
0Forks
2Issues

vote 0.1.0: <pebble-vote>, an up/down vote over the server's two forms

The forms stay the vote without JS. With it, a press is painted at once
(counts, aria-pressed, aria-label from data-label, the visible count),
posted with fetch as the same form data asking for JSON, and reconciled
with the server's {"up","down","mine"}; a refusal rolls back and toasts
the server's {"error"} (else the host's error attribute); a 403 or
{"captcha": true} rolls back and submits the form natively, so the
server's page handles the captcha. One vote in flight at a time; the
pressed button bounces for 400ms, not under reduced motion.

Errors use <pebble-toaster>'s inbound toast window event directly:
importing @pebble/toaster's helper would bundle and register the whole
toaster in this bundle.

The sheet is adopted unscoped (scoped: false) and every selector starts
at the tag: inside @scope (pebble-vote) the tag itself does not match
(checked on Chromium), and the same rules ship as dist/vote.css for the
no-JS look.

examples/page-smoke.ts is a shared driver for self-driving fixture pages
(<name>.html + <name>.page.ts); unlike toaster-smoke.ts it stops its dev
server on failure too. The lockfile links the package and catches up
with tablet 0.4.0.

6023 B gz (Δ floor 2003), budget 6900.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 sem. · 25a7d20c1cdcee799682be3d82d01a599c9e40a3

Parents 7ed775b

15 fichiers modifiés, 898 ajouts, 3 suppressions