Commit Graph

58 Commits

Author SHA1 Message Date
Dominik Csapak
7247077d0e move crushmap into ceph config
instead of having 2 panels,
we have now a splitted panel
with both config and crushmap

also drop the not needed [] around the alias

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:32:03 +02:00
Dominik Csapak
332581a88d reorganize node items
use new tree functionality of the configpanel
move services,time,syslog and shell under summary
move dns,firewall under network

move subpanels of firewall and ceph in the tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:29:21 +02:00
Dominik Csapak
cb892fb36c make node StatusView use new version
this implements the new StatusView for nodes
and uses it declarative instead of with Ext.Create

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-19 13:54:37 +02:00
Dominik Csapak
1de934eb8e add comment to network edit and view
this adds a new textinput field for the comment to the
network edit window and a new column for it in the
network view

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 14:06:45 +02:00
Dominik Csapak
0aa52e14b8 add comments to network model
we already have a comments field for network entries
now we have it in the model

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 14:04:06 +02:00
Dominik Csapak
91535f2ba7 htmlEncode some comment fields
this adds Ext.String.htmlEncode as renderer
for some comment/description fields

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-09 17:40:03 +02:00
Dietmar Maurer
6e8e14eb48 node GUI: move status into column layout 2016-06-02 07:59:52 +02:00
Dominik Csapak
d49b640b6c make the graphs on the summary pages use empty space
this patch lets the graphs flow if you have enough
horizontal space

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-02 06:26:06 +02:00
Emmanuel Kasper
8c70732ba9 set 'disabled' for grid panels which disaply a read only, not sortable content
* closes the bug #976
 * minor usability improvement: having a clickable row where
 no action was possible is a bit misleading
2016-05-17 12:07:07 +02:00
Dominik Csapak
34887e4479 jslint: fix not reachable return and duplicate property
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:10:22 +02:00
Dominik Csapak
68f8c7659f jslint: fix access to uninitialized variable
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:09:17 +02:00
Dominik Csapak
a764c5f72e jslint: fix missing or extra semicolon
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:07:42 +02:00
Dominik Csapak
604881d0bd jslint: add global entries where necessary
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:59 +02:00
Dominik Csapak
22f2f9d6c0 jslint: remove trailing commas
before ECMA5 trailing commas in arrays and objects
are forbidden

in jslint this is an error and cannot be deactivated

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:34 +02:00
Dominik Csapak
ec0bd652db jslint: fix type confusion and property access
fix various type confusion, for example:
items: {} and items: []
style: string and style: {}

also fix object['property'] access with
object.property

also fix /=/ with either '=' or /\=/ where appropriate
(/=/ can be confused with /= according to jslint)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:23 +02:00
Dominik Csapak
d5066d8487 fix ceph tabs switching
when switching from one node to another, we stop the wrong store
for the ceph tabs disk/monitor/pools because they have the same id,
so give them different ones

also the same applies for node/Services, fix it there too

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-13 10:36:56 +02:00
Dominik Csapak
9a132f4a40 add icon to nodes more button
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-11 11:50:47 +02:00
Dominik Csapak
5ca0c804c6 remove displayfield height hack
this did not work anymore,
instead overwrite css for displayfields to have correct
min-height

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-06 16:29:35 +02:00
Dominik Csapak
d4333933e5 use font-awesome icons for action buttons and cmdmenu
this patch makes use of font-awesome for
lxc/qemu action buttons (start/shutdown etc.)
node actions buttons (restart/shutdown etc.)
and lxc/qemu cmdmenus

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 11:59:25 +02:00
Dietmar Maurer
185a77e555 reduce translation overhead 2016-04-05 11:10:52 +02:00
Dietmar Maurer
16152937f8 reduce translation overhead 2016-04-04 16:59:52 +02:00
Dominik Csapak
bb966bd117 fix applyIf in DNSView
there was still an applyIf instead of apply,
hiding the Edit button there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-01 13:22:50 +02:00
Dominik Csapak
000c4018bc fix package versions in node summary
this bug was introduced by me with commit
'13af4d510f95ea2d7bf6fdca143373b96908afbb'
by mistake

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-01 09:06:42 +02:00
Dominik Csapak
13af4d510f ext6migrate: use new charts for node/lxc/qemu
uses the new charts for the rrd graphs in the summary pages
and make them lazy (for minimal performance impact)

also correct some styling errors and move static fields
to the class definition

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-31 10:39:14 +02:00
Dominik Csapak
540fdc8b1e formatting and trailing whitespaces fix
fix format of commit
f2a6ce6cf1
(space before 'load')

also fix trailing whitespaces in those files

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-15 16:31:02 +01:00
Thomas Lamprecht
561312ff62 manager6: web-syslog: add date span selection
This is the ExtJS 6 version from commit
59e6da2d44

Same code as there.
A issue with the date picker which can be triggered by scrolling up
and then selecting a date will be fixed in ExtJS 6.0.2 (not yet
released), a workaround is in the next patch.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-03-15 12:45:08 +01:00
Dominik Csapak
f2a6ce6cf1 ext6migrate: fix store load race condition
when we click on a node/container/vm and quickly
click on something else, there might be a race condition,
where the store finished loading and we try to change
dom elements, which are not there anymore

