mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Fix eslint warnings
This commit is contained in:
parent
dd824179f1
commit
72ca818500
35 changed files with 510 additions and 290 deletions
|
|
@ -27,7 +27,7 @@ class AbstracRadio extends AbstractComponent
|
|||
if (params.values)
|
||||
{
|
||||
this.values(_.map(params.values, (label, value) => {
|
||||
return {'label': label, 'value': value};
|
||||
return {label: label, value: value};
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ class AbstracRadio extends AbstractComponent
|
|||
{
|
||||
this.value(value.value);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export {AbstracRadio, AbstracRadio as default};
|
||||
|
|
|
|||
|
|
@ -50,6 +50,6 @@ const componentExportHelper = (ClassObject, templateID = '') => {
|
|||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
export {AbstractComponent, componentExportHelper};
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class AbstractInput extends AbstractComponent
|
|||
' ' + Utils.trim('settings-saved-trigger-input ' + this.classForTrigger()) : ''
|
||||
;
|
||||
|
||||
return (0 < size ? 'span' + size : '') + suffixValue;
|
||||
return (size > 0 ? 'span' + size : '') + suffixValue;
|
||||
|
||||
}, this);
|
||||
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ class CheckboxMaterialDesignComponent extends AbstracCheckbox
|
|||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
||||
|
||||
super(params);
|
||||
|
||||
this.animationBox = ko.observable(false).extend({'falseTimeout': 200});
|
||||
this.animationCheckmark = ko.observable(false).extend({'falseTimeout': 200});
|
||||
this.animationBox = ko.observable(false).extend({falseTimeout: 200});
|
||||
this.animationCheckmark = ko.observable(false).extend({falseTimeout: 200});
|
||||
|
||||
this.animationBoxSetTrue = _.bind(this.animationBoxSetTrue, this);
|
||||
this.animationCheckmarkSetTrue = _.bind(this.animationCheckmarkSetTrue, this);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class SaveTriggerComponent extends AbstractComponent
|
|||
;
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = componentExportHelper(SaveTriggerComponent, 'SaveTriggerComponent');
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ let
|
|||
getUtl = () => {
|
||||
if (!cachedUrl)
|
||||
{
|
||||
const version = $('#rlAppVersion').attr('content') || '0.0.0'; // TODO
|
||||
const version = $('#rlAppVersion').attr('content') || '0.0.0';
|
||||
cachedUrl = `rainloop/v/${version}/static/css/svg/icons.svg`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue