Add bunker login for desktop via QR code

This commit is contained in:
2026-04-19 16:01:45 +04:00
parent 99d8ca9174
commit 6cfe2b40b9
6 changed files with 172 additions and 4 deletions

17
app/modifiers/qr-code.js Normal file
View File

@@ -0,0 +1,17 @@
import { modifier } from 'ember-modifier';
import QRCode from 'qrcode';
export default modifier((element, [text]) => {
if (text) {
QRCode.toCanvas(element, text, {
width: 256,
margin: 2,
color: {
dark: '#000000',
light: '#ffffff',
},
}).catch((err) => {
console.error('Failed to generate QR code', err);
});
}
});