Commit Graph

591 Commits

Author SHA1 Message Date
Thomas Lamprecht
d0af658440 followup code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-25 13:22:42 +02:00
Dominic Jäger
2280ae09a9 Fix #582: Add delay to button
The StdRemoveButton can now pass a delay parameter to the API.
It is set undefined as default so that users of the button
can set the parameter themselves.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2019-07-25 13:20:12 +02:00
Thomas Lamprecht
1ccb53ecdb combogrid: add handling for historic set values currently not available
We can often run into situations where a value set in the past is not
valid anymore. An example could be a deleted network bridge, e.g., we
set the vNIC of a VM to 'vmbr1' but then we decide to obsolete that
and delete that one, one would now expect that the field gets marked
as invalid when editing the VM's vNIC, so add that behavior.

As sometimes this can be valid and wanted behavior (e.g., usb
passthrough, which is hot-pluggable), also add a switch do restore
the old behavior.

Note that the empty value is not handled by this change, we let the
existing "allowBlank" config switch handle that one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-18 15:55:38 +02:00
Thomas Lamprecht
f59a7b2350 combogrid: always set the initial value, even if not found
as else one lies to the user and only creates strange behavior,
one should see the values even if not there anymore, if this is a
invalid state is left for a later patch.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-17 16:17:59 +02:00
Thomas Lamprecht
ef2235c91a bump version to 2.0-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-11 19:34:00 +02:00
Oguz Bektas
c8b66b2bfd KVComboBox: add setComboItems function
this allows to change the comboItems of a KVComboBox on the run

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2019-07-11 15:00:14 +02:00
Dominik Csapak
312310e0f2 override Ext.Components 'validIdRe' to include '@'
we use itemIds with '@' already in the ceph dashboard, and in
non-debug modeit works (as expected) but throws an error
while using ext-all-debug.js so override it to include the '@'

the regex was in place because in html4 the 'id' tag could only consist
letters ofthe mentioned regex, this was lifted in html5 though[0]

0: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-07-11 14:37:24 +02:00
Thomas Lamprecht
227fb07f0c follouwp: code cleanup for render_bond_mode
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-10 12:42:26 +02:00
Thomas Lamprecht
61e428c29d follouwp: code cleanup for bond_mode_array
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-10 12:36:57 +02:00
Dominik Csapak
211bdf934f node network: add Bond Mode and Hash Policy columns
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-07-10 12:26:54 +02:00
Dominik Csapak
8311c0b1af node network: refactor bond mode array generation
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-07-10 12:26:54 +02:00
Dominik Csapak
4211996ab0 node network: hide ip and netmask by default
CIDR column displays the same information in only on column,
no need to duplicate the information (by default)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-07-10 12:26:54 +02:00
Dominik Csapak
8093ded0c3 fix syslog resizing
makes the logview autosize with the window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-07-02 13:29:03 +02:00
Thomas Lamprecht
7d0340d701 bump version to 2.0-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-28 20:31:07 +02:00
Thomas Lamprecht
1dd799589b network selector: allow to select IP too
not only CIDR.. maybe it could make sense to add a small child class
which  overwrites just the displayField and valueField to address

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 21:51:02 +02:00
Thomas Lamprecht
227159eca2 combogrid: add deleteEmpty and skipEmptyText
Slightly adapted from the proxmox textfield version of this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 14:21:46 +02:00
Thomas Lamprecht
b69c301a94 textfield: validate after allowBlank 2019-06-27 14:21:17 +02:00
Thomas Lamprecht
a8131b5bce combo grid: add setAllowBlank to help bindings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-26 16:05:56 +02:00
Thomas Lamprecht
3154bb784e use https links to our sites
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-26 16:05:34 +02:00
Thomas Lamprecht
18983bdaa1 bump version to 2.0-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-24 17:54:58 +02:00
Dominik Csapak
1098bee4d4 refactor info/link extraction from onlinehelp to utils
so that we can reuse that code for getting links from the docs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-06-21 15:16:39 +02:00
Thomas Lamprecht
9a8c1d01b6 bump version to 2.0-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-14 20:48:02 +02:00
Thomas Lamprecht
e6bf8a81ac followup: network selector: refactor cidr6 merge logic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-12 13:07:32 +02:00
Thomas Lamprecht
ce8c5365c2 followup: network selector: reorder columns and adapt widths
and use format_boolean to render the active column
also hide the type column by default, it often is not too important,
and can be derived from the interface name, e.g., vmbrX -> bridge,
bondX -> bond, etc.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-12 13:03:25 +02:00
Tim Marx
607c37efd1 add network selector widget
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-06-12 11:17:44 +02:00
Thomas Lamprecht
f12e1aba6e node/APT: whitespace cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-03 16:38:49 +02:00
Thomas Lamprecht
6895e13f39 node/apt updates: show full package description conditionally
The full package description is often quite long, and for upgrades
it's not relevant most of the time. But, it can be intresting to
have, if one wonders what a package is even used for.
So add a checkbox in the top bar which allows to switch between
showing and hiding the description, simply done by re-using the
'grid-row-body-hidden' ExtJS CSS class (got the idea from the
RowBody feature source code).
Default it to off, as it's better to not overwhelm users here with a
huge pile of text by default, showing the list of package with the
short one line title is enough most of the times, I'd guess.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Tim Marx <t.marx@proxmox.com>
2019-06-03 16:37:57 +02:00
Dominik Csapak
acfbf25527 backport fix for ExtJS pie chart tooltip for 0% entries
this fixes bug EXTJS_18900 where the tooltip of a piechart was always
shown for the first data entry with 0 percent of the pie chart

