Vote-time presence scan, rescue codes, websocket heartbeat
Each vote can require N fresh codes read off the projector (default 3, off for rooms without a projector); voters enrolled with a paper or rescue code are exempt. Rescue codes enroll a phone without camera. Projector keeps the QR up while such a vote is open. Server pings every socket every 25s so proxies keep them open. Composer no longer closes on enter. Schema migrates existing databases.
This commit is contained in:
+23
-1
@@ -29,6 +29,7 @@
|
||||
</div>
|
||||
<p id="scan-msg" class="scan-msg muted"></p>
|
||||
<button id="start-cam" class="primary block" type="button">Activer la caméra</button>
|
||||
<button id="no-cam" class="link" type="button">Caméra indisponible ?</button>
|
||||
</div>
|
||||
<p class="hint center">Vote anonyme</p>
|
||||
</section>
|
||||
@@ -37,7 +38,7 @@
|
||||
<div class="card">
|
||||
<p>Saisissez votre code papier.</p>
|
||||
<form id="code-form">
|
||||
<input id="code" type="text" inputmode="text" autocomplete="one-time-code" autocapitalize="characters"
|
||||
<input id="code" type="text" autocomplete="one-time-code" autocapitalize="characters"
|
||||
maxlength="12" placeholder="XXXX-XXXX" aria-label="Code d'accès">
|
||||
<div class="actions"><button class="primary block" type="submit">Valider</button></div>
|
||||
</form>
|
||||
@@ -45,6 +46,19 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="v-rescue" hidden>
|
||||
<div class="card">
|
||||
<p>Saisissez le code de secours remis par l'équipe organisatrice.</p>
|
||||
<form id="rescue-form">
|
||||
<input id="rescue-code" type="text" autocomplete="one-time-code" autocapitalize="characters"
|
||||
maxlength="12" placeholder="XXXX-XXXX" aria-label="Code de secours">
|
||||
<div class="actions"><button class="primary block" type="submit">Valider</button></div>
|
||||
</form>
|
||||
<p id="rescue-msg" class="scan-msg"></p>
|
||||
<button id="rescue-back" class="link" type="button">Revenir au scan</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="v-blocked" hidden>
|
||||
<div class="notice bad" id="blocked-msg"></div>
|
||||
</section>
|
||||
@@ -68,5 +82,13 @@
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<dialog id="presence">
|
||||
<h2>Visez l'écran</h2>
|
||||
<div id="p-ring" class="dots"></div>
|
||||
<div class="cam"><video id="p-video" playsinline muted></video></div>
|
||||
<p id="p-msg" class="scan-msg bad"></p>
|
||||
<div class="actions"><button id="p-cancel" type="button">Annuler</button></div>
|
||||
</dialog>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user