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

QR codes for Gora Sail #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dozzod
Copy link

@dozzod dozzod commented Dec 10, 2022

First draft of the gora qr apprenticeship for the sail version. JS Version will follow soon ™️.

This includes a QR encoder fully written in Hoon. The decoder still uses external JS libraries for now.

QRs can be generated from the /voyer page with a maximum duration (in hours), with 0 being infinity. Another ship can then claim a code by going to the /plead page and pointing their webcam / phone on the QR.

The frontend might be a bit clunky, let me know if any improvements can be made or if anything is unclear in general.

Screenshot 2022-12-10 at 19-18-46 ゴラ - Warrior


=/ arglist (malt args)
=/ gor-id=@uv
:: TODO: @reviewers I replaced this with !! to avoid unwrapping
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment here

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use +got:by instead. (Note that this is not a comment on whether crashing on non existence is safe in this context, it’s strictly a code style comment.)

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.

2 participants