token2 / authy-migration

Migrating from Authy to Token2 hardware tokens or alternative TOTP Apps, including WinAuth or Raivo OTP
https://www.token2.swiss/site/page/how-to-transfer-totp-profiles-from-authy-to-a-token2-hardware-token
MIT License
172 stars 10 forks source link

HTML export improvements #1

Closed miken32 closed 1 year ago

miken32 commented 1 year ago

Dunno if this is still maintained, but I made use of it today so thought I'd contribute back.

The main goal was some more functional HTML output. Blurring out the QR codes makes it easier to take a picture of a single code on the screen, and putting them in a grid makes it easier to find the ones you're looking for without lots of scrolling.

While I was adding that, I noticed the code was a bit of a mess so I cleaned it up some. Whitespace is now consistent, files are not getting opened and closed inside a loop, and there's less repetition.

This worked nicely for me to grab my tokens, thanks!

token2 commented 1 year ago

Dunno if this is still maintained, but I made use of it today so thought I'd contribute back.

The main goal was some more functional HTML output. Blurring out the QR codes makes it easier to take a picture of a single code on the screen, and putting them in a grid makes it easier to find the ones you're looking for without lots of scrolling.

While I was adding that, I noticed the code was a bit of a mess so I cleaned it up some. Whitespace is now consistent, files are not getting opened and closed inside a loop, and there's less repetition.

This worked nicely for me to grab my tokens, thanks!

Thanks a lot - the change was reviewed and added to the code.