Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add barcode reader widget to qrcode plugin #7746

Merged
merged 2 commits into from Oct 14, 2023
Merged

Add barcode reader widget to qrcode plugin #7746

merged 2 commits into from Oct 14, 2023

Conversation

Jermolene
Copy link
Owner

This PR uses the open source library https://github.com/mebjas/html5-qrcode to add barcode reading capabilities to the existing QR code plugin.

It can read barcodes in a wide variety of formats using the device camera or directly from a file.

Try out the preview here

Screenshot 2023-09-16 at 12 04 08

@vercel
Copy link

vercel bot commented Sep 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tiddlywiki5 ✅ Ready (Inspect) Visit Preview Sep 19, 2023 2:09pm

@linonetwo
Copy link
Contributor

@Jermolene
Copy link
Owner Author

I've an implementation https://github.com/tiddly-gittly/tw-mobile-sync/blob/master/src/tw-mobile-sync/scan-qr-widget.ts

Great stuff @linonetwo, I should have been able to guess that this existed.

Do you think there are advantages to the library that you chose?

@linonetwo
Copy link
Contributor

No, seems html5-qrcode is maintained batter https://npmtrends.com/html5-qrcode-vs-jsqr-es6 , I haven't look at html5-qrcode carefully before, otherwise I will choose it too.

I will replace my usage with your one, after this is merged.

@Jermolene Jermolene marked this pull request as ready for review October 14, 2023 08:42
@Jermolene Jermolene merged commit 96b0543 into master Oct 14, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants