Improve source view and add qrcode for urls

The qr-code for urls is added so that these urls are easy to copy into
a phone. Then buttons for copying them into the clipboard have been
added.
This commit is contained in:
Eike Kettner
2020-08-03 23:58:41 +02:00
parent ed8f16fe73
commit dbd27057d1
9 changed files with 257 additions and 148 deletions

View File

@ -616,9 +616,10 @@ def compileElm(
def createWebjarSource(wj: Seq[ModuleID], out: File): Seq[File] = {
val target = out / "Webjars.scala"
val badChars = "-.".toSet
val fields = wj
.map(m =>
s"""val ${m.name.toLowerCase.filter(_ != '-')} = "/${m.name}/${m.revision}" """
s"""val ${m.name.toLowerCase.filter(c => !badChars.contains(c))} = "/${m.name}/${m.revision}" """
)
.mkString("\n\n")
val content = s"""package docspell.restserver.webapp