the relevant lines for the fix are
...
if (a === b) {
    return false;
}
...

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-31 10:58:11 +02:00
Thomas Lamprecht
464dd619c7 buildsys: switch upload dist over to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-22 10:23:21 +02:00
Thomas Lamprecht
4b428ce002 bump version to 2.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-22 07:16:44 +02:00
Thomas Lamprecht
72bfd4bd3e buildsys: cleanup before building source package
makes lintian happier and there's no real reason not to do so.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-22 07:13:26 +02:00
Thomas Lamprecht
63a503c955 buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-22 07:12:53 +02:00
Thomas Lamprecht
edc6115643 bump version to 1.0-28
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 14:28:44 +02:00
Thomas Lamprecht
70df8f46be followup: elaborate a bit more why there could be no content
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 13:18:08 +02:00
Thomas Lamprecht
cd82be4911 followup: pull out 'Since/Until' to remove extra whitespace
This is similar to how we did in panel/LogView but adds disabling
also to the label, not only the picker field, which is a bit nicer.

And no, it really does not seems like this can be done easier...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 13:14:12 +02:00
Dominik Csapak
a1498508da add panel/JournalView
similar to LogView, but expects the result from the /node/journal api call,
which is an array of strings, with start/endcursor instead of
an array of objects with line numbers

the new api call also does not accept start line numbers and limit,
so it is necessary to handle it differently

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-15 11:44:21 +02:00
Dominik Csapak
8e2d096c7f change network input from address/netmask to cidr and change labels
this makes the ui easier and is consistent with the rest of our ui
(container and cloud init)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-08 14:56:52 +00:00
Dominik Csapak
d0c2b8781a show cidr in network view and optimize renderer
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-08 14:56:52 +00:00
Thomas Lamprecht
097729e50f re-bump version to 1.0-27
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-07 15:14:32 +00:00
Thomas Lamprecht
72be386c64 LogView: also reduce log syscall on scrolling
move the "return early, because a request is already pending" into
the doLoad function, so that all calls to it underly the request
limiting, but note that such a new request is desired, and if so
schedule it once the current finishes. This ensures that scrolling
will always get honored, but does not produces multiple hanging
workers, at max one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-07 15:11:38 +00:00
Thomas Lamprecht
44b6879934 bump version to 1.0-27
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-07 14:22:42 +00:00
Dominik Csapak
7f9a65672a reduce syslog api calls
do not poll the syslog api call multiple times simultaneously,
since it can be very costly, depending on the journal size

with this, there is always only one per client

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-30 13:28:00 +00:00
Thomas Lamprecht
9b38808198 bump version to 1.0-26
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-16 05:58:20 +00:00
Thomas Lamprecht
94ec386d9a node/TimeEdit: allow to 'search' time zone
follow the logic we use in file selectors of the PVE gui, i.e., allow
editable but force a match and do not allow blank, this lets
quick filter this big list instead of scrolling, and searching if
something appears or not, even if one is may not be sure if/how this
was sorted...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-16 05:53:09 +00:00
Mira Limbeck
577b6c7546 add ipv6 and ipv4 cidr match vtype
add additional vtype for combined ipv4 and ipv6 cidr validation.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
2019-04-16 05:37:12 +00:00
Thomas Lamprecht
a9c65d7e9c fix #1784: allow to set UTC as Timezone
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-15 11:31:26 +00:00
Thomas Lamprecht
22bb0802e1 bump version to 1.0-25
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 14:01:18 +02:00
Wolfgang Bumiller
c2e25a2111 add helpers required for u2f authentication
With u2f having a ticket doesn't mean we're logged in yet,
so we need to be able to distinguish between the two.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 13:12:29 +02:00
Dominik Csapak
65bb3b678f rework panel/LogView
use the view, viewmodel, controller style code, which makes the logic
much more understandable

this adds two features to it, namely a viewBuffer range, which controls
the distance to the end of the data on which the panel loads the next data
and an optional failCallback, which will be used for the cephlog

this also fixes #2151

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-02 12:52:05 +02:00
Thomas Lamprecht
f2a630d4c6 use <sourcepackage>-<upstreamversion> as build dir, dpkg-source likes it
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-30 13:00:20 +01:00