]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
6 years agopostinst: combine abort-* cases and remove boilerplate cruft
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:00 +0000 (14:14 +0100)]
postinst: combine abort-* cases and remove boilerplate cruft

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: simplify root's mail .forward check
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:59 +0000 (14:13 +0100)]
postinst: simplify root's mail .forward check

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: bootlogd is not used under systemd
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:58 +0000 (14:13 +0100)]
postinst: bootlogd is not used under systemd

"Note that not all init systems print messages to the system console,
so that the logfile may remain empty; this is the case with systemd
(the default init system). Try "journalctl -b" instead."
-- https://packages.debian.org/stretch/bootlogd

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: removing old APL dir is obsolete
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:57 +0000 (14:13 +0100)]
postinst: removing old APL dir is obsolete

This was added by c91649753 on 2012-02-21 11:42:32, as we had 2 major
upgrades since them every system either was update or new installed,
so just remove this.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobuildsys: remove unused debconf template
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:56 +0000 (14:13 +0100)]
buildsys: remove unused debconf template

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: purge all old init.d service files on upgrade
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:55 +0000 (14:13 +0100)]
postinst: purge all old init.d service files on upgrade

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoservices: remove obsolete init.d scripts
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:54 +0000 (14:13 +0100)]
services: remove obsolete init.d scripts

They all have a systemd service file so no need for them anymore

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobuildsys: add %.1.pod make target to reduce duplication
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:53 +0000 (14:13 +0100)]
buildsys: add %.1.pod make target to reduce duplication

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoremove obsolete (rgmanager era) HA resource agent
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:52 +0000 (14:13 +0100)]
remove obsolete (rgmanager era) HA resource agent

This was used by rgmanager which was superseeded in 2015 with our
ha-manager for PVE 4.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoWhitespace cleanup
Herman van Rink [Fri, 9 Mar 2018 10:32:32 +0000 (11:32 +0100)]
Whitespace cleanup

Signed-off-by: Herman van Rink <rink@initfour.nl>
6 years agoElaborate comment in hook example
Herman van Rink [Fri, 9 Mar 2018 10:32:31 +0000 (11:32 +0100)]
Elaborate comment in hook example

Signed-off-by: Herman van Rink <rink@initfour.nl>
6 years agoVZDump: handle timelocal year correctly
Fabian Grünbichler [Wed, 28 Feb 2018 10:12:01 +0000 (11:12 +0100)]
VZDump: handle timelocal year correctly

while this is unlikely to cause any problems, it is unnecessary to
substract 1900 here - timelocal handles 4-digit years perfectly well.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoGraphite.pm: fix whitespace
Dominik Csapak [Mon, 5 Mar 2018 08:58:41 +0000 (09:58 +0100)]
Graphite.pm: fix whitespace

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1683: do not send non-numeric values to graphite
Dominik Csapak [Mon, 5 Mar 2018 08:58:40 +0000 (09:58 +0100)]
fix #1683: do not send non-numeric values to graphite

the graphite daemons which accept the data (carbon), only
accepts numeric values, and logs all invalid lines

since that were about 5 values per vm/ct this generated lot of noise
in the carbon log

so we check with a regex if a value is numeric, and
additionally we have a blacklist of keys which seem to be numeric but
are either boolean (e.g. template) or a state (e.g. pid)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoMerge branch 'master' of git://git.proxmox.com/git/pve-manager
Wolfgang Bumiller [Tue, 27 Feb 2018 14:55:15 +0000 (15:55 +0100)]
Merge branch 'master' of git://git.proxmox.com/git/pve-manager

6 years agomake GuestStatusView declarative
Dominik Csapak [Mon, 26 Feb 2018 12:12:21 +0000 (13:12 +0100)]
make GuestStatusView declarative

use the cbind function to generate isLxc/Qemu to hide the
relevant fields, and cbind the nodename

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-47
Wolfgang Bumiller [Mon, 26 Feb 2018 09:29:18 +0000 (10:29 +0100)]
bump version to 5.1-47

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agod/control: update version dependency to widget toolkit
Thomas Lamprecht [Fri, 23 Feb 2018 10:14:33 +0000 (11:14 +0100)]
d/control: update version dependency to widget toolkit

6 years agonode/Summary.js: fix trailing whitespace
Dominik Csapak [Fri, 23 Feb 2018 09:32:02 +0000 (10:32 +0100)]
node/Summary.js: fix trailing whitespace

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoimprove node/lxc/qemu summary pages
Dominik Csapak [Fri, 23 Feb 2018 09:32:01 +0000 (10:32 +0100)]
improve node/lxc/qemu summary pages

