[pmg-devel] [PATCH api 6/6] provide qrcode.min.js from libjs-qrcodejs

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Nov 26 14:55:10 CET 2021


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 debian/control              | 1 +
 src/PMG/Service/pmgproxy.pm | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/debian/control b/debian/control
index c643e5a..8695996 100644
--- a/debian/control
+++ b/debian/control
@@ -55,6 +55,7 @@ Depends: apt (>= 2~),
          libhtml-parser-perl,
          libhtml-scrubber-perl,
          libhtml-tree-perl,
+         libjs-qrcodejs (>= 1.20201119),
          liblockfile-simple-perl,
          libmail-spf-perl,
          libmime-tools-perl,
diff --git a/src/PMG/Service/pmgproxy.pm b/src/PMG/Service/pmgproxy.pm
index 8a8a9d0..0efde23 100755
--- a/src/PMG/Service/pmgproxy.pm
+++ b/src/PMG/Service/pmgproxy.pm
@@ -118,6 +118,9 @@ sub init {
 	    '/proxmoxlib.js' => {
 		file => '/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js',
 	    },
+	    '/qrcode.min.js' => {
+		file => '/usr/share/javascript/qrcodejs/qrcode.min.js',
+	    },
 	},
 	dirs => $dirs,
     };
-- 
2.30.2





More information about the pmg-devel mailing list