9 Commits

Author SHA1 Message Date
Dominik Csapak
a35b03828e add the css/images from proxmox widget toolkit
add the dirs to the proxy and the css file to the index template

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-08-13 15:38:39 +02:00
Thomas Lamprecht
a7c888c78a ui: include qrcode and u2f libs also if debug is on
because it's really not ideal if enabling debug breaks things...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Wolfgang Bumiller
9f197c22b5 ui: support u2f authentication and configuration
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00
Dominik Csapak
412fe1b645 fix #1393: use language from datacenter.cfg for gui
if we do not have a language cookie, try to read
the language from the datacenter.cfg and fall back to 'en'

also set it into the 'Proxmox' object, so that the gui can show it
in the LoginWindow

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-08-17 11:01:44 +02:00
Dominik Csapak
0bdf837031 change PVE.UserName/CSRFPreventionToken to Proxmox
this is now all in the widget-toolkit and needs to be
set/read to/from there, else we possibly get an inconsistent view on
those

this fixes as issue, where after login the ResourceStore would not update

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 14:49:11 +01:00
Dominik Csapak
fdf74e410b add proxmox-widget-toolkit to pve gui
we will use components from proxmox-widget-toolkit rather than
directly from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-23 10:15:09 +01:00
Dominik Csapak
84505fb832 add ver get parameter for js/css files to improve cache behaviour
we do not set an Expire header for our js files, and certain browsers
do not even make the request then (on which we would answer
with a correct 304 not modified)

so to force the browser to load a new version of the gui when we change
something, we add the package version as a get parameter

when doing this, the browsers still cache the file, until the get
parameter changes, which is exactly what we want

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-11-07 08:55:02 +01:00
Dominik Csapak
e97c26015d change to debian font-awesome
instead of having font-awesome copied into the repository,
depend on the debian package 'fonts-font-awesome', which provides all we
need

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-12 10:26:29 +02:00
Dominik Csapak
9c1c2c2ea4 add the index.html.tpl files for the default ui and touch
they are mostly copied from ExtJSIndex.pm and TouchIndex.pm, and
they are prepared with the Template::Toolkit syntax

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:34:07 +01:00