jslint: remove trailing commas

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-10-23 15:01:09 +02:00 committed by Dietmar Maurer
parent ff735274ca
commit 771bd0b94b
38 changed files with 109 additions and 109 deletions

View File

@ -31,7 +31,7 @@ Ext.define('PMG.Application', {
me.currentView.destroy();
me.currentView = Ext.create({
xtype: view,
targetview: me.targetview,
targetview: me.targetview
});
if (skipCheck !== true) {
Proxmox.Utils.checked_command(function() {}); // display subscription status

View File

@ -19,7 +19,7 @@ Ext.define('PMG.ClamAVDatabaseConfig', {
Ext.apply(me, {
url: '/api2/json' + baseurl,
editorConfig: {
url: '/api2/extjs' + baseurl,
url: '/api2/extjs' + baseurl
},
interval: 5000,
cwidth1: 200,
@ -98,7 +98,7 @@ Ext.define('PMG.ClamAVDatabaseStatus', {
flex: 1,
sortable: true,
dataIndex: 'nsigs'
},
}
],
listeners: {
activate: me.reload

View File

@ -82,7 +82,7 @@ Ext.define('PMG.ContactDetails', {
header: gettext('Time'),
format: 'H:i:s',
dataIndex: 'time'
},
}
],
initComponent: function() {
@ -119,7 +119,7 @@ Ext.define('PMG.ContactList', {
'contact',
{ type: 'integer', name: 'count' },
{ type: 'integer', name: 'viruscount' },
{ type: 'integer', name: 'bytes' },
{ type: 'integer', name: 'bytes' }
],
proxy: {
type: 'pmgfilterproxy',
@ -192,7 +192,7 @@ Ext.define('PMG.ContactStatistics', {
layout: 'border',
border: false,
defaults: {
border: false,
border: false
},
controller: {
@ -219,7 +219,7 @@ Ext.define('PMG.ContactStatistics', {
layout: 'fit',
flex: 1,
listeners: { selectionchange: 'selectionChange' },
listeners: { selectionchange: 'selectionChange' }
},
{
xtype: 'pmgContactDetails',

View File

@ -42,7 +42,7 @@ Ext.define('PMG.Dashboard', {
win.close();
}
}]
}],
}]
}).show();
},
@ -156,7 +156,7 @@ Ext.define('PMG.Dashboard', {
hours: 12, // in hours
'bytes_in': 0,
'bytes_out': 0,
'avg_ptime': 0.0,
'avg_ptime': 0.0
},
stores: {
@ -244,7 +244,7 @@ Ext.define('PMG.Dashboard', {
type: 'proxmox',
url: '/api2/json/statistics/recentreceivers',
extraParams: {
hours: '{hours}',
hours: '{hours}'
}
},
fields: [
@ -288,7 +288,7 @@ Ext.define('PMG.Dashboard', {
title: gettext('E-Mail Volume'),
layout: {
type: 'vbox',
align: 'stretch',
align: 'stretch'
},
defaults: {
xtype: 'pmgMiniGraph',
@ -309,8 +309,8 @@ Ext.define('PMG.Dashboard', {
highlightCfg: {
opacity: 1,
scaling: 1
},
},
}
}
},
{
fields: ['spam'],
@ -324,9 +324,9 @@ Ext.define('PMG.Dashboard', {
highlightCfg: {
opacity: 1,
scaling: 1
},
},
},
}
}
}
]
},
{
@ -334,7 +334,7 @@ Ext.define('PMG.Dashboard', {
height: 300,
layout: {
type: 'vbox',
align: 'stretch',
align: 'stretch'
},
items: [
{
@ -348,7 +348,7 @@ Ext.define('PMG.Dashboard', {
'out': '{bytes_out}',
'ptime': '{avg_ptime}'
}
},
}
},
{
iconCls: 'fa fa-ticket',
@ -356,7 +356,7 @@ Ext.define('PMG.Dashboard', {
reference: 'subscription',
xtype: 'pmgSubscriptionInfo',
margin: '10 0 0 0',
height: 110,
height: 110
}
]
},
@ -416,7 +416,7 @@ Ext.define('PMG.Dashboard', {
columnLines: false,
rowLines: false,
viewConfig: {
stripeRows: false,
stripeRows: false
},
columns: [

View File

@ -73,7 +73,7 @@ Ext.define('PMG.FetchmailEdit', {
name: 'target',
fieldLabel: gettext('Deliver to'),
allowBlank: false
},
}
],
column2: [

View File

@ -5,7 +5,7 @@ Ext.define('pmg-fetchmail-users', {
'id', 'protocol', 'port', 'server', 'user', 'pass', 'target',
'ssl', 'keep',
{ type: 'integer', name: 'interval' },
{ type: 'boolean', name: 'enable' },
{ type: 'boolean', name: 'enable' }
],
proxy: {
type: 'proxmox',
@ -39,7 +39,7 @@ Ext.define('PMG.FetchmailView', {
var win = Ext.create('PMG.FetchmailEdit', {
url: view.baseurl,
method: 'POST',
method: 'POST'
});
win.on('destroy', function() { view.store.load() });
win.show();
@ -84,12 +84,12 @@ Ext.define('PMG.FetchmailView', {
reference: 'removeBtn',
callback: 'onAfterRemove',
waitMsgTarget: true
},
}
],
listeners: {
//scope: 'controller',
itemdblclick: 'onEdit',
itemdblclick: 'onEdit'
},
columns: [

View File

@ -83,7 +83,7 @@ Ext.define('PMG.HourlyMailDistribution', {
{ type: 'integer', name: 'viruscount_in' },
{ type: 'integer', name: 'viruscount_ou' },
{ type: 'integer', name: 'bounces_in' },
{ type: 'integer', name: 'bounces_out' },
{ type: 'integer', name: 'bounces_out' }
]
});

View File

@ -76,7 +76,7 @@ Ext.define('PMG.LDAPInputPanel', {
deleteEmpty: me.create ? false : true,
minValue: 1,
maxValue: 65535,
fieldLabel: gettext('Port'),
fieldLabel: gettext('Port')
},
{
xtype: 'textfield',
@ -294,7 +294,7 @@ Ext.define('PMG.LDAPConfig', {
},
columns: [
{ dataIndex: 'email', text: gettext('E-Mail address'), flex: 1 }
],
]
}]
}).show();
},
@ -373,7 +373,7 @@ Ext.define('PMG.LDAPConfig', {
region: 'center',
reference: 'grid',
xtype: 'pmgLDAPConfigGrid',
border: false,
border: false
},
{
xtype: 'tabpanel',
@ -426,11 +426,11 @@ Ext.define('PMG.LDAPConfig', {
}],
bind: {
title: Ext.String.format(gettext("Users of '{0}'"), '{name}')
},
}
}
]
}
],
]
});
@ -450,7 +450,7 @@ Ext.define('PMG.LDAPConfigGrid', {
}
var win = Ext.createWidget('pmgLDAPEdit', {
profileId: rec.data.profile,
profileId: rec.data.profile
});
win.on('destroy', me.reload, me);
win.load();
@ -516,7 +516,7 @@ Ext.define('PMG.LDAPConfigGrid', {
{
xtype: 'proxmoxStdRemoveButton',
baseurl: '/config/ldap',
callback: 'reload',
callback: 'reload'
},
{
xtype: 'proxmoxButton',
@ -526,7 +526,7 @@ Ext.define('PMG.LDAPConfigGrid', {
},
disabled: true,
handler: 'sync'
},
}
],
listeners: {
@ -589,7 +589,7 @@ Ext.define('PMG.LDAPConfigGrid', {
width: 80,
sortable: true,
dataIndex: 'gcount'
},
],
}
]
});

View File

@ -74,7 +74,7 @@ Ext.define('PMG.MailProxyOptions', {
}],
url: '/api2/json' + baseurl,
editorConfig: {
url: '/api2/extjs' + baseurl,
url: '/api2/extjs' + baseurl
},
interval: 5000,
cwidth1: 200,

View File

@ -7,7 +7,7 @@ Ext.define('PMG.MailProxyPorts', {
monStoreErrors: true,
editorConfig: {
url: '/api2/extjs/config/mail',
url: '/api2/extjs/config/mail'
},
interval: 5000,
@ -24,7 +24,7 @@ Ext.define('PMG.MailProxyPorts', {
},
listeners: {
itemdblclick: 'onEdit',
itemdblclick: 'onEdit'
},
tbar: [

View File

@ -34,7 +34,7 @@ Ext.define('PMG.MailProxyRelaying', {
}],
url: '/api2/json' + baseurl,
editorConfig: {
url: '/api2/extjs' + baseurl,
url: '/api2/extjs' + baseurl
},
interval: 5000,
cwidth1: 200,

View File

@ -27,7 +27,7 @@ Ext.define('PMG.MailProxyTLS', {
}],
url: '/api2/json' + baseurl,
editorConfig: {
url: '/api2/extjs' + baseurl,
url: '/api2/extjs' + baseurl
},
interval: 5000,
cwidth1: 200,

View File

@ -6,7 +6,7 @@ Ext.define('PMG.MailStatGrid', {
hideHeaders: true,
store: {
fields: [ 'name', 'value', 'percentage' ],
fields: [ 'name', 'value', 'percentage' ]
},
columns: [

View File

@ -217,7 +217,7 @@ Ext.define('PMG.MailTracker', {
plugins: [
{
ptype: 'rowexpander',
rowBodyTpl: '<p class="logs">{logs}</p>',
rowBodyTpl: '<p class="logs">{logs}</p>'
}
],

View File

@ -22,25 +22,25 @@ Ext.define('PMG.store.NavigationStore', {
text: gettext('Action Objects'),
iconCls: 'fa fa-flag',
path: 'pmgActionList',
leaf: true,
leaf: true
},
{
text: gettext('Who Objects'),
iconCls: 'fa fa-user-circle',
path: 'pmgWhoConfiguration',
leaf: true,
leaf: true
},
{
text: gettext('What Objects'),
iconCls: 'fa fa-cube',
path: 'pmgWhatConfiguration',
leaf: true,
leaf: true
},
{
text: gettext('When Objects'),
iconCls: 'fa fa-clock-o',
path: 'pmgWhenConfiguration',
leaf: true,
leaf: true
}
]
},
@ -54,31 +54,31 @@ Ext.define('PMG.store.NavigationStore', {
text: gettext('Mail Proxy'),
iconCls: 'fa fa-envelope-o',
path: 'pmgMailProxyConfiguration',
leaf: true,
leaf: true
},
{
text: gettext('Spam Detector'),
iconCls: 'fa fa-bullhorn',
path: 'pmgSpamDetectorConfiguration',
leaf: true,
leaf: true
},
{
text: gettext('Virus Detector'),
iconCls: 'fa fa-bug',
path: 'pmgVirusDetectorConfiguration',
leaf: true,
leaf: true
},
{
text: gettext('User Management'),
iconCls: 'fa fa-users',
path: 'pmgUserManagement',
leaf: true,
leaf: true
},
{
text: gettext('Cluster'),
iconCls: 'fa fa-server',
path: 'pmgClusterAdministration',
leaf: true,
leaf: true
},
{
text: gettext('Subscription'),
@ -98,37 +98,37 @@ Ext.define('PMG.store.NavigationStore', {
text: gettext('Spam Quarantine'),
iconCls: 'fa fa-bullhorn',
path: 'pmgSpamQuarantine',
leaf: true,
leaf: true
},
{
text: gettext('Virus Quarantine'),
iconCls: 'fa fa-bug',
path: 'pmgVirusQuarantine',
leaf: true,
leaf: true
},
{
text: gettext('User Whitelist'),
iconCls: 'fa fa-file-o',
path: 'pmgUserWhitelist',
leaf: true,
leaf: true
},
{
text: gettext('User Blacklist'),
iconCls: 'fa fa-file',
path: 'pmgUserBlacklist',
leaf: true,
leaf: true
},
{
text: gettext('Tracking Center'),
iconCls: 'fa fa-map-o',
path: 'pmgMailTracker',
leaf: true,
leaf: true
},
{
text: gettext('Queues'),
iconCls: 'fa fa-bars',
path: 'pmgQueueAdministration',
leaf: true,
leaf: true
}
]
},

View File

@ -88,7 +88,7 @@ Ext.define('PMG.Postfix.MailQueue', {
var win = Ext.create('PMG.ViewMailHeaders', {
title: view.title + ' : ' + rec.data.queue_id,
url: url,
url: url
});
win.show();
},

View File

@ -87,7 +87,7 @@ Ext.define('PMG.Postfix.QShape', {
activate: function() {
this.view.store.load(); // reload
}
},
}
}
},

View File

@ -159,7 +159,7 @@ Ext.define('PMG.QuarantineList', {
control: {
'#':{
beforedestroy: 'resetEmail',
beforedestroy: 'resetEmail'
},
'combobox[reference=email]': {
change: {

View File

@ -23,13 +23,13 @@ Ext.define('PMG.QuarantineNavigationTree', {
text: gettext('Whitelist'),
//iconCls: 'fa fa-cubes',
path: 'pmgUserWhitelist',
leaf: true,
leaf: true
},
{
text: gettext('Blacklist'),
//iconCls: 'fa fa-cubes',
path: 'pmgUserBlacklist',
leaf: true,
leaf: true
}
]
}
@ -237,7 +237,7 @@ Ext.define('PMG.QuarantineView', {
layout: 'card',
region: 'center',
border: false,
reference: 'contentpanel',
reference: 'contentpanel'
}
]
});

View File

@ -30,7 +30,7 @@ Ext.define('PMG.QueueAdministration', {
control: {
pmgPostfixQShape: {
itemdblclick: 'onSelect',
itemdblclick: 'onSelect'
}
}
},

View File

@ -18,7 +18,7 @@ Ext.define('PMG.RBLStatistics', {
legend: false,
fields: [ 'count' ],
fieldTitles: [
gettext('RBL rejects'),
gettext('RBL rejects')
],
store: {
type: 'pmgStatStore',

View File

@ -204,7 +204,7 @@ Ext.define('PMG.ReceiverStatistics', {
layout: 'border',
border: false,
defaults: {
border: false,
border: false
},
controller: {
@ -231,7 +231,7 @@ Ext.define('PMG.ReceiverStatistics', {
layout: 'fit',
flex: 1,
listeners: { selectionchange: 'selectionChange' },
listeners: { selectionchange: 'selectionChange' }
},
{
xtype: 'pmgReceiverDetails',

View File

@ -17,7 +17,7 @@ Ext.define('PMG.RulesConfiguration', {
layout: 'border',
border: false,
defaults: {
border: false,
border: false
},
controller: {
@ -112,7 +112,7 @@ Ext.define('PMG.RulesConfiguration', {
data: {
selectedRule: undefined,
baseUrl: '/config/ruledb/rules'
},
}
},
items: [
@ -135,7 +135,7 @@ Ext.define('PMG.RulesConfiguration', {
xtype: 'button',
text: gettext('Add'),
iconCls: 'fa fa-plus-circle',
reference: 'addButton',
reference: 'addButton'
},
{
xtype: 'proxmoxStdRemoveButton',
@ -171,7 +171,7 @@ Ext.define('PMG.RulesConfiguration', {
direction: 'DESC'
},
{
property: 'name',
property: 'name'
}
]
},
@ -181,16 +181,16 @@ Ext.define('PMG.RulesConfiguration', {
{
text: 'Active',
dataIndex: 'active',
hidden : true,
hidden : true
},
{
text: 'Name',
dataIndex: 'name',
flex: 1,
flex: 1
},
{
text: 'Priority',
dataIndex: 'priority',
dataIndex: 'priority'
},
{
text: 'Direction',
@ -216,7 +216,7 @@ Ext.define('PMG.RulesConfiguration', {
return (rec.get('active') ? 'Deactivate' : 'Activate');
},
handler: 'toggleIconClick'
},
}
]
}
]
@ -226,7 +226,7 @@ Ext.define('PMG.RulesConfiguration', {
reference: 'infopanel',
xtype: 'pmgRuleInfo',
split: true,
width: 440,
width: 440
}
]
});

View File

@ -82,7 +82,7 @@ Ext.define('PMG.SenderDetails', {
header: gettext('Time'),
format: 'H:i:s',
dataIndex: 'time'
},
}
],
initComponent: function() {
@ -192,7 +192,7 @@ Ext.define('PMG.SenderStatistics', {
layout: 'border',
border: false,
defaults: {
border: false,
border: false
},
controller: {
@ -219,7 +219,7 @@ Ext.define('PMG.SenderStatistics', {
layout: 'fit',
flex: 1,
listeners: { selectionchange: 'selectionChange' },
listeners: { selectionchange: 'selectionChange' }
},
{
xtype: 'pmgSenderDetails',

View File

@ -66,7 +66,7 @@ Ext.define('PMG.SpamDetectorLanguagesInputPanel', {
[ 'uk', 'Ukrainian' ],
[ 'vi', 'Vietnamese' ],
[ 'yi', 'Yiddish' ],
[ 'zh', 'Chinese' ],
[ 'zh', 'Chinese' ]
],
onGetValues: function(values) {

View File

@ -51,7 +51,7 @@ Ext.define('PMG.SpamDetectorOptions', {
}],
url: '/api2/json' + baseurl,
editorConfig: {
url: '/api2/extjs' + baseurl,
url: '/api2/extjs' + baseurl
},
interval: 5000,
cwidth1: 200,

View File

@ -55,5 +55,5 @@ Ext.define('PMG.grid.SpamInfoGrid',{
dataIndex: 'desc',
flex: 3
}
],
]
});

View File

@ -36,7 +36,7 @@ Ext.define('PMG.SpamQuarantineOptions', {
comboItems: [
['ticket', render_authmode('ticket') ],
['ldap', render_authmode('ldap') ],
['ldapticket', render_authmode('ldapticket') ]],
['ldapticket', render_authmode('ldapticket') ]]
});
var render_reportstyle = function(value) {
@ -51,7 +51,7 @@ Ext.define('PMG.SpamQuarantineOptions', {
['short', render_reportstyle('short') ],
['verbose', render_reportstyle('verbose') ],
['outlook', render_reportstyle('outlook') ],
['custom', render_reportstyle('custom') ]],
['custom', render_reportstyle('custom') ]]
});
me.add_text_row('hostname', gettext('Quarantine Host'),
@ -79,7 +79,7 @@ Ext.define('PMG.SpamQuarantineOptions', {
}],
url: '/api2/json' + baseurl,
editorConfig: {
url: '/api2/extjs' + baseurl,
url: '/api2/extjs' + baseurl
},
interval: 5000,
cwidth1: 200,

View File

@ -25,7 +25,7 @@ Ext.define('PMG.SpamScoreDistribution', {
}
}
}
],
]
},
columns: [
@ -48,7 +48,7 @@ Ext.define('PMG.SpamScoreDistribution', {
widget: {
xtype: 'progressbarwidget',
textTpl: ['{percent:number("0")}%' ]
},
}
}
]
});

View File

@ -54,7 +54,7 @@ Ext.define('PMG.SystemConfiguration', {
layout: {
type: 'vbox',
align: 'stretch',
multi: true,
multi: true
},
bodyPadding: '0 0 10 0',
defaults: {
@ -68,7 +68,7 @@ Ext.define('PMG.SystemConfiguration', {
minHeight: 200,
title: gettext('Interfaces'),
xtype: 'proxmoxNodeNetworkView',
nodename: Proxmox.NodeName,
nodename: Proxmox.NodeName
},
{
title: gettext('DNS'),
@ -79,7 +79,7 @@ Ext.define('PMG.SystemConfiguration', {
title: gettext('Time'),
xtype: 'proxmoxNodeTimeView',
nodename: Proxmox.NodeName
},
}
]
},
{
@ -94,7 +94,7 @@ Ext.define('PMG.SystemConfiguration', {
{
itemId: 'options',
title: gettext('Options'),
xtype: 'pmgSystemOptions',
xtype: 'pmgSystemOptions'
}
]
});

View File

@ -29,7 +29,7 @@ Ext.define('PMG.SystemOptions', {
}],
listeners: {
itemdblclick: 'onEdit',
itemdblclick: 'onEdit'
},
add_proxy_row: function(name, text, opts) {

View File

@ -34,7 +34,7 @@ Ext.define('PMG.UserBlackWhiteList', {
items.push({
xtype: 'hidden',
name: key,
value: value,
value: value
});
});
@ -132,7 +132,7 @@ Ext.define('PMG.UserBlackWhiteList', {
editable: true,
reference: 'email',
name: 'email',
fieldLabel: 'E-Mail',
fieldLabel: 'E-Mail'
},
{
text: gettext('Add'),
@ -178,7 +178,7 @@ Ext.define('PMG.UserBlacklist', {
proxy: {
type: 'proxmox',
url: "/api2/json/quarantine/blacklist"
},
}
},
dockedItems: [
@ -187,7 +187,7 @@ Ext.define('PMG.UserBlacklist', {
bodyStyle: {
padding: '10px',
'border-left': '0px',
'border-right': '0px',
'border-right': '0px'
},
html: gettext('With this feature, you can manually mark E-mails from certain domains or addresses as spam.') + '<br><br>' +
'<b>*.com</b> (all mails from <b>.com</b> domains)' + '<br>' +
@ -212,7 +212,7 @@ Ext.define('PMG.UserWhitelist', {
proxy: {
type: 'proxmox',
url: "/api2/json/quarantine/whitelist"
},
}
},
dockedItems: [
@ -221,7 +221,7 @@ Ext.define('PMG.UserWhitelist', {
bodyStyle: {
padding: '10px',
'border-left': '0px',
'border-right': '0px',
'border-right': '0px'
},
html: gettext('With this feature, you can manually bypass spam checking for certain domains or E-mail addresses.') + '<br><br>' +
'<b>*.com</b> (all mails from <b>.com</b> domains)' + '<br>' +

View File

@ -25,7 +25,7 @@ Ext.define('PMG.UserEdit', {
return {
useridXType: userid ? 'displayfield' : 'textfield',
isSuperUser: userid === 'root@pam',
isSuperUser: userid === 'root@pam'
}
},
@ -39,7 +39,7 @@ Ext.define('PMG.UserEdit', {
allowBlank: false,
cbind: {
submitValue: '{create}',
xtype: '{useridXType}',
xtype: '{useridXType}'
}
},
{

View File

@ -89,7 +89,7 @@ Ext.define('PMG.UserView', {
listeners: {
scope: 'controller',
itemdblclick: 'onEdit',
itemdblclick: 'onEdit'
},
tbar: [

View File

@ -17,7 +17,7 @@ Ext.define('PMG.Utils', {
root: gettext('Superuser'),
admin: gettext('Administrator'),
qmanager: gettext('Quarantine Manager'),
audit: gettext('Auditor'),
audit: gettext('Auditor')
},
format_user_role: function(role) {

View File

@ -44,7 +44,7 @@ Ext.define('PMG.VirusDetectorOptions', {
}],
url: '/api2/json' + baseurl,
editorConfig: {
url: '/api2/extjs' + baseurl,
url: '/api2/extjs' + baseurl
},
interval: 5000,
cwidth1: 200,

View File

@ -31,7 +31,7 @@ Ext.define('PMG.VirusQuarantineOptions', {
}],
url: '/api2/json' + baseurl,
editorConfig: {
url: '/api2/extjs' + baseurl,
url: '/api2/extjs' + baseurl
},
interval: 5000,
cwidth1: 200,

View File

@ -18,8 +18,8 @@ Ext.define('PMG.dashboard.MiniGraph', {
},
style: {
axisLine: false,
majorTickSize: 0,
},
majorTickSize: 0
}
},
{
type: 'time',
@ -31,11 +31,11 @@ Ext.define('PMG.dashboard.MiniGraph', {
},
style: {
axisLine: false,
majorTickSize: 0,
majorTickSize: 0
}
}
],
border: false,
flex: 1,
noTool: true,
noTool: true
});