GithubHelp home page GithubHelp logo

notifyme-app / notifyme-webpages Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 4.29 MB

Webpages to generate QR codes for a decentralised check-in system for meetings and events

Home Page: https://notify-me.ch

License: Mozilla Public License 2.0

SCSS 22.29% JavaScript 45.28% Python 3.14% HTML 29.29%

notifyme-webpages's People

Contributors

ineiti avatar martinalig avatar simonroesch avatar ubhaller avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

notifyme-webpages's Issues

Prompt for backchannel in QR code generation

It would be good practice to publish a backchannel on how to notify the event organizer in the qr code. For this the field "Zusatz" can be used very easily.

It would be good to indicate that during code generation.

Statements like: "Bei einer Covid19-Infektion bitte bei [email protected] oder +41 1234567890 melden."

As this information is stored in the diary, it is easily accessible from within the app.

Include notifyer url into private QR-Code pdf

Especially, when the QR codes are generated on a laptop or desktop computer it would be nice to have a clickable link for the private QR code in the pdf.

This would help a lot to notify customers as a simple left click in the safely stored pdf is sufficient to access the notification form.

My first intuition would be to show the full url (like the randomly generated below) in a small or tiny font and make the link clickable.

https://upload.notify-me.ch?v=2#WahC4ahRi6eepaiKahBohs9taehoo2ooteRuwietheelielauch2riethiexiel7fohseeja1eebiu8seikoh6ooXaquaelu1uquuolashaeLeeg0zuu5meeyef5aim0iBae5mohShohy7bieweihieShaise9ohhei4eeRei1ieWohY7jaic6ooqu0eerah0ahyoinoim1ham2ailaebahvocaiteinge7Eosengiep1Ier7Do3EshahcheiPohf1uyaek2waaf6aixengi2aifiehaCu7Quufie9Ohhaev6hohh8uiyeeTechigh1cau7quu3ji8ge7Iezo9ieme0yan9Yae4uF7chei0maChahZee7Eo0gietho1een8ohBa4aiWoCh8ohbooDuo0thei3see4aephoM4eo3ciesaeloop7IWo7ioz6ooshuushou0veithae2eigah2geelag3Zothuo1TahquuuWuoPumei1oobeiCohphaivai

Language selection on upload page losing key in URL

Hello,

I've tried the app and it's great, I've just found a small issue.

When visiting the upload page (e.g. https://upload.notify-me.ch/?v=2#CAIS2AIKY...) and clicking the FR or EN link, the user gets redirected to the page without the key in the URL (https://upload.notify-me.ch/fr/) resulting in an error when trying to submit.

I'm not familiar with Hugo so I don't know the best way to fix it, maybe changing the links on page load to add the key here:

Also it may also be better to include the user's language in the generated QR code:

`${UPLOAD_URL}#${privateMessage}`,

Upload tracekeys endpoint

Uploading page is calling to backend endpoint: /v1/debug/traceKey

"build:prod:js": "webpack --config webpack.prod.js --env BASE_URL='https://qr.notify-me.ch?v=2' --env PUBLIC_KEY='b83ddb8ea6b76efe407d1006a42ed5f450f2c75120ac676aadf08f874745590b' --env UPLOAD_URL='https://upload.notify-me.ch?v=2' --env POST_URL='https://app-prod-ws.notify-me.ch/v1/debug/traceKey' --env GIT_INFO=\"$(git log -1 --format='%h, %ad' --date=format:'%d.%m.%Y, %H:%M')\"",

Backend project has two diferents endpoints for uploading:

  • For testing: /v1/debug/traceKey
  • For normal running: /v1/traceKey

So I assume that its's needed to change this endpoint reference from debug to the other.
Both endpoints accepts differents parameters and we dont know how to calculate them:

byte[] identity
byte[] secretKeyForIdentity;
byte[] message;
byte[] nonce;

PDF QR code: Uneven pixel aspect ratios

QR Pixels in the QR code embedded in the PDF are not always square, not always the same size. In the PDF I generated, pixel width/height is either 0.70 or 1.05 mm, suggesting 2x2, 2x3, 3x2, and 3x3 arrangements of "subpixels". This reduces the chance/speed of having the QR code scanned successfully.

I would guess that the QR code is rendered into a bitmap which is not an even multiple of the QR pixel (called "squares" here, but I avoid this term in this issue for obvious reasons). Then, this bitmap is included into the PDF.

I suggest switching to a QR code generator which creates vector graphic output; a fallback alternative would be to render it to a bitmap with exactly the number of pixels of the QR code.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.