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
| 1 | <!doctype html> |
| 2 | <!-- |
| 3 | Smoke fixture for dist/vote.js on a real engine. Self-driving: vote.page.ts |
| 4 | stubs the server, imports the shipped bundle, presses the buttons and writes |
| 5 | a JSON verdict into <pre id="smoke">. `bun examples/page-smoke.ts vote` |
| 6 | serves this file and reads the verdict out of headless Chromium. |
| 7 | --> |
| 8 | <html lang="fr-CA"> |
| 9 | <head> |
| 10 | <meta charset="utf-8" /> |
| 11 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 12 | <title>vote smoke</title> |
| 13 | <script type="module" src="./vote.page.ts"></script> |
| 14 | </head> |
| 15 | <body> |
| 16 | <pebble-vote error="Le vote n’a pas passé."> |
| 17 | <form method="post" action="/suggestions/42/vote"> |
| 18 | <input type="hidden" name="valeur" value="1" /><input type="hidden" name="csrf" value="tok" /> |
| 19 | <button aria-pressed="false" data-count="12" data-label="Cadeau" aria-label="Cadeau (12)">🎁 <span data-count-label>12</span></button> |
| 20 | </form> |
| 21 | <form method="post" action="/suggestions/42/vote"> |
| 22 | <input type="hidden" name="valeur" value="-1" /><input type="hidden" name="csrf" value="tok" /> |
| 23 | <button aria-pressed="false" data-count="3" data-label="Charbon" aria-label="Charbon (3)">⚫ <span data-count-label>3</span></button> |
| 24 | </form> |
| 25 | </pebble-vote> |
| 26 | <pre id="smoke">PENDING</pre> |
| 27 | </body> |
| 28 | </html> |