feat(apk): scanner le QR du poste depuis l'app (ZXing.Delphi, Apache 2.0)

Le scanner du systeme demandait avec quoi ouvrir le lien. L'app ouvre la
camera arriere, decode une image sur quatre et remplit URL + jeton des
qu'un lien pmserver://sync est lu. Rien n'est enregistre avant Save.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-09-17 18:38:41 +01:00
parent 780eecc11b
commit dd9fd62dcb
81 changed files with 22141 additions and 19 deletions
+3 -3
View File
@@ -588,7 +588,7 @@
type="password" autocomplete="off">
<div class="in-x" data-clear="sPwd">&#215;</div>
</div>
<button class="btn wide" id="sPaste">Paste settings (QR from the PC)</button>
<button class="btn wide" id="sScan">Scan the QR shown on the PC</button>
<button class="btn wide main" id="sSave">Save</button>
<div class="note">The sync password never leaves this device. It is what
encrypts the copy kept in the repository, so it must be the same on every
@@ -1666,8 +1666,8 @@ function normalizeRepoUrl(u) {
if (!m) return u;
return m[1] + '/api/v1/repos/' + m[2] + '/' + m[3] + '/contents/' + (m[4] || 'vault-sync.json');
}
document.getElementById('sPaste').addEventListener('click', function () {
send('pastecfg');
document.getElementById('sScan').addEventListener('click', function () {
send('scanqr');
});
document.getElementById('sSave').addEventListener('click', function () {
var sUrl = document.getElementById('sUrl');