[pmg-devel] [PATCH pmg-api v3 11/11] pmgproxy: add proxmox-widget-toolkit css path
Stoiko Ivanov
s.ivanov at proxmox.com
Fri Oct 18 16:53:58 CEST 2019
With adding DKIM to the GUI the pmx-hint css class (defined in
proxmox-widget-toolkit) is needed in the GUI, therefore the css-file
needs to be available via pmgproxy
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
src/PMG/Service/pmgproxy.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PMG/Service/pmgproxy.pm b/src/PMG/Service/pmgproxy.pm
index 8dbcf09..6249c55 100755
--- a/src/PMG/Service/pmgproxy.pm
+++ b/src/PMG/Service/pmgproxy.pm
@@ -51,6 +51,7 @@ my $extjs_dir = "/usr/share/javascript/extjs/";
my $fontawesome_dir = "/usr/share/fonts-font-awesome";
my $xtermjs_dir = '/usr/share/pve-xtermjs';
my $framework7_dir = '/usr/share/javascript/framework7';
+my $widgettoolkit_dir = '/usr/share/javascript/proxmox-widget-toolkit';
sub init {
my ($self) = @_;
@@ -80,6 +81,7 @@ sub init {
add_dirs($dirs, '/xtermjs/' => "$xtermjs_dir/");
add_dirs($dirs, '/pmg-docs/' => '/usr/share/pmg-docs/');
add_dirs($dirs, '/pmg-docs/api-viewer/extjs/' => $extjs_dir);
+ add_dirs($dirs, '/pwt/css/' => "$widgettoolkit_dir/css/");
$self->{server_config} = {
title => 'Proxmox Mail Gateway API',
--
2.20.1
More information about the pmg-devel
mailing list