Finish 0.2 with barcodescanner for username.
This commit is contained in:
parent
96cadc4f47
commit
4a2d45824f
3 changed files with 7 additions and 4 deletions
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
** 0.2
|
** 0.2
|
||||||
|
|
||||||
- [-] use localStorage to store user
|
- [X] use localStorage to store user
|
||||||
- [ ] add barcode scanner to get the user
|
- [X] add barcode scanner to get the user
|
||||||
- [X] allow editing
|
- [X] allow editing
|
||||||
- [X] add UserSelect component
|
- [X] add UserSelect component
|
||||||
- [X] integrate script for starting build qemu system
|
- [X] integrate script for starting build qemu system
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
(chicken format))
|
(chicken format))
|
||||||
|
|
||||||
;; Short banner
|
;; 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.
|
;; The license of this file and of the whole suite.
|
||||||
(define license "ISC License
|
(define license "ISC License
|
||||||
|
|
|
@ -51,7 +51,10 @@ function NoUserView({setUser}) {
|
||||||
<Card.Text>
|
<Card.Text>
|
||||||
<BarcodeScannerComponent
|
<BarcodeScannerComponent
|
||||||
style={{width: 'auto', height: 'auto'}}
|
style={{width: 'auto', height: 'auto'}}
|
||||||
onUpdate={() => console.log("scanned")}
|
onUpdate={(err, result) => {
|
||||||
|
if (result) {
|
||||||
|
setPreUser(result.text);
|
||||||
|
}}}
|
||||||
delay={1500}
|
delay={1500}
|
||||||
/>
|
/>
|
||||||
</Card.Text>
|
</Card.Text>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue