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

@@ -83,3 +83,13 @@ elmApp.ports.requestUiSettings.subscribe(function(args) {
}
}
});
var docspell_clipboards = {};
elmApp.ports.initClipboard.subscribe(function(args) {
var page = args[0];
if (!docspell_clipboards[page]) {
var sel = args[1];
docspell_clipboards[page] = new ClipboardJS(sel);
}
});