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

[Feature] Add an option to show the pastefy url as qr code #63

Open
arpanghosh8453 opened this issue Jan 30, 2024 · 3 comments
Open

[Feature] Add an option to show the pastefy url as qr code #63

arpanghosh8453 opened this issue Jan 30, 2024 · 3 comments

Comments

@arpanghosh8453
Copy link

I love the design and UI of this program, and it's packed with features I really need ( i.e., login with Google and admin control, fork option, expiry, etc.)

The only missing feature here is a QR code preview of the copied login URL so that I can open it easily from another device without clipboard sync or texting myself the URL. I like the fact that the URL is randomly generated with a length of 8 chars ( safe enough for brute force - although an env variable to adjust the random character length will be GREAT! if possible ), but it's hard to type in the combination on another device.

If this is an easy implementation, please add this feature. Thank you so much for making this awesome piece of software :)

@arpanghosh8453
Copy link
Author

It can be as simple as integrating a link button redirecting to this https://goqr.me/api/ with the data as the generated url.

@JulianFun123
Copy link
Member

Adding qr codes would be simple. That's not the problem. The question is where to put a button for it in the already overloaded UI for a feature that only will be used by some few users.

@arpanghosh8453
Copy link
Author

Thank you for getting back to me! I was thinking somewhere like here 👍

image

I think that's a fair spot, and that will be fine with mobile design too.

About your concern of "where to put a button for it in the already overloaded UI", I have a few suggestions.

  1. Make it optional. Have a optional ( default disabled ) flag for the feature like PASTEFY_ENABLE_QR
  2. Don't add it to the UI at all, just have an endpoint like /qr-code after the slug ( i.e. https://host.domain.com/slug-here/qr-code ) to get the QR code like other applications/url-shorteners do

I think this is an useful feature because I can quickly open the link on my mobile and don't have to share the url via messaging apps for myself. And this is the only feature I miss from microbin.

If it's not complicated to implement, and you have some time, please let me know if this can be added to this awesome application :)

Thanks again!

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

No branches or pull requests

2 participants