Commit Graph

25 Commits

Author SHA1 Message Date
Dominik Csapak
51d8307e44 use API2Request from Proxmox.Utils in mobile interface
this was missing from the migration to the widget-toolkit

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-26 10:03:05 +01: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
42ec18721b use Proxmox.Utils instead of PVE.Utils
some function are now in Proxmox.Utils instead, so we have to use that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:38 +01:00
Dominik Csapak
64364852e1 do not let www-data own the static js/html files
this is neither necessary, nor useful
those files are meant to be read only anyway, so there is no gain in
them being owned by www-data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:30 +02:00
Dietmar Maurer
dd8a24be86 depend on libjs-extjs 2017-01-25 18:29:17 +01:00
Dietmar Maurer
305d30101a delete extjs source files 2017-01-25 18:23:07 +01:00
Thomas Lamprecht
1ba0bf9cbc Makefile: fix distclean target
As some Makefiles in sub directories do not implement the distclean
target, namely:
PVE/Service/Makefile
PVE/CLI/Makefile

This target is broken.

As all other implementations just redirect to the 'clean' target I
do not implement the missing ones but rather remove all such
targets. Keep it just in the top level directory, for consistence
sake with other pve repos, and redirect it there directly to the
clean target.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-09-28 08:21:48 +02:00
Dietmar Maurer
63984635e6 remove old www/manager dir 2016-06-02 16:54:32 +02:00
Wolfgang Bumiller
a467e7d4eb mobile: use ext6 Cookies.js
The ext4 file is not in the repository and we don't unpack
the zip anymore, so it won't be found after a `make clean`.
It's the same code formatted differently, so it should work.
2016-03-31 12:43:31 +02:00
Dietmar Maurer
f3367739dc s/pveBackButton/pveReloadButton/ 2015-09-24 06:54:57 +02:00
Thomas Lamprecht
17e9df7d2b better formating and UI of task viewer and task list
[TaskList]:
* format task date on the same node as the title. If space isn't
  there, the date goes on it's own line.
* Truncate output of task status to a maximum of 160 characters to
  fix formating, also the list should only give an overview.
* set list flex to 1, this fixes height and scrolling issues
* Put affected node and status on a own line.

[TaskViewer]
* Only show task status, the exit status is in the log below,
  also some long statuses break this page completely.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:52:14 +02:00
Thomas Lamprecht
78fbaa2ef6 format cpu load value better
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:51:43 +02:00
Thomas Lamprecht
bd597ebab8 use new VMSummaryBase class for lxc and qemu summary
also the keys to display from the lxc config where updated as some
from OpenVZ times where used.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:51:18 +02:00
Thomas Lamprecht
b46a5aa85e Implement VMSummaryBase class
As the lxc and qemu summary pages share almost all the code we
implement a base class which provides the shared functionality.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:51:09 +02:00
Thomas Lamprecht
988a1af816 use new PVEBar instead of TitleBar
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:50:28 +02:00
Thomas Lamprecht
4496e9992c add PVEBar class to provide an common menu titlebar
PVEBar inherits from Ext.TitleBar and provides an titlebar for the
PVE mobile components to reduce code reuse.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:49:32 +02:00
Thomas Lamprecht
ebe5456afc add Datacenter entry to menu
Add a menu entry to load the Datacenter page

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:48:06 +02:00
Thomas Lamprecht
4a3d71016d add goBack function
Add function to go a step back in browsing history.
Also don't use the anim var in setActiveItem when no old appWindow
is defined, as it is undefined in this scope.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:47:50 +02:00
Thomas Lamprecht
03a2d0a139 fix mobile datacenter bugs resulting from API return changes
Adapt the mobile UI code to the slightly different returned data
from the '/cluster/status/' API call.
Also sort the node list to get an consistent staying UI, this
mirrors the behaviour of the 'desktop' UI.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-21 10:39:02 +02:00
Thomas Lamprecht
0bd9939a37 replace OpenVZ API calls in mobile UI with LXC
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-18 09:46:50 +02:00
Dan Hunsaker
37573e1ffc Add suspend/resume options to the mobile web UI menus
With the new mobile interface, we need to implement UI changes in two
places.  This lets us simplify our mobile interface so it isn't cluttered
with options that mobile browsers can't easily handle, usually due to size.
This patch implements Suspend and Resume of VMs and CTs via the mobile
web UI.

Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>
2014-10-09 09:36:29 +02:00
Dietmar Maurer
eb537005b4 mobile: register OpenVZ migrate page 2014-08-07 10:17:45 +02:00
Dietmar Maurer
7e36598811 mobile: improve error display 2014-08-05 09:15:14 +02:00
Dietmar Maurer
a1eafd66b2 mobile: implement two factor auth 2014-08-05 08:57:08 +02:00
Dietmar Maurer
9940ea0165 add sencha touch based GUI for mobile devices 2014-08-05 08:31:17 +02:00