dyne / slangroom

Enhance zencode smart contracts with your slang
https://dyne.org/slangroom/
GNU Affero General Public License v3.0
5 stars 1 forks source link

Qrcode in the browser #152

Closed matteo-cristino closed 2 months ago

matteo-cristino commented 3 months ago

At the moment the qrcode library that we are using does not run natively in the browser (can be used with module bundlers like Browserify). Maybe it can be worth it to search for some new library that can run also in the browser

puria commented 3 months ago

seems also that you can include the build/ bundle https://www.npmjs.com/package/qrcode#browser

matteo-cristino commented 2 months ago

Using https://dyne.org/slangroom/playground/ with contract

Rule unknown ignore

Given I send text 'text' and create qr code and output into 'result'

Given I have a 'string' named 'result'
Then print the 'result'

and data

{
  "text": "hello"
}

everything seems to works fine 🤷

puria commented 2 months ago

awesome! I guess we can close this then ;p