let them use a one/two column layout depending on browser width
optimize stylings/padding values
get rid of the (now long) unecessary lazyitems plugin
(this was necessary for performance when we still used tabpanels instead
of our own configpanel with treelist)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse notesview declaratively in storage summary
Dominik Csapak [Fri, 23 Feb 2018 09:32:00 +0000 (10:32 +0100)]
use notesview declaratively in storage summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolet the storage summary use the full browser width
Dominik Csapak [Fri, 23 Feb 2018 09:31:59 +0000 (10:31 +0100)]
let the storage summary use the full browser width

use one/two column layout depending on browser width
and optimize some stylings

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd xtype to noteview so we can use it declaratively
Dominik Csapak [Fri, 23 Feb 2018 09:31:58 +0000 (10:31 +0100)]
add xtype to noteview so we can use it declaratively

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolet cluster dashboard use full browser width
Dominik Csapak [Fri, 23 Feb 2018 09:31:57 +0000 (10:31 +0100)]
let cluster dashboard use full browser width

use one/two column layout instead of hardcoding width for the panels
also optimize padding values

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolet ceph dashboard use the full browser width
Dominik Csapak [Fri, 23 Feb 2018 09:31:56 +0000 (10:31 +0100)]
let ceph dashboard use the full browser width

instead of hardcoding the width of the panels,
use a columnlayout and use one column for screens < 1900 width
and two columns for screens >= 1900 width

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoshow guest-agent provided ip address in qemu summary
Dominik Csapak [Fri, 23 Feb 2018 09:31:55 +0000 (10:31 +0100)]
show guest-agent provided ip address in qemu summary

this adds a new component 'AgentIPView' which
uses the qemu-agent api call to tries to get the ip information for
the guests

only for vms at the moment, since for containers you already
set it on their network tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: declarative LXC Create
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:41 +0000 (14:17 +0100)]
ui: declarative LXC Create

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: MPEdit: add setUnprivileged to allow data binding
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:40 +0000 (14:17 +0100)]
ui: MPEdit: add setUnprivileged to allow data binding

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: lxc/Network: set empty datachache by default when in wizard
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:39 +0000 (14:17 +0100)]
ui: lxc/Network: set empty datachache by default when in wizard

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: FileSelector: add setNodename to allow data binding
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:38 +0000 (14:17 +0100)]
ui: FileSelector: add setNodename to allow data binding

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: move loadSSHKeyFromFile from lxc/Create to Utils
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:37 +0000 (14:17 +0100)]
ui: move loadSSHKeyFromFile from lxc/Create to Utils

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd ha info to the template summary
Dominik Csapak [Thu, 22 Feb 2018 13:32:40 +0000 (14:32 +0100)]
add ha info to the template summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd icons to summaries and improve spacing
Dominik Csapak [Thu, 22 Feb 2018 13:32:39 +0000 (14:32 +0100)]
add icons to summaries and improve spacing

also add a helper css class to use the png icons like fontawesome icons
and add the ha state to template summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd optional icon to InfoWidget
Dominik Csapak [Thu, 22 Feb 2018 13:32:38 +0000 (14:32 +0100)]
add optional icon to InfoWidget

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agotree: prepare for ExtJS 6.2.0
Thomas Lamprecht [Wed, 21 Feb 2018 14:32:23 +0000 (15:32 +0100)]
tree: prepare for ExtJS 6.2.0

Remove the expand/collapse hack needed for an earlier ExtJS version.

Further do not collapse the rootnode before restoring the state, it
may not be collapsible at this time, as it may be still seen as leaf
node, and thus throws exceptions with ExtJS 6.2.0

we fired the refresh to late for the store, i moved it up to fire
directly after we resume events on the store, i.e. when our store update
window is closed again. So it happens before applying the state and
expanding the rootnode.

see
https://pve.proxmox.com/pipermail/pve-devel/2018-February/030762.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-46
Wolfgang Bumiller [Fri, 16 Feb 2018 14:08:32 +0000 (15:08 +0100)]
bump version to 5.1-46

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agopveversion: use AptPkg::Version, not Dpkg::Version
Fabian Grünbichler [Fri, 16 Feb 2018 13:58:10 +0000 (14:58 +0100)]
pveversion: use AptPkg::Version, not Dpkg::Version

