mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 22:13:24 +00:00
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>
This commit is contained in:
parent
9cb193cf8c
commit
56a353b9e7
@ -14,8 +14,8 @@ JSSRC= \
|
|||||||
lxc/CmdMenu.js \
|
lxc/CmdMenu.js \
|
||||||
node/CmdMenu.js \
|
node/CmdMenu.js \
|
||||||
VNCConsole.js \
|
VNCConsole.js \
|
||||||
data/PVEProxy.js \
|
|
||||||
data/ResourceStore.js \
|
data/ResourceStore.js \
|
||||||
|
data/model/Realm.js \
|
||||||
data/model/RRDModels.js \
|
data/model/RRDModels.js \
|
||||||
form/VLanField.js \
|
form/VLanField.js \
|
||||||
form/Boolean.js \
|
form/Boolean.js \
|
||||||
|
@ -72,7 +72,7 @@ Ext.define('PVE.node.CephMonList', {
|
|||||||
storeid: 'ceph-mon-list' + nodename,
|
storeid: 'ceph-mon-list' + nodename,
|
||||||
model: 'ceph-mon-list',
|
model: 'ceph-mon-list',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/nodes/" + nodename + "/ceph/mon"
|
url: "/api2/json/nodes/" + nodename + "/ceph/mon"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -42,7 +42,7 @@ Ext.define('PVE.form.CephDiskSelector', {
|
|||||||
filterOnLoad: true,
|
filterOnLoad: true,
|
||||||
model: 'ceph-disk-list',
|
model: 'ceph-disk-list',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/nodes/" + nodename + "/ceph/disks",
|
url: "/api2/json/nodes/" + nodename + "/ceph/disks",
|
||||||
extraParams: { type: me.diskType }
|
extraParams: { type: me.diskType }
|
||||||
},
|
},
|
||||||
|
@ -157,7 +157,7 @@ Ext.define('PVE.node.CephPoolList', {
|
|||||||
storeid: 'ceph-pool-list' + nodename,
|
storeid: 'ceph-pool-list' + nodename,
|
||||||
model: 'ceph-pool-list',
|
model: 'ceph-pool-list',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/nodes/" + nodename + "/ceph/pools"
|
url: "/api2/json/nodes/" + nodename + "/ceph/pools"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -257,7 +257,7 @@ Ext.define('PVE.form.CephRuleSelector', {
|
|||||||
fields: ['name'],
|
fields: ['name'],
|
||||||
sorters: 'name',
|
sorters: 'name',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/ceph/rules'
|
url: '/api2/json/nodes/' + me.nodename + '/ceph/rules'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -272,7 +272,7 @@ Ext.define('PVE.node.CephStatus', {
|
|||||||
storeid: 'ceph-status-' + nodename,
|
storeid: 'ceph-status-' + nodename,
|
||||||
interval: 5000,
|
interval: 5000,
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + nodename + '/ceph/status'
|
url: '/api2/json/nodes/' + nodename + '/ceph/status'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,103 +0,0 @@
|
|||||||
Ext.define('PVE.RestProxy', {
|
|
||||||
extend: 'Ext.data.RestProxy',
|
|
||||||
alias : 'proxy.pve',
|
|
||||||
|
|
||||||
pageParam : null,
|
|
||||||
startParam: null,
|
|
||||||
limitParam: null,
|
|
||||||
groupParam: null,
|
|
||||||
sortParam: null,
|
|
||||||
filterParam: null,
|
|
||||||
noCache : false,
|
|
||||||
afterRequest: function(request, success) {
|
|
||||||
this.fireEvent('afterload', this, request, success);
|
|
||||||
return;
|
|
||||||
},
|
|
||||||
|
|
||||||
constructor: function(config) {
|
|
||||||
|
|
||||||
Ext.applyIf(config, {
|
|
||||||
reader: {
|
|
||||||
type: 'json',
|
|
||||||
rootProperty: config.root || 'data'
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
this.callParent([config]);
|
|
||||||
}
|
|
||||||
|
|
||||||
}, function() {
|
|
||||||
|
|
||||||
Ext.define('pve-domains', {
|
|
||||||
extend: "Ext.data.Model",
|
|
||||||
fields: [ 'realm', 'type', 'comment', 'default', 'tfa',
|
|
||||||
{
|
|
||||||
name: 'descr',
|
|
||||||
// Note: We use this in the RealmComboBox.js
|
|
||||||
// (see Bug #125)
|
|
||||||
convert: function(value, record) {
|
|
||||||
var info = record.data;
|
|
||||||
var text;
|
|
||||||
|
|
||||||
if (value) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
// return realm if there is no comment
|
|
||||||
text = info.comment || info.realm;
|
|
||||||
|
|
||||||
if (info.tfa) {
|
|
||||||
text += " (+ " + info.tfa + ")";
|
|
||||||
}
|
|
||||||
|
|
||||||
return Ext.String.htmlEncode(text);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
idProperty: 'realm',
|
|
||||||
proxy: {
|
|
||||||
type: 'pve',
|
|
||||||
url: "/api2/json/access/domains"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
Ext.define('KeyValue', {
|
|
||||||
extend: "Ext.data.Model",
|
|
||||||
fields: [ 'key', 'value' ],
|
|
||||||
idProperty: 'key'
|
|
||||||
});
|
|
||||||
|
|
||||||
Ext.define('KeyValuePendingDelete', {
|
|
||||||
extend: "Ext.data.Model",
|
|
||||||
fields: [ 'key', 'value', 'pending', 'delete' ],
|
|
||||||
idProperty: 'key'
|
|
||||||
});
|
|
||||||
|
|
||||||
Ext.define('pve-string-list', {
|
|
||||||
extend: 'Ext.data.Model',
|
|
||||||
fields: [ 'n', 't' ],
|
|
||||||
idProperty: 'n'
|
|
||||||
});
|
|
||||||
|
|
||||||
Ext.define('pve-tasks', {
|
|
||||||
extend: 'Ext.data.Model',
|
|
||||||
fields: [
|
|
||||||
{ name: 'starttime', type : 'date', dateFormat: 'timestamp' },
|
|
||||||
{ name: 'endtime', type : 'date', dateFormat: 'timestamp' },
|
|
||||||
{ name: 'pid', type: 'int' },
|
|
||||||
'node', 'upid', 'user', 'status', 'type', 'id'
|
|
||||||
],
|
|
||||||
idProperty: 'upid'
|
|
||||||
});
|
|
||||||
|
|
||||||
Ext.define('pve-cluster-log', {
|
|
||||||
extend: 'Ext.data.Model',
|
|
||||||
fields: [
|
|
||||||
{ name: 'uid' , type: 'int' },
|
|
||||||
{ name: 'time', type : 'date', dateFormat: 'timestamp' },
|
|
||||||
{ name: 'pri', type: 'int' },
|
|
||||||
{ name: 'pid', type: 'int' },
|
|
||||||
'node', 'user', 'tag', 'msg', 'id'
|
|
||||||
],
|
|
||||||
idProperty: 'id'
|
|
||||||
});
|
|
||||||
});
|
|
@ -268,7 +268,7 @@ Ext.define('PVE.data.ResourceStore', {
|
|||||||
extend: "Ext.data.Model",
|
extend: "Ext.data.Model",
|
||||||
fields: fields,
|
fields: fields,
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/cluster/resources'
|
url: '/api2/json/cluster/resources'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
29
www/manager6/data/model/Realm.js
Normal file
29
www/manager6/data/model/Realm.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
Ext.define('pve-domains', {
|
||||||
|
extend: "Ext.data.Model",
|
||||||
|
fields: [
|
||||||
|
'realm', 'type', 'comment', 'default', 'tfa',
|
||||||
|
{
|
||||||
|
name: 'descr',
|
||||||
|
// Note: We use this in the RealmComboBox.js (see Bug #125)
|
||||||
|
convert: function(value, record) {
|
||||||
|
if (value) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
var info = record.data;
|
||||||
|
// return realm if there is no comment
|
||||||
|
var text = info.comment || info.realm;
|
||||||
|
|
||||||
|
if (info.tfa) {
|
||||||
|
text += " (+ " + info.tfa + ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
return Ext.String.htmlEncode(text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
proxy: {
|
||||||
|
type: 'proxmox',
|
||||||
|
url: "/api2/json/access/domains"
|
||||||
|
}
|
||||||
|
});
|
@ -87,7 +87,7 @@ Ext.define('PVE.dc.ACLView', {
|
|||||||
var store = Ext.create('Ext.data.Store',{
|
var store = Ext.create('Ext.data.Store',{
|
||||||
model: 'pve-acl',
|
model: 'pve-acl',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/access/acl"
|
url: "/api2/json/access/acl"
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
|
@ -331,7 +331,7 @@ Ext.define('PVE.dc.BackupView', {
|
|||||||
var store = new Ext.data.Store({
|
var store = new Ext.data.Store({
|
||||||
model: 'pve-cluster-backup',
|
model: 'pve-cluster-backup',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/cluster/backup"
|
url: "/api2/json/cluster/backup"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -171,7 +171,7 @@ Ext.define('PVE.dc.Health', {
|
|||||||
interval: 3000,
|
interval: 3000,
|
||||||
storeid: 'pve-cluster-ceph',
|
storeid: 'pve-cluster-ceph',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/localhost/ceph/status'
|
url: '/api2/json/nodes/localhost/ceph/status'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -12,9 +12,9 @@ Ext.define('PVE.dc.Log', {
|
|||||||
|
|
||||||
var logstore = Ext.create('Proxmox.data.UpdateStore', {
|
var logstore = Ext.create('Proxmox.data.UpdateStore', {
|
||||||
storeid: 'pve-cluster-log',
|
storeid: 'pve-cluster-log',
|
||||||
model: 'pve-cluster-log',
|
model: 'proxmox-cluster-log',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/cluster/log'
|
url: '/api2/json/cluster/log'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -95,7 +95,7 @@ Ext.define('PVE.SecurityGroupList', {
|
|||||||
var store = new Ext.data.Store({
|
var store = new Ext.data.Store({
|
||||||
model: 'pve-security-groups',
|
model: 'pve-security-groups',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json' + me.base_url
|
url: '/api2/json' + me.base_url
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
|
@ -15,7 +15,7 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
var store = new Ext.data.Store({
|
var store = new Ext.data.Store({
|
||||||
model: 'pve-storage',
|
model: 'pve-storage',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/storage"
|
url: "/api2/json/storage"
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
|
@ -62,7 +62,7 @@ Ext.define('PVE.dc.Summary', {
|
|||||||
storeid: 'pve-cluster-status',
|
storeid: 'pve-cluster-status',
|
||||||
model: 'pve-dc-nodes',
|
model: 'pve-dc-nodes',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/cluster/status"
|
url: "/api2/json/cluster/status"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -12,9 +12,9 @@ Ext.define('PVE.dc.Tasks', {
|
|||||||
|
|
||||||
var taskstore = Ext.create('Proxmox.data.UpdateStore', {
|
var taskstore = Ext.create('Proxmox.data.UpdateStore', {
|
||||||
storeid: 'pve-cluster-tasks',
|
storeid: 'pve-cluster-tasks',
|
||||||
model: 'pve-tasks',
|
model: 'proxmox-tasks',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/cluster/tasks'
|
url: '/api2/json/cluster/tasks'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -49,7 +49,7 @@ Ext.define('PVE.form.BridgeSelector', {
|
|||||||
me.nodename = nodename;
|
me.nodename = nodename;
|
||||||
|
|
||||||
me.store.setProxy({
|
me.store.setProxy({
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/network?type=' +
|
url: '/api2/json/nodes/' + me.nodename + '/network?type=' +
|
||||||
me.bridgeType
|
me.bridgeType
|
||||||
});
|
});
|
||||||
|
@ -19,7 +19,7 @@ Ext.define('PVE.form.CephPoolSelector', {
|
|||||||
fields: ['name'],
|
fields: ['name'],
|
||||||
sorters: 'name',
|
sorters: 'name',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/ceph/pools'
|
url: '/api2/json/nodes/' + me.nodename + '/ceph/pools'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -30,7 +30,7 @@ Ext.define('PVE.form.FileSelector', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
me.store.setProxy({
|
me.store.setProxy({
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: url
|
url: url
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ Ext.define('PVE.form.GlobalSearchField', {
|
|||||||
store: {
|
store: {
|
||||||
model: 'PVEResources',
|
model: 'PVEResources',
|
||||||
proxy:{
|
proxy:{
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/extjs/cluster/resources'
|
url: '/api2/extjs/cluster/resources'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -49,7 +49,7 @@ Ext.define('PVE.form.GroupSelector', {
|
|||||||
extend: 'Ext.data.Model',
|
extend: 'Ext.data.Model',
|
||||||
fields: [ 'groupid', 'comment' ],
|
fields: [ 'groupid', 'comment' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/access/groups"
|
url: "/api2/json/access/groups"
|
||||||
},
|
},
|
||||||
idProperty: 'groupid'
|
idProperty: 'groupid'
|
||||||
|
@ -28,7 +28,7 @@ Ext.define('PVE.form.IPRefSelector', {
|
|||||||
fields: [ 'type', 'name', 'ref', 'comment' ],
|
fields: [ 'type', 'name', 'ref', 'comment' ],
|
||||||
idProperty: 'ref',
|
idProperty: 'ref',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: url
|
url: url
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
|
@ -21,7 +21,7 @@ Ext.define('PVE.form.NodeSelector', {
|
|||||||
store: {
|
store: {
|
||||||
fields: [ 'node', 'cpu', 'maxcpu', 'mem', 'maxmem', 'uptime' ],
|
fields: [ 'node', 'cpu', 'maxcpu', 'mem', 'maxmem', 'uptime' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes'
|
url: '/api2/json/nodes'
|
||||||
},
|
},
|
||||||
sorters: [
|
sorters: [
|
||||||
|
@ -47,7 +47,7 @@ Ext.define('PVE.form.PoolSelector', {
|
|||||||
extend: 'Ext.data.Model',
|
extend: 'Ext.data.Model',
|
||||||
fields: [ 'poolid', 'comment' ],
|
fields: [ 'poolid', 'comment' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/pools"
|
url: "/api2/json/pools"
|
||||||
},
|
},
|
||||||
idProperty: 'poolid'
|
idProperty: 'poolid'
|
||||||
|
@ -41,7 +41,7 @@ Ext.define('PVE.form.RoleSelector', {
|
|||||||
extend: 'Ext.data.Model',
|
extend: 'Ext.data.Model',
|
||||||
fields: [ 'roleid', 'privs' ],
|
fields: [ 'roleid', 'privs' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/access/roles"
|
url: "/api2/json/access/roles"
|
||||||
},
|
},
|
||||||
idProperty: 'roleid'
|
idProperty: 'roleid'
|
||||||
|
@ -12,7 +12,7 @@ Ext.define('PVE.form.SecurityGroupsSelector', {
|
|||||||
fields: [ 'group', 'comment' ],
|
fields: [ 'group', 'comment' ],
|
||||||
idProperty: 'group',
|
idProperty: 'group',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/cluster/firewall/groups"
|
url: "/api2/json/cluster/firewall/groups"
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
|
@ -21,7 +21,7 @@ Ext.define('PVE.form.SnapshotSelector', {
|
|||||||
me.vmid = vmid;
|
me.vmid = vmid;
|
||||||
|
|
||||||
me.store.setProxy({
|
me.store.setProxy({
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/qemu/' + me.vmid +'/snapshot'
|
url: '/api2/json/nodes/' + me.nodename + '/qemu/' + me.vmid +'/snapshot'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ Ext.define('PVE.form.StorageSelector', {
|
|||||||
params.enabled = 1; // skip disabled storages
|
params.enabled = 1; // skip disabled storages
|
||||||
}
|
}
|
||||||
me.store.setProxy({
|
me.store.setProxy({
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: url,
|
url: url,
|
||||||
extraParams: params
|
extraParams: params
|
||||||
});
|
});
|
||||||
|
@ -43,7 +43,7 @@ Ext.define('PVE.form.USBSelector', {
|
|||||||
var store = new Ext.data.Store({
|
var store = new Ext.data.Store({
|
||||||
model: 'pve-usb-' + me.type,
|
model: 'pve-usb-' + me.type,
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/nodes/" + nodename + "/scan/usb"
|
url: "/api2/json/nodes/" + nodename + "/scan/usb"
|
||||||
},
|
},
|
||||||
filters: [
|
filters: [
|
||||||
|
@ -65,7 +65,7 @@ Ext.define('PVE.form.UserSelector', {
|
|||||||
{ type: 'date', dateFormat: 'timestamp', name: 'expire' }
|
{ type: 'date', dateFormat: 'timestamp', name: 'expire' }
|
||||||
],
|
],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/access/users"
|
url: "/api2/json/access/users"
|
||||||
},
|
},
|
||||||
idProperty: 'userid'
|
idProperty: 'userid'
|
||||||
|
@ -75,7 +75,7 @@ Ext.define('PVE.grid.BackupView', {
|
|||||||
url += '?content=backup';
|
url += '?content=backup';
|
||||||
|
|
||||||
me.store.setProxy({
|
me.store.setProxy({
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: url
|
url: url
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ Ext.define('PVE.FirewallAliases', {
|
|||||||
var store = new Ext.data.Store({
|
var store = new Ext.data.Store({
|
||||||
model: 'pve-fw-aliases',
|
model: 'pve-fw-aliases',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json" + me.base_url
|
url: "/api2/json" + me.base_url
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
|
@ -29,7 +29,7 @@ Ext.define('PVE.form.FWMacroSelector', {
|
|||||||
fields: [ 'macro', 'descr' ],
|
fields: [ 'macro', 'descr' ],
|
||||||
idProperty: 'macro',
|
idProperty: 'macro',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/cluster/firewall/macros"
|
url: "/api2/json/cluster/firewall/macros"
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
@ -413,7 +413,7 @@ Ext.define('PVE.FirewallRules', {
|
|||||||
me.groupBtn.setDisabled(false);
|
me.groupBtn.setDisabled(false);
|
||||||
}
|
}
|
||||||
me.store.setProxy({
|
me.store.setProxy({
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json' + url
|
url: '/api2/json' + url
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ Ext.define('PVE.grid.PoolMembers', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
root: 'data.members',
|
root: 'data.members',
|
||||||
url: "/api2/json/pools/" + me.pool
|
url: "/api2/json/pools/" + me.pool
|
||||||
}
|
}
|
||||||
|
@ -436,7 +436,7 @@ Ext.define('PVE.grid.ReplicaView', {
|
|||||||
model: (mode === 'dc')? 'pve-replication' : 'pve-replication-state',
|
model: (mode === 'dc')? 'pve-replication' : 'pve-replication-state',
|
||||||
interval: 3000,
|
interval: 3000,
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json" + url
|
url: "/api2/json" + url
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -58,7 +58,7 @@ Ext.define('PVE.ha.GroupSelector', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/cluster/ha/groups"
|
url: "/api2/json/cluster/ha/groups"
|
||||||
},
|
},
|
||||||
idProperty: 'group'
|
idProperty: 'group'
|
||||||
|
@ -15,7 +15,7 @@ Ext.define('PVE.ha.Status', {
|
|||||||
storeid: 'pve-store-' + (++Ext.idSeed),
|
storeid: 'pve-store-' + (++Ext.idSeed),
|
||||||
groupField: 'type',
|
groupField: 'type',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/cluster/ha/status/current'
|
url: '/api2/json/cluster/ha/status/current'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -142,7 +142,7 @@ Ext.define('PVE.node.DiskList', {
|
|||||||
storeid: 'node-disk-list' + nodename,
|
storeid: 'node-disk-list' + nodename,
|
||||||
model: 'node-disk-list',
|
model: 'node-disk-list',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/nodes/" + nodename + "/disks/list"
|
url: "/api2/json/nodes/" + nodename + "/disks/list"
|
||||||
},
|
},
|
||||||
sorters: [
|
sorters: [
|
||||||
@ -337,7 +337,7 @@ Ext.define('PVE.DiskSmartWindow', {
|
|||||||
me.store = Ext.create('Ext.data.Store', {
|
me.store = Ext.create('Ext.data.Store', {
|
||||||
model: 'disk-smart',
|
model: 'disk-smart',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json/nodes/" + nodename + "/disks/smart?disk=" + dev
|
url: "/api2/json/nodes/" + nodename + "/disks/smart?disk=" + dev
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -34,7 +34,7 @@ Ext.define('PVE.IPSetList', {
|
|||||||
var store = new Ext.data.Store({
|
var store = new Ext.data.Store({
|
||||||
model: 'pve-fw-ipsets',
|
model: 'pve-fw-ipsets',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: "/api2/json" + me.base_url
|
url: "/api2/json" + me.base_url
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
@ -274,7 +274,7 @@ Ext.define('PVE.IPSetGrid', {
|
|||||||
me.addBtn.setDisabled(false);
|
me.addBtn.setDisabled(false);
|
||||||
me.removeBtn.baseurl = url + '/';
|
me.removeBtn.baseurl = url + '/';
|
||||||
me.store.setProxy({
|
me.store.setProxy({
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json' + url
|
url: '/api2/json' + url
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ Ext.define('PVE.grid.TemplateSelector', {
|
|||||||
model: 'pve-aplinfo',
|
model: 'pve-aplinfo',
|
||||||
groupField: 'section',
|
groupField: 'section',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json' + baseurl
|
url: '/api2/json' + baseurl
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -355,7 +355,7 @@ Ext.define('PVE.storage.ContentView', {
|
|||||||
model: 'pve-storage-content',
|
model: 'pve-storage-content',
|
||||||
groupField: 'content',
|
groupField: 'content',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json' + baseurl
|
url: '/api2/json' + baseurl
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
|
@ -42,7 +42,7 @@ Ext.define('PVE.storage.GlusterFsScan', {
|
|||||||
var store = Ext.create('Ext.data.Store', {
|
var store = Ext.create('Ext.data.Store', {
|
||||||
fields: [ 'volname' ],
|
fields: [ 'volname' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/scan/glusterfs'
|
url: '/api2/json/nodes/' + me.nodename + '/scan/glusterfs'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -41,7 +41,7 @@ Ext.define('PVE.storage.IScsiScan', {
|
|||||||
var store = Ext.create('Ext.data.Store', {
|
var store = Ext.create('Ext.data.Store', {
|
||||||
fields: [ 'target', 'portal' ],
|
fields: [ 'target', 'portal' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/scan/iscsi'
|
url: '/api2/json/nodes/' + me.nodename + '/scan/iscsi'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -16,7 +16,7 @@ Ext.define('PVE.storage.VgSelector', {
|
|||||||
autoLoad: {}, // true,
|
autoLoad: {}, // true,
|
||||||
fields: [ 'vg', 'size', 'free' ],
|
fields: [ 'vg', 'size', 'free' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/scan/lvm'
|
url: '/api2/json/nodes/' + me.nodename + '/scan/lvm'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -66,7 +66,7 @@ Ext.define('PVE.storage.BaseStorageSelector', {
|
|||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/storage/'
|
url: '/api2/json/storage/'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -38,7 +38,7 @@ Ext.define('PVE.storage.TPoolSelector', {
|
|||||||
var store = Ext.create('Ext.data.Store', {
|
var store = Ext.create('Ext.data.Store', {
|
||||||
fields: [ 'lv' ],
|
fields: [ 'lv' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/scan/lvmthin'
|
url: '/api2/json/nodes/' + me.nodename + '/scan/lvmthin'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -75,7 +75,7 @@ Ext.define('PVE.storage.BaseVGSelector', {
|
|||||||
autoLoad: {},
|
autoLoad: {},
|
||||||
fields: [ 'vg', 'size', 'free'],
|
fields: [ 'vg', 'size', 'free'],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/scan/lvm'
|
url: '/api2/json/nodes/' + me.nodename + '/scan/lvm'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -42,7 +42,7 @@ Ext.define('PVE.storage.NFSScan', {
|
|||||||
var store = Ext.create('Ext.data.Store', {
|
var store = Ext.create('Ext.data.Store', {
|
||||||
fields: [ 'path', 'options' ],
|
fields: [ 'path', 'options' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/scan/nfs'
|
url: '/api2/json/nodes/' + me.nodename + '/scan/nfs'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -19,7 +19,7 @@ Ext.define('PVE.storage.ZFSPoolSelector', {
|
|||||||
autoLoad: {}, // true,
|
autoLoad: {}, // true,
|
||||||
fields: [ 'pool', 'size', 'free' ],
|
fields: [ 'pool', 'size', 'free' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/scan/zfs'
|
url: '/api2/json/nodes/' + me.nodename + '/scan/zfs'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user