expose font-logos via API server and load in UI

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Christoph Heiss 2023-07-05 13:12:47 +02:00 committed by Thomas Lamprecht
parent 2944acf97e
commit 4845cca7e2
3 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,7 @@ my $basedirs = {
docs => '/usr/share/pve-docs',
extjs => '/usr/share/javascript/extjs',
fontawesome => '/usr/share/fonts-font-awesome',
fontlogos => '/usr/share/fonts-font-logos',
i18n => '/usr/share/pve-i18n',
manager => '/usr/share/pve-manager',
novnc => '/usr/share/novnc-pve',
@ -81,6 +82,7 @@ sub init {
add_dirs($dirs, '/pve2/ext6/', "$basedirs->{extjs}/");
add_dirs($dirs, '/pve2/fa/css/' => "$basedirs->{fontawesome}/css/");
add_dirs($dirs, '/pve2/fa/fonts/' => "$basedirs->{fontawesome}/fonts/");
add_dirs($dirs, '/pve2/font-logos/' => "$basedirs->{fontlogos}/");
add_dirs($dirs, '/pve2/images/' => "$basedirs->{manager}/images/");
add_dirs($dirs, '/pve2/js/' => "$basedirs->{manager}/js/");
add_dirs($dirs, '/pve2/locale/', "$basedirs->{i18n}/");

1
debian/control vendored
View File

@ -40,6 +40,7 @@ Depends: apt (>= 1.5~),
cstream,
dtach,
fonts-font-awesome,
fonts-font-logos,
gdisk,
hdparm,
ifupdown2 (>= 3.0) | ifenslave (>= 2.6),

View File

@ -10,6 +10,7 @@
<link rel="stylesheet" type="text/css" href="/pve2/ext6/theme-crisp/resources/theme-crisp-all.css?ver=7.0.0" />
<link rel="stylesheet" type="text/css" href="/pve2/ext6/crisp/resources/charts-all.css?ver=7.0.0" />
<link rel="stylesheet" type="text/css" href="/pve2/fa/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="/pve2/font-logos/css/font-logos.css" />
<link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pve.css?ver=[% version %]" />
<link rel="stylesheet" type="text/css" href="/pwt/css/ext6-pmx.css?ver=[% wtversion %]" />
[%- IF theme != 'crisp' %]