to avoid an extra dependency

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agobump version to 5.1-45
Fabian Grünbichler [Fri, 16 Feb 2018 11:46:35 +0000 (12:46 +0100)]
bump version to 5.1-45

6 years agopveversion: sort kernel packages by version
Fabian Grünbichler [Fri, 16 Feb 2018 09:49:27 +0000 (10:49 +0100)]
pveversion: sort kernel packages by version

instead of lexically by package name

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix wizard validity check for options spanning multiple tabs
Dominik Csapak [Thu, 15 Feb 2018 15:05:51 +0000 (16:05 +0100)]
fix wizard validity check for options spanning multiple tabs

when changing the guest os, we changed the disk type
(e.g. ide for windows, scsi for linux, etc.)

but if the id was outside the allowed range (e.g. > 3 for ide)
we did not correctly enable/disable tabs

now we check all tabs until the highest already visited,
or until we detect a not valid tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoform/FileSelector: move to declarative style
Thomas Lamprecht [Wed, 14 Feb 2018 12:34:48 +0000 (13:34 +0100)]
form/FileSelector: move to declarative style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoqemu/wizard: move to declarative syntax
Thomas Lamprecht [Wed, 14 Feb 2018 12:34:47 +0000 (13:34 +0100)]
qemu/wizard: move to declarative syntax

Use a ViewModel directly, instead of emulating its behaviour with a
ViewController.

The rest consists mostly of indentation changes, moving some
components directly inside their parent declaration.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowizard: set config values on top
Thomas Lamprecht [Wed, 14 Feb 2018 12:34:46 +0000 (13:34 +0100)]
wizard: set config values on top

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowizard: use fbar convenience helper for footer
Thomas Lamprecht [Wed, 14 Feb 2018 12:34:45 +0000 (13:34 +0100)]
wizard: use fbar convenience helper for footer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowizard: remove hidden outdated header logic
Thomas Lamprecht [Wed, 14 Feb 2018 12:34:44 +0000 (13:34 +0100)]
wizard: remove hidden outdated header logic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoAPT API: versions: add new pve packages
Thomas Lamprecht [Thu, 15 Feb 2018 09:20:45 +0000 (10:20 +0100)]
APT API: versions: add new pve packages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoAPT API: versions: split up long line and refactor
Thomas Lamprecht [Thu, 15 Feb 2018 09:20:44 +0000 (10:20 +0100)]
APT API: versions: split up long line and refactor

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: qemu: make DisplayEdit declarative and drop DisplaySelector
Thomas Lamprecht [Fri, 9 Feb 2018 12:08:07 +0000 (13:08 +0100)]
ui: qemu: make DisplayEdit declarative and drop DisplaySelector

DisplayEdit did not get a cleanup during our ExtJS 4 to ExtJS 6
cleanup, in fact it was really touched in the last 5 years.

So refactor it to a declarative syntax, at least almost, we keep the
me.load in initComponent, just to much hassle to adress this for now.

Also purge DisplaySelector. It was a component inheriting from
KVComboBox with the possible VGA values as items only used here.
So just use a KVComboBox directly and set comboboxItems directly.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix #1573: show bootdisk usage on container summary
Dominik Csapak [Tue, 28 Nov 2017 13:05:01 +0000 (14:05 +0100)]
fix #1573: show bootdisk usage on container summary

we have the information, so show it
this does not change the output for vms, where we do not have
any information about disk usage at all

if we add the 'disk' info to vms, it will magically work there then

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoStatusView.js: call renderer in context of field
Dominik Csapak [Fri, 26 Jan 2018 12:30:20 +0000 (13:30 +0100)]
StatusView.js: call renderer in context of field

so that we can access the field inside the renderer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoInfoWidget.js: make printBar toggleable at runtime
Dominik Csapak [Fri, 26 Jan 2018 12:29:08 +0000 (13:29 +0100)]
InfoWidget.js: make printBar toggleable at runtime

we add a setPrintBar function, where we can make the
progressbar visible/hide it at runtime

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix edit button for some panels
Dominik Csapak [Wed, 7 Feb 2018 09:11:22 +0000 (10:11 +0100)]
fix edit button for some panels

when using the 'run_editor' function provided by the ObjectGrid,
we have to make sure the function runs in the context of the grid,
not in that of the button, else we cannot access the
selectionModel/rows/etc. of the grid

this happened with the switch 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>
6 years agofix #1629: improve min/max memory handling
Dominik Csapak [Thu, 25 Jan 2018 14:55:11 +0000 (15:55 +0100)]
fix #1629: improve min/max memory handling

