mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
👕 Fix lint issue
This commit is contained in:
parent
6a1857af16
commit
0ace7ca423
|
@ -31,7 +31,7 @@ export default Vue.extend({
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
let size = parseInt(this.size, 10);
|
const size = parseInt(this.size, 10);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
width: size + 'px',
|
width: size + 'px',
|
||||||
|
@ -39,7 +39,7 @@ export default Vue.extend({
|
||||||
'font-size': Math.floor(parseInt(this.size, 10) * 0.6) + 'px',
|
'font-size': Math.floor(parseInt(this.size, 10) * 0.6) + 'px',
|
||||||
'line-height': size + 'px',
|
'line-height': size + 'px',
|
||||||
'border-radius': Math.ceil(size / 2) + 'px',
|
'border-radius': Math.ceil(size / 2) + 'px',
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
nodeIconData (): null | NodeIconData {
|
nodeIconData (): null | NodeIconData {
|
||||||
if (this.nodeType === null) {
|
if (this.nodeType === null) {
|
||||||
|
|
|
@ -26,7 +26,7 @@ export const nodeBase = mixins(nodeIndex).extend({
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
isMacOs(): boolean {
|
isMacOs (): boolean {
|
||||||
return /(ipad|iphone|ipod|mac)/i.test(navigator.platform);
|
return /(ipad|iphone|ipod|mac)/i.test(navigator.platform);
|
||||||
},
|
},
|
||||||
isReadOnly (): boolean {
|
isReadOnly (): boolean {
|
||||||
|
@ -280,7 +280,7 @@ export const nodeBase = mixins(nodeIndex).extend({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
isCtrlKeyPressed(e: MouseEvent | KeyboardEvent): boolean {
|
isCtrlKeyPressed (e: MouseEvent | KeyboardEvent): boolean {
|
||||||
if (this.isMacOs) {
|
if (this.isMacOs) {
|
||||||
return e.metaKey;
|
return e.metaKey;
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ export const pushConnection = mixins(
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
retryPushMessage (event: Event, retryAttempts: number) {
|
retryPushMessage (event: Event, retryAttempts: number) {
|
||||||
retryAttempts = retryAttempts -1;
|
retryAttempts = retryAttempts - 1;
|
||||||
|
|
||||||
if (retryAttempts <= 0) {
|
if (retryAttempts <= 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue