Commit Graph

35 Commits

Author SHA1 Message Date
Wolfgang Bumiller
aa0819a8a5 work around ipv6 browser inconsistencies
Browsers seem to disagree on whether window.location.hostname
shouldinclude the brackets around an ipv6 address.
Adding PVE.Utils.windowHostname() to always strip them away.
2015-05-27 08:28:54 +02:00
Emmanuel Kasper
069d61df10 Remove the queryForm parameter as it blocks the combobox list loading.
For unknown reasons, setting queryForm: here prevents loading
the option list in the combobox.
However: the queryForm parameter only would only make sense if we also
set 'editable' to 'true', since queryForm specifies how the drop down
list should react to user input in the text field of the combobox.
Hence it is safe to remove it.

Tested with ExtJS4 and ExtJS5, this patch has no impact on
the rendering of the underneath node tree.
2015-05-21 12:21:08 +02:00
Emmanuel Kasper
e6c5b14075 Disable setting 'triggerAction' locally as we use the default anyway.
Ref: http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.form.field.ComboBox-cfg-triggerAction
2015-05-21 12:20:06 +02:00
Emmanuel Kasper
cbf554393a remove hardcoded span html tag, as it appears to be unused 2015-05-19 09:26:32 +02:00
Emmanuel Kasper
da00dcd539 ext5migrate: fix display of PVE version underneath product name
With the alignment set to 'middle' in the north region, the 'versioninfo'
component was wrongly pushed downwards, hiding the version string.
Besides that we need to manually set a 'height' argument
to 'versioninfo' equal to the size of the north region, to prevent extjs to
generate a problematic padding.
2015-05-19 09:26:22 +02:00
Emmanuel Kasper
f01259ee05 ext5migrate: replace obsolete 'margins' parameter with 'margin'
As mentioned in
http://docs.sencha.com/extjs/5.1/whats_new/5.0/extjs_upgrade_guide.html
the 'margins' component parameter is now obsolete.
2015-05-19 09:26:11 +02:00
Emmanuel Kasper
5ea3004303 ext5migrate: Replace obsolete call to Ext.ModelMgr.create()
See a736e4b749 for reasoning
2015-05-18 11:25:38 +02:00
Emmanuel Kasper
6ccdfae501 ext5migrate: remove Ext.grid.feature.Chunking hack
With ExtJS 4, we introduced an override to Ext.grid.feature.Chunking
to fix scrollings problems in the grid when having a high number
of nodes. Ext.grid.feature.Chunking has been removed from ExtJS
in version 5, so we hope either the problem is fixed on ExtJS side,
or we will have to find a different workaround.
2015-05-12 16:34:34 +02:00
Dietmar Maurer
acf7653ae9 copy dc/Config.js from manager to manager5 2015-05-05 06:46:37 +02:00
Dietmar Maurer
e5c95a126e copy ResourceGrid.js from manager to manager5 2015-05-05 06:46:11 +02:00
Dietmar Maurer
55ed10904f copy ConfigPanel.js from manager to manager5 2015-05-05 06:45:39 +02:00
Dietmar Maurer
7861642b14 copy StatusPanel.js from manager to manager5 2015-05-05 06:45:04 +02:00
Dietmar Maurer
2c5549525a use generic names (do not include container type) 2015-05-01 11:37:13 +02:00
Emmanuel Kasper
4dca87416d Add Readme explaining how to use extjs5 for dev 2015-04-30 12:38:07 +02:00
Emmanuel Kasper
a736e4b749 ext5migrate: replace deprecated call Ext.ModelMgr.create()
Ext.ModelMgr.create() was removed in 5.*
The recommended way to create a new instance is to call Ext.create()
Ext.create() does not take a "id" argument, however it sets
the id of the instance to the id  of the config object given
to the Ext.create() call.
2015-04-29 13:22:57 +02:00
Emmanuel Kasper
80a04f8ec3 ext5migrate: rename 'root:' property of a Ext.data.reader
This has been renamed to 'rootProperty:' in ExtJS 5. Rename our parameter
accordingly to silence the deprecation warning.
2015-04-28 06:46:57 +02:00
Emmanuel Kasper
d704abbd86 Temporary deactivate southPanel so we can load the rest of the Workspace 2015-04-28 06:46:29 +02:00
Emmanuel Kasper
3b4162189f ext5migration: move afterRequest() declaration
and default values from constructor to class body, needed fix for

"Cannot override method afterRequest on Ext.data.proxy.Ajax instance"

error. See:

https://fiddle.sencha.com/#fiddle/lpe for test fiddle
http://bit.ly/1HJJ0Ej for background
2015-04-28 06:45:03 +02:00
Dietmar Maurer
88d5be7d5b copy LoginWindow.js from manager to manager5 2015-04-27 11:56:45 +02:00
Dietmar Maurer
7375b04d79 copy RealmComboBox.js from manager to manager5 2015-04-27 11:56:18 +02:00
Dietmar Maurer
9002d70cde copy LanguageSelector.js from manager to manager5 2015-04-27 11:55:47 +02:00
Dietmar Maurer
f134c46d4f copy KVComboBox.js from manager to manager5 2015-04-27 11:55:23 +02:00
Dietmar Maurer
c45bc501bc copy UpdateQueue.js from manager to manager5 2015-04-27 11:54:50 +02:00
Emmanuel Kasper
cfb353c894 ext5migration: Replace non working 'text' type with 'string' in model definition
See http://stackoverflow.com/questions/29748414/ext-createbyalias-unrecognized-alias-data-field-text-when-migrating-a-ext4

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2015-04-22 15:44:56 +02:00
Dietmar Maurer
695ae97b20 fix/add CSS classes for LXC
The logo is still wrong.
2015-04-21 06:57:57 +02:00
Dietmar Maurer
8a52defde7 Utils.js: add more regex for IPs 2015-04-20 17:05:36 +02:00
Dietmar Maurer
83726b9d67 copy tree/ResourceTree.js from manager to manager5 2015-04-20 06:14:55 +02:00
Dietmar Maurer
4e247bf4be copy form/ViewSelector.js from manager to manager5 2015-04-20 06:11:26 +02:00
Dietmar Maurer
4053fc86f2 copy data/ResourceStore.js from manager to manager5 2015-04-20 06:10:08 +02:00
Dietmar Maurer
3445bd32ba copy data/UpdateStore.js from manager to manager5 2015-04-20 06:08:47 +02:00
Dietmar Maurer
ac40457879 copy data/PVEProxy.js from manager to manager5 2015-04-20 06:07:49 +02:00
Dietmar Maurer
f6dd72c19c copy StateProvider.js from manager to manager5 2015-04-20 06:06:28 +02:00
Dietmar Maurer
787ae72a20 copy Workspace.js from manager to manager5 2015-04-20 06:05:29 +02:00
Dietmar Maurer
9e361643a8 GUI: use lxc instead of openvz 2015-04-18 09:47:58 +02:00
Emmanuel Kasper
b0a6d32616 copy Utils.js from manager to manager5
Developement of the ext5 version of the pve-manager will take place
in the www/management5 directory of the git repo.
We start the initial import with Utils.js, who contains variables and
static functions used by all other components.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2015-04-15 07:35:47 +02:00