instead of directly setting the minvalue when the maxvalue is lower
we invalidate it and only on blur we set the minvalue

without this we lose the minvalue when editing only the maxvalue

e.g.:

Max: 2048
Min: 1024

if we now edit the maxvalue to 4096, on pressing the '4', we are
setting the minvalue to '4' because 4 is lower than 1024

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1631: change units to binary prefix
Dominik Csapak [Thu, 25 Jan 2018 14:55:10 +0000 (15:55 +0100)]
fix #1631: change units to binary prefix

we always expected MiB/GiB but labeled them incorrectly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1635: correctly change maxIds in ControllerSelector in wizard
Dominik Csapak [Tue, 30 Jan 2018 09:34:14 +0000 (10:34 +0100)]
fix #1635: correctly change maxIds in ControllerSelector in wizard

we want to change the maxIds value even when not rendered, since
in the wizard, the controller can change from a different panel in the
tabpanel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoenable/disable xtermjs depending on the existance of a serial port
Dominik Csapak [Fri, 26 Jan 2018 10:58:03 +0000 (11:58 +0100)]
enable/disable xtermjs depending on the existance of a serial port

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>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoshow serial ports on the gui
Dominik Csapak [Fri, 26 Jan 2018 10:58:02 +0000 (11:58 +0100)]
show serial ports on the gui

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>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agochange group of unused to 99 to that we can add things in between
Dominik Csapak [Fri, 26 Jan 2018 10:58:01 +0000 (11:58 +0100)]
change group of unused to 99 to that we can add things in between

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>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd icon/class for serial ports
Dominik Csapak [Fri, 26 Jan 2018 10:58:00 +0000 (11:58 +0100)]
add icon/class for serial ports

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>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoqemu/Monitor: save the last 20 commands
Dominik Csapak [Fri, 26 Jan 2018 14:25:26 +0000 (15:25 +0100)]
qemu/Monitor: save the last 20 commands

and make them available with the up/down arrow key

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>
6 years agobump version to 5.1-44
Wolfgang Bumiller [Thu, 25 Jan 2018 12:59:01 +0000 (13:59 +0100)]
bump version to 5.1-44

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agouse API2Request from Proxmox.Utils in mobile interface
Dominik Csapak [Fri, 26 Jan 2018 07:52:55 +0000 (08:52 +0100)]
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>
6 years agochange PVE.UserName/CSRFPreventionToken to Proxmox
Dominik Csapak [Thu, 25 Jan 2018 13:36:51 +0000 (14:36 +0100)]
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>
6 years agoremove now unused translations
Thomas Lamprecht [Tue, 23 Jan 2018 09:55:18 +0000 (10:55 +0100)]
remove now unused translations

We use proxmox-i18n now and merged those files there already

6 years agoreuse Toolkit from widget toolkit
Thomas Lamprecht [Tue, 16 Jan 2018 12:29:47 +0000 (13:29 +0100)]
reuse Toolkit from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoRealmComboBox: use schematic declaration and ViewController
Thomas Lamprecht [Mon, 11 Dec 2017 14:47:14 +0000 (15:47 +0100)]
RealmComboBox: use schematic declaration and ViewController

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse InputPanel from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 15:10:13 +0000 (16:10 +0100)]
use InputPanel from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse LogView from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 15:06:50 +0000 (16:06 +0100)]
use LogView from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse GaugeWidget from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 13:57:13 +0000 (14:57 +0100)]
use GaugeWidget from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse RestProxy from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 13:46:51 +0000 (14:46 +0100)]
use RestProxy from widget toolkit

Split PVE specific models, which where not moved to the general
widget toolkit, in a separate folder: data/models/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse ObjectStore from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 12:50:25 +0000 (13:50 +0100)]
use ObjectStore from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse TimezoneStore from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 12:09:31 +0000 (13:09 +0100)]
use TimezoneStore from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse DiffStore from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 11:05:39 +0000 (12:05 +0100)]
use DiffStore from widget toolkit

The alias stayed the same (store.diff) so we need to change direct
usage of 'PVE.data.DiffStore' only.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse HelpButton from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 10:25:58 +0000 (11:25 +0100)]
use HelpButton from widget toolkit

