Commit Graph

30 Commits

Author SHA1 Message Date
Thomas Lamprecht
33d0357208 www: merge remaining touch files into mobile
only the index and (empty) css files left-over, so just merge this to
where it belongs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-28 18:39:04 +02:00
Thomas Lamprecht
f0af029bd4 buildsys: www: make 'all' target a no-op
preparatory steps for better make dependencies when executing the
lint check.

People can still just make the .js targets directly or use the
install target.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-28 11:11:17 +02:00
Thomas Lamprecht
627548d6fb mobile: implement login with OTP based TFA enabled
roughly copied over from the full-fledged manager UI, but enough
differences between manager <-> mobile and ExtJS <-> Sencha Touch to
just adapt it here instead of having a force-shared implementation
with lots of corner case checks and even more callback methods..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-01 16:01:29 +02:00
Thomas Lamprecht
ab17ebcdc4 mobile: workspace: reuse Proxmox.Utils.setAuthData
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-01 16:00:44 +02:00
Thomas Lamprecht
3986c86786 mobile: datacenter: fix version
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-01 16:00:44 +02:00
Dominik Csapak
e54ad66e73 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
35a04562fd 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
e7ade592e3 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
059cb51053 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
9556b395b0 depend on libjs-extjs 2017-01-25 18:29:17 +01:00
Dietmar Maurer
87d50de749 delete extjs source files 2017-01-25 18:23:07 +01:00
Thomas Lamprecht
8f46103543 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
b8571c2958 remove old www/manager dir 2016-06-02 16:54:32 +02:00
Wolfgang Bumiller
fd81840e57 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
60d08d8012 s/pveBackButton/pveReloadButton/ 2015-09-24 06:54:57 +02:00
Thomas Lamprecht
b981d33e6f 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
c1e3105369 format cpu load value better
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-09-24 06:51:43 +02:00
Thomas Lamprecht
3d01228a87 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
53f669b13e 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
7853a5ff44 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
5b765ae8b4 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
c5e91d8e37 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
abfdd685df 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
db3f0058ed 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
617c580107 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
f40d6ef1d3 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
f8ffb2ef7d mobile: register OpenVZ migrate page 2014-08-07 10:17:45 +02:00
Dietmar Maurer
3e30824240 mobile: improve error display 2014-08-05 09:15:14 +02:00
Dietmar Maurer
9cbd04fdd5 mobile: implement two factor auth 2014-08-05 08:57:08 +02:00
Dietmar Maurer
48295db44f add sencha touch based GUI for mobile devices 2014-08-05 08:31:17 +02:00