]>
git.proxmox.com Git - pve-manager.git/blob - www/mobile/PVEProxy.js
1 Ext
.define('PVE.RestProxy', {
2 extend
: 'Ext.data.RestProxy',
5 constructor: function(config
) {
20 rootProperty
: config
.root
|| 'data'
22 afterRequest: function(request
, success
) {
23 me
.fireEvent('afterload', me
, request
, success
);
28 me
.callParent([config
]);
32 Ext
.define('pve-domains', {
33 extend
: "Ext.data.Model",
36 fields
: [ 'realm', 'type', 'comment', 'default', 'tfa',
39 // Note: We use this in the RealmComboBox.js
41 convert: function(value
, record
) {
42 var info
= record
.data
;
48 // return realm if there is no comment
49 text
= info
.comment
|| info
.realm
;
52 text
+= " (+ " + info
.tfa
+ ")";
61 url
: "/api2/json/access/domains"
66 Ext
.define('pve-tasks', {
67 extend
: 'Ext.data.Model',
70 { name
: 'starttime', type
: 'date', dateFormat
: 'timestamp' },
71 { name
: 'endtime', type
: 'date', dateFormat
: 'timestamp' },
72 { name
: 'pid', type
: 'int' },
73 'node', 'upid', 'user', 'status', 'type', 'id'