Merge branch 'dev' of git.odit.services:lfk/frontend into dev
This commit is contained in:
@@ -389,6 +389,12 @@
|
||||
:paused={!scannerActive}
|
||||
on:detect={(e) => {
|
||||
if (scannerActive) {
|
||||
if (`${e.detail.decodedText}`.length === 13) {
|
||||
e.detail.decodedText = e.detail.decodedText.substring(
|
||||
0,
|
||||
e.detail.decodedText.length - 1
|
||||
);
|
||||
}
|
||||
scannerActive = false;
|
||||
console.log({ type: "DETECT", code: e.detail.decodedText });
|
||||
if (runnerinfo.id === 0) {
|
||||
|
||||
@@ -7,3 +7,21 @@
|
||||
* {
|
||||
font-family: Athiti;
|
||||
}
|
||||
.html5-qrcode-element {
|
||||
@apply block;
|
||||
@apply w-full;
|
||||
@apply p-4;
|
||||
}
|
||||
#qr-scanner__dashboard_section_csr {
|
||||
/* padding-right: 20px; */
|
||||
padding: 1rem;
|
||||
}
|
||||
#html5-qrcode-select-camera {
|
||||
@apply px-2 py-2 inline-flex text-lg leading-5 font-semibold rounded-md border border-current bg-neutral-100 text-neutral-800 mb-2;
|
||||
}
|
||||
#html5-qrcode-button-camera-start {
|
||||
@apply px-2 inline-flex text-lg leading-5 font-semibold rounded-md border border-current bg-green-100 text-green-800 mb-2 cursor-pointer;
|
||||
}
|
||||
#html5-qrcode-button-camera-stop {
|
||||
@apply px-2 inline-flex text-lg leading-5 font-semibold rounded-md border border-current bg-red-100 text-red-800 mb-2 cursor-pointer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user