https://github.com/pyhedgehog/saltcorn-edit-qrcode
Saltcorn plugin: Allow to view URL (or any string field) as a QR-Code image
https://github.com/pyhedgehog/saltcorn-edit-qrcode
Last synced: 4 months ago
JSON representation
Saltcorn plugin: Allow to view URL (or any string field) as a QR-Code image
- Host: GitHub
- URL: https://github.com/pyhedgehog/saltcorn-edit-qrcode
- Owner: pyhedgehog
- License: mit
- Created: 2023-09-04T02:38:31.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T23:05:48.000Z (over 1 year ago)
- Last Synced: 2024-02-23T22:02:16.203Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/saltcorn-qrcode
- Size: 46.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# saltcorn-edit-qrcode
This is Saltcorn plugin, to use it you need install it into your saltcorn instance/tenant.
It adds to `String` type fieldview able to show it as QRcode SVG image.
## Usage
In any view (List/Show/Edit will work) add Field element, select text field and select `qrcode` in "Field view".
There are very limited configurations:
- Size - both width and height in pixels.
- Border - boolean to enable single-block border## TODO
- Implement alternative implementations:
- Server-side SVG generation (i.e. package [pure-svg-code](https://github.com/gwuhaolin/pure-svg-code) found)
- Pure browser-side SVG generation (i.e. package [qrcode-svg](https://github.com/datalog/qrcode-svg) found)
- Preformatted text format ([uqr](https://github.com/unjs/uqr).`renderUnicodeCompact()` function)
- Think if more configuration needed (border size 0-4 instead of 0-1, colors (bg/fg), error correction level)