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:
@@ -588,7 +588,7 @@
|
||||
type="password" autocomplete="off">
|
||||
<div class="in-x" data-clear="sPwd">×</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');
|
||||
|
||||
Reference in New Issue
Block a user