so we change the store.on to me.mon, which
deletes the handler when the component is gone

in the logview panel we use API2Request, where
we cannot do this, so we check if the component
is destroyed manually

also we change this whenever we change a dom element
in a callback

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-14 17:16:37 +01:00
Dominik Csapak
04a234a024 ext6migrate: fix task history race condition
on destroy, stop the store loading, else
we try to update dom elements which are not there anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-11 16:33:45 +01:00
Dominik Csapak
2851d275bf fix Edit Button in Time Tab
applyIf to apply for tbar

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-04 16:56:59 +01:00
Dominik Csapak
c474314e5a ext6migrate: fix whitespaces and intendation
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-04 10:34:05 +01:00
Dominik Csapak
0e81e8e90d ext6migrate: enable ceph tab on node
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-04 10:33:45 +01:00
Emmanuel Kasper
d934dbca0c fix Timezones window
Ext.regModel() was removed from the framework
rewrite the store in declarative style with inline data
2016-03-02 12:37:16 +01:00
Dominik Csapak
a1460d8db0 ext6migrate: enable firewall and subscription tabs
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-02 06:15:19 +01:00
Dominik Csapak
f2833f5fe3 ext6migrate: fix subscription tab
fixes:
 * update deprecated field
 * move static configuration to class definition
 * change applyIf to apply
 * change system report handler to pass a function to
    check_command (instead of the result of showReport)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-02 06:15:01 +01:00
Emmanuel Kasper
a2f35eb2ea push column items individually
looks like ExtJS is not automatically flattening the array anymore
and items in a multidimensionnal array are not displayed with ExtJS6

lxc/Config.js is still commented because we haven't reached this part
in the upgrade, but fixing there too
2016-02-29 16:52:01 +01:00
Emmanuel Kasper
eb22111997 use 'refresh' event to reload the grid after the store content has changed
this fixes the problem that buttons and grid contents were not updated
after a service stop/start
2016-02-29 15:37:13 +01:00
Emmanuel Kasper
b825d67314 reload stores of tabpanel children on 'activate' event 2016-02-29 15:36:49 +01:00
Emmanuel Kasper
2e81001c2a enable more node panels 2016-02-29 15:34:57 +01:00
Dominik Csapak
a74b7d9663 ext6migrate: enable update and console tab for node
since the console is working again, we can activate the
console tab and the update tab for nodes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-29 10:51:00 +01:00
Emmanuel Kasper
55bc792342 reload stores of tabpanel children on 'activate' event
Tabpanel reload -> send 'show' event -> reload child panel store

do not work with ExtJS6

but

Tabpanel reload -> reload  child panel ->  child send 'show' event ->
reload a grid store in the panel still works

so we don't blindly replace the 'show' events everywhere but only
when the event was expected by a direct child of a tabpanel
2016-02-26 07:38:17 +01:00
Dominik Csapak
e1eeed5a7e ext6migrate: enable syslog and taskhistory tabs
enables the tabs for the nodes view

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-26 07:33:07 +01:00
Dominik Csapak
39e52cd44d ext6migrate: fix Task History for nodes
fixes include:
 move static configuration to class declaration
 use Ext.create instead of new for reload_task
 use store.reload(), because store.filter() triggers no reload with
  activated
 remove store.guaranteeRange hack for infinite grid (works properly now)
 since buffered: true is deprecated, use a BufferedStore instead
 remove verticalScrollerType and invalidateScrollerOnRefresh
  since this does not exist anymore in extjs6

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-26 07:30:21 +01:00
Emmanuel Kasper
355ac51eb2 rename 'autoscroll' parameter to 'scrollable' following framework changes
also move static parameters out of initComponent() for proper panel
initialization
2016-02-17 15:26:49 +01:00
Emmanuel Kasper
0a0ca36c94 remove redundant model definition
pve-services is already declared in ServiceView.js provoking
a namespace clash
2016-02-17 15:25:38 +01:00
Emmanuel Kasper
7621bfbf77 Fix initial loading of Node tabpanel:
* push initial components individually
* replace ifor the momment pvepanels with basic panels so we can at least load the first tabs
* group ceph component with previous push call as they require the same capabilities
2016-02-17 15:23:35 +01:00
Dietmar Maurer
48e8c32a4d copy node/TimeView.js from manager to manager6 2016-02-17 11:55:32 +01:00
Dietmar Maurer
f48586ba86 copy node/TimeEdit.js from manager to manager6 2016-02-17 11:55:32 +01:00
Dietmar Maurer
fec1ae37a8 copy node/Tasks.js from manager to manager6 2016-02-17 11:55:32 +01:00
Dietmar Maurer
e5a857f788 copy node/Summary.js from manager to manager6 2016-02-17 11:55:32 +01:00
Dietmar Maurer
0bef095abc copy node/Subscription.js from manager to manager6 2016-02-17 11:55:32 +01:00