-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add GraniteQRCodeGenerator and all needed dependencies
- Loading branch information
1 parent
c705ea0
commit ac8e05f
Showing
8 changed files
with
819 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/project/ | ||
/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import sbt._ | ||
|
||
object GraniteQRCodeGenerator { | ||
|
||
val qrcodeVersion = "1.1.4" | ||
|
||
/** Granite QRCode Generator | ||
* https://www.webcomponents.org/element/LostInBrittany/granite-qrcode-generator | ||
* | ||
* https://mvnrepository.com/artifact/org.webjars.bowergithub.lostinbrittany/granite-qrcode-generator/1.1.4 | ||
* | ||
* intransitive, because of the reference to org.webjars.bowergithub.lifthrasiir » qr.js [0.0.20110119... | ||
* is not available in repositories | ||
* | ||
* Content manually copied to frontend/bower_components/qrjs | ||
* | ||
*/ | ||
|
||
val qrcode = "org.webjars.bowergithub.lostinbrittany" % "granite-qrcode-generator" % qrcodeVersion intransitive() | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/scala/org/scala_vienna/raffle/GraniteQRCodeGenerator.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.scala_vienna.raffle | ||
|
||
import com.vaadin.flow.component.dependency.HtmlImport | ||
import com.vaadin.flow.component.{Component, Tag} | ||
|
||
@Tag("granite-qrcode-generator") | ||
@HtmlImport("bower_components/granite-qrcode-generator/granite-qrcode-generator.html") | ||
class GraniteQRCodeGenerator extends Component { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/webapp/frontend/bower_components/qrjs/.bower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "qrjs", | ||
"homepage": "https://github.com/lifthrasiir/qr.js", | ||
"version": "0.0.20110119", | ||
"_release": "0.0.20110119", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v0.0.20110119", | ||
"commit": "b3d7fdedeb909f9b12b8435697d75175d961cbc6" | ||
}, | ||
"_source": "git://github.com/lifthrasiir/qr.js.git", | ||
"_target": "*", | ||
"_originalSource": "lifthrasiir/qr.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# qr.js: QR code generator in pure Javascript (2011) | ||
|
||
This is a fairly standalone script for producing QR code on the fly. | ||
Originally developed for my own interest, the code is fully commented and well-structured. | ||
The code is in the public domain (or to be exact, [Creative Commons Zero](https://creativecommons.org/publicdomain/zero/1.0/)), | ||
and you can use it for absolutely any purpose. | ||
|
||
See also a [node.js module based on qr.js](https://github.com/shesek/qruri), packaged by Nadav Ivgi. |
Oops, something went wrong.