width: 300,
title: gettext('Dashboard Options'),
layout: {
- type: 'auto'
+ type: 'auto',
},
items: [{
xtype: 'form',
minValue: 1,
maxValue: 24,
value: viewModel.get('hours'),
- fieldLabel: gettext('Hours to show')
+ fieldLabel: gettext('Hours to show'),
}],
buttons: [{
text: gettext('Save'),
var hours = win.down('#hours').getValue();
me.setHours(hours, true);
win.close();
- }
- }]
- }]
+ },
+ }],
+ }],
}).show();
},
el.select();
document.execCommand("copy");
},
- text: gettext('Copy')
+ text: gettext('Copy'),
},
{
text: gettext('Ok'),
me.lookup('longesttasks').updateTasks(top10);
let data = {
- backup: { error: 0, warning: 0, ok: 0, },
- prune: { error: 0, warning: 0, ok: 0, },
- garbage_collection: { error: 0, warning: 0, ok: 0, },
- sync: { error: 0, warning: 0, ok: 0, },
+ backup: { error: 0, warning: 0, ok: 0 },
+ prune: { error: 0, warning: 0, ok: 0 },
+ garbage_collection: { error: 0, warning: 0, ok: 0 },
+ sync: { error: 0, warning: 0, ok: 0 },
};
records.forEach(record => {
var sp = Ext.state.Manager.getProvider();
var hours = sp.get('dashboard-hours') || 12;
me.setHours(hours, false);
- }
+ },
},
viewModel: {
fingerprint: "",
'bytes_in': 0,
'bytes_out': 0,
- 'avg_ptime': 0.0
+ 'avg_ptime': 0.0,
},
formulas: {
autoDestroy: true,
proxy: {
type: 'proxmox',
- url: '/api2/json/nodes/localhost/status'
+ url: '/api2/json/nodes/localhost/status',
},
listeners: {
- load: 'updateUsageStats'
- }
+ load: 'updateUsageStats',
+ },
},
subscription: {
storeid: 'dash-subscription',
autoDestroy: true,
proxy: {
type: 'proxmox',
- url: '/api2/json/nodes/localhost/subscription'
+ url: '/api2/json/nodes/localhost/subscription',
},
listeners: {
- load: 'updateSubscription'
- }
+ load: 'updateSubscription',
+ },
},
tasks: {
storeid: 'dash-tasks',
model: 'proxmox-tasks',
proxy: {
type: 'proxmox',
- url: '/api2/json/status/tasks'
+ url: '/api2/json/status/tasks',
},
listeners: {
- load: 'updateTasks'
- }
+ load: 'updateTasks',
+ },
},
- }
+ },
},
title: gettext('Dashboard') + ' - WIP',
layout: {
- type: 'column'
+ type: 'column',
},
bodyPadding: '20 0 0 20',
defaults: {
columnWidth: 0.49,
xtype: 'panel',
- margin: '0 20 20 0'
+ margin: '0 20 20 0',
},
scrollable: true,
],
layout: {
type: 'hbox',
- align: 'center'
+ align: 'center',
},
defaults: {
xtype: 'proxmoxGauge',
spriteFontSize: '20px',
- flex: 1
+ flex: 1,
},
items: [
{
title: gettext('CPU'),
- reference: 'cpu'
+ reference: 'cpu',
},
{
title: gettext('Memory'),
- reference: 'mem'
+ reference: 'mem',
},
{
title: gettext('Root Disk'),
- reference: 'root'
- }
- ]
+ reference: 'root',
+ },
+ ],
},
{
xtype: 'pbsDatastoresStatistics',
reference: 'subscription',
xtype: 'pbsSubscriptionInfo',
},
- ]
+ ],
});
Ext.define('PBS.dashboard.SubscriptionInfo', {
xtype: 'pbsSubscriptionInfo',
style: {
- cursor: 'pointer'
+ cursor: 'pointer',
},
layout: {
fn: function() {
var mainview = this.component.up('mainview');
mainview.getController().redirectTo('pbsSubscription');
- }
- }
- }
+ },
+ },
+ },
});