Finish 0.2 with barcodescanner for username.

This commit is contained in:
Dominik Pantůček 2025-04-16 20:54:32 +02:00
parent 96cadc4f47
commit 4a2d45824f
3 changed files with 7 additions and 4 deletions

View file

@ -4,8 +4,8 @@
** 0.2
- [-] use localStorage to store user
- [ ] add barcode scanner to get the user
- [X] use localStorage to store user
- [X] add barcode scanner to get the user
- [X] allow editing
- [X] add UserSelect component
- [X] integrate script for starting build qemu system

View file

@ -38,7 +38,7 @@
(chicken format))
;; Short banner
(define banner-line "BrmInv 0.1 (c) 2023-2025 Brmlab, z.s.")
(define banner-line "BrmInv 0.2 (c) 2023-2025 Brmlab, z.s.")
;; The license of this file and of the whole suite.
(define license "ISC License

View file

@ -51,7 +51,10 @@ function NoUserView({setUser}) {
<Card.Text>
<BarcodeScannerComponent
style={{width: 'auto', height: 'auto'}}
onUpdate={() => console.log("scanned")}
onUpdate={(err, result) => {
if (result) {
setPreUser(result.text);
}}}
delay={1500}
/>
</Card.Text>