jshint -> eslint

This commit is contained in:
RainLoop Team 2016-06-27 23:54:38 +03:00
parent 40b3f929e9
commit 77a1d3f3df
100 changed files with 716 additions and 811 deletions

View file

@ -99,4 +99,4 @@
module.exports = AboutAdminSettings;
}());
}());

View file

@ -120,4 +120,4 @@
module.exports = BrandingAdminSettings;
}());
}());

View file

@ -50,15 +50,15 @@
}
;
if (!!Settings.settingsGet('SQLiteIsSupported'))
if (Settings.settingsGet('SQLiteIsSupported'))
{
aSupportedTypes.push('sqlite');
}
if (!!Settings.settingsGet('MySqlIsSupported'))
if (Settings.settingsGet('MySqlIsSupported'))
{
aSupportedTypes.push('mysql');
}
if (!!Settings.settingsGet('PostgreSqlIsSupported'))
if (Settings.settingsGet('PostgreSqlIsSupported'))
{
aSupportedTypes.push('pgsql');
}
@ -241,4 +241,4 @@
module.exports = ContactsAdminSettings;
}());
}());

View file

@ -83,4 +83,4 @@
module.exports = DomainsAdminSettings;
}());
}());

View file

@ -46,16 +46,16 @@
this.mainAttachmentLimit = ko.observable(Utils.pInt(Settings.settingsGet('AttachmentLimit')) / (1024 * 1024)).extend({'posInterer': 25});
this.uploadData = Settings.settingsGet('PhpUploadSizes');
this.uploadDataDesc = this.uploadData && (this.uploadData['upload_max_filesize'] || this.uploadData['post_max_size']) ? [
this.uploadData['upload_max_filesize'] ? 'upload_max_filesize = ' + this.uploadData['upload_max_filesize'] + '; ' : '',
this.uploadData['post_max_size'] ? 'post_max_size = ' + this.uploadData['post_max_size'] : ''
this.uploadDataDesc = this.uploadData && (this.uploadData.upload_max_filesize || this.uploadData.post_max_size) ? [
this.uploadData.upload_max_filesize ? 'upload_max_filesize = ' + this.uploadData.upload_max_filesize + '; ' : '',
this.uploadData.post_max_size ? 'post_max_size = ' + this.uploadData.post_max_size : ''
].join('') : '';
this.themesOptions = ko.computed(function () {
return _.map(this.themes(), function (sTheme) {
return {
'optValue': sTheme,
'optText': Utils.convertThemeName(sTheme)
optValue: sTheme,
optText: Utils.convertThemeName(sTheme)
};
});
}, this);
@ -208,4 +208,4 @@
module.exports = GeneralAdminSettings;
}());
}());

View file

@ -71,4 +71,4 @@
module.exports = LoginAdminSettings;
}());
}());

View file

@ -26,16 +26,16 @@
this.packagesReal = PackageStore.packagesReal;
this.packagesMainUpdatable = PackageStore.packagesMainUpdatable;
this.packagesCurrent = this.packages.filter(function (oItem) {
return oItem && '' !== oItem['installed'] && !oItem['compare'];
this.packagesCurrent = this.packages.filter(function (item) {
return item && '' !== item.installed && !item.compare;
});
this.packagesAvailableForUpdate = this.packages.filter(function (oItem) {
return oItem && '' !== oItem['installed'] && !!oItem['compare'];
this.packagesAvailableForUpdate = this.packages.filter(function (item) {
return item && '' !== item.installed && !!item.compare;
});
this.packagesAvailableForInstallation = this.packages.filter(function (oItem) {
return oItem && '' === oItem['installed'];
this.packagesAvailableForInstallation = this.packages.filter(function (item) {
return item && '' === item.installed;
});
this.visibility = ko.computed(function () {
@ -71,15 +71,15 @@
}
}
_.each(self.packages(), function (oItem) {
if (oItem && oPackage && oItem['loading']() && oPackage['file'] === oItem['file'])
_.each(self.packages(), function (item) {
if (item && oPackage && item.loading && item.loading() && oPackage.file === item.file)
{
oPackage['loading'](false);
oItem['loading'](false);
oPackage.loading(false);
item.loading(false);
}
});
if (Enums.StorageResultType.Success === sResult && oData && oData.Result && oData.Result['Reload'])
if (Enums.StorageResultType.Success === sResult && oData && oData.Result && oData.Result.Reload)
{
window.location.reload();
}
@ -94,7 +94,7 @@
{
if (oPackage)
{
oPackage['loading'](true);
oPackage.loading(true);
Remote.packageDelete(this.requestHelper(oPackage, false), oPackage);
}
};
@ -103,11 +103,11 @@
{
if (oPackage)
{
oPackage['loading'](true);
oPackage.loading(true);
Remote.packageInstall(this.requestHelper(oPackage, true), oPackage);
}
};
module.exports = PackagesAdminSettings;
}());
}());

View file

@ -116,4 +116,4 @@
module.exports = PluginsAdminSettings;
}());
}());

View file

@ -180,4 +180,4 @@
module.exports = SocialAdminSettings;
}());
}());

View file

@ -160,4 +160,4 @@
module.exports = AccountsUserSettings;
}());
}());

View file

@ -121,4 +121,4 @@
module.exports = ChangePasswordUserSettings;
}());
}());

View file

@ -55,4 +55,4 @@
module.exports = ContactsUserSettings;
}());
}());

View file

@ -188,7 +188,7 @@
oNew.generateID();
require('Knoin/Knoin').showScreenPopup(
require('View/Popup/Filter'), [oNew, function () {
require('View/Popup/Filter'), [oNew, function () {
self.filters.push(oNew);
self.filterRaw.active(false);
}, false]);
@ -202,7 +202,7 @@
;
require('Knoin/Knoin').showScreenPopup(
require('View/Popup/Filter'), [oCloned, function () {
require('View/Popup/Filter'), [oCloned, function () {
var
aFilters = self.filters(),
@ -243,4 +243,4 @@
module.exports = FiltersUserSettings;
}());
}());

View file

@ -200,4 +200,4 @@
module.exports = FoldersUserSettings;
}());
}());

View file

@ -229,4 +229,4 @@
module.exports = GeneralUserSettings;
}());
}());

View file

@ -80,4 +80,4 @@
module.exports = OpenPgpUserSettings;
}());
}());

View file

@ -73,4 +73,4 @@
module.exports = SecurityUserSettings;
}());
}());

View file

@ -77,4 +77,4 @@
module.exports = SocialUserSettings;
}());
}());

View file

@ -104,4 +104,4 @@
module.exports = TemplatesUserSettings;
}());
}());

View file

@ -18,7 +18,7 @@
ThemeStore = require('Stores/Theme'),
Settings = require('Storage/Settings'),
Remote = require('Remote/User/Ajax')
;
@ -182,4 +182,4 @@
module.exports = ThemesUserSettings;
}());
}());