Proxmox.button.Help renamed the css class for the button styling, as
this class is only used rarely and the widget toolkit does not
provides a (shared) css file itself, just rename it here too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse window.PasswordEdit from widget toolkit
Thomas Lamprecht [Thu, 7 Dec 2017 08:58:50 +0000 (09:58 +0100)]
use window.PasswordEdit from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse TaskViewer & TaskProgress window from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 17:30:16 +0000 (18:30 +0100)]
use TaskViewer & TaskProgress window from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse windowEdit from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 17:12:41 +0000 (18:12 +0100)]
use windowEdit from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse PendingObjectGrid from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 17:02:00 +0000 (18:02 +0100)]
use PendingObjectGrid from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/Options: cleanup & use new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 16:54:30 +0000 (17:54 +0100)]
qemu/Options: cleanup & use new features from ObjectGrid

Ther's a little delay with the revert button on pending changes, but
that was the case previously too, so don't worry for that in this
patch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agogrid/FireWallOptions: cleanup & use new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 16:28:41 +0000 (17:28 +0100)]
grid/FireWallOptions: cleanup & use new features from ObjectGrid

switch add_boolean and add_integer row to a simple wrapper.
We really use it often and can save quite some lines with it so it
does not make sense to remove it completely yet.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolxc/Options: cleanup & use a few new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 15:59:02 +0000 (16:59 +0100)]
lxc/Options: cleanup & use a few new features from ObjectGrid

Use also same store update interval as qemu/Options

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolxc/Resources: cleanup & use new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 15:51:45 +0000 (16:51 +0100)]
lxc/Resources: cleanup & use new features from ObjectGrid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agodc/OptionView: cleanup & use new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 14:09:23 +0000 (15:09 +0100)]
dc/OptionView: cleanup & use new features from ObjectGrid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse ObjectGrid from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 12:49:24 +0000 (13:49 +0100)]
use ObjectGrid from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse KVCombobox from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 11:16:07 +0000 (12:16 +0100)]
use KVCombobox from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse RRDTypeSelector from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 11:05:57 +0000 (12:05 +0100)]
use RRDTypeSelector from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse Checkbox from widget toolkit
Thomas Lamprecht [Tue, 5 Dec 2017 13:06:40 +0000 (14:06 +0100)]
use Checkbox from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse BondModeSelector & BondPolicySelector from widget toolkit
Thomas Lamprecht [Tue, 5 Dec 2017 13:01:07 +0000 (14:01 +0100)]
use BondModeSelector & BondPolicySelector from widget toolkit

widget name stayed the same, so no need to change

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse LanguageSelector from widget toolkit
Thomas Lamprecht [Tue, 5 Dec 2017 12:55:28 +0000 (13:55 +0100)]
use LanguageSelector from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoremove unneeded SendKeyMenu
Dominik Csapak [Mon, 15 Jan 2018 14:18:10 +0000 (15:18 +0100)]
remove unneeded SendKeyMenu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse Proxmox.Utils instead of PVE.Utils
Dominik Csapak [Mon, 15 Jan 2018 14:18:09 +0000 (15:18 +0100)]
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>
6 years agouse Button from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:08 +0000 (15:18 +0100)]
use Button from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse Proxmox.button.StdRemoveButton where possible
Dominik Csapak [Mon, 15 Jan 2018 14:18:07 +0000 (15:18 +0100)]
use Proxmox.button.StdRemoveButton where possible

most 'Remove' buttons we have used the same code pattern over and over,
with the StdRemoveButton we have a component which does all of this for
us

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocreate some models
Dominik Csapak [Mon, 15 Jan 2018 14:18:06 +0000 (15:18 +0100)]
create some models

we want to use the getId method of some records, but for this
we need that the records are defined as an instance of a model,
so we create some and use them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse DNSView/DNSEdit from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:05 +0000 (15:18 +0100)]
use DNSView/DNSEdit from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd 'service' parameter to syslog api call
Dominik Csapak [Mon, 15 Jan 2018 14:18:04 +0000 (15:18 +0100)]
add 'service' parameter to syslog api call

so that we can filter the journal by service

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse ServiceView from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:03 +0000 (15:18 +0100)]
use ServiceView from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse Tasks from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:02 +0000 (15:18 +0100)]
use Tasks from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agochange pve-invalid-row class to proxmox-invalid-row
Dominik Csapak [Mon, 15 Jan 2018 14:18:01 +0000 (15:18 +0100)]
change pve-invalid-row class to proxmox-invalid-row

because we will use that in the widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse UpdateStore from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:00 +0000 (15:18 +0100)]
use UpdateStore from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>