mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Made eslint using 'browser' environment and added globals, because RainLoop is used in browsers.
This also allowed to remove all webpack 'externals' overhead.
This commit is contained in:
parent
c3a213802d
commit
e7180a86ce
81 changed files with 1857 additions and 1259 deletions
|
|
@ -1,8 +1,7 @@
|
|||
import $ from '$';
|
||||
import ko from 'ko';
|
||||
|
||||
import { VIEW_MODELS } from 'Common/Globals';
|
||||
import { delegateRun, windowResize, log, pString } from 'Common/Utils';
|
||||
import { delegateRun, windowResize, pString } from 'Common/Utils';
|
||||
import { settings } from 'Common/Links';
|
||||
|
||||
import { setHash } from 'Knoin/Knoin';
|
||||
|
|
@ -72,7 +71,7 @@ class AbstractSettingsScreen extends AbstractScreen {
|
|||
if (viewModelPlace && 1 === viewModelPlace.length) {
|
||||
settingsScreen = new RoutedSettingsViewModel();
|
||||
|
||||
viewModelDom = $('<div></div>')
|
||||
viewModelDom = jQuery('<div></div>')
|
||||
.addClass('rl-settings-view-model')
|
||||
.hide();
|
||||
viewModelDom.appendTo(viewModelPlace);
|
||||
|
|
@ -97,7 +96,7 @@ class AbstractSettingsScreen extends AbstractScreen {
|
|||
|
||||
delegateRun(settingsScreen, 'onBuild', [viewModelDom]);
|
||||
} else {
|
||||
log('Cannot find sub settings view model position: SettingsSubScreen');
|
||||
console.log('Cannot find sub settings view model position: SettingsSubScreen');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -128,7 +127,7 @@ class AbstractSettingsScreen extends AbstractScreen {
|
|||
);
|
||||
});
|
||||
|
||||
$('#rl-content .b-settings .b-content')[0].scrollTop = 0;
|
||||
jQuery('#rl-content .b-settings .b-content')[0].scrollTop = 0;
|
||||
}
|
||||
// --
|
||||
|
||||
|
|
@ -167,7 +166,7 @@ class AbstractSettingsScreen extends AbstractScreen {
|
|||
}
|
||||
});
|
||||
|
||||
this.oViewModelPlace = $('#rl-content #rl-settings-subscreen');
|
||||
this.oViewModelPlace = jQuery('#rl-content #rl-settings-subscreen');
|
||||
}
|
||||
|
||||
routes() {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import window from 'window';
|
||||
|
||||
import { Focused, Capa, ClientSideKeyName, Magics } from 'Common/Enums';
|
||||
import { $html, leftPanelDisabled, leftPanelType, moveAction, bMobileDevice } from 'Common/Globals';
|
||||
import { pString, pInt, windowResizeCallback } from 'Common/Utils';
|
||||
|
|
@ -157,7 +155,7 @@ class MailBoxUserScreen extends AbstractScreen {
|
|||
vals[1] = 1;
|
||||
}
|
||||
|
||||
return [window.decodeURI(vals[0]), vals[1], window.decodeURI(vals[2])];
|
||||
return [decodeURI(vals[0]), vals[1], decodeURI(vals[2])];
|
||||
},
|
||||
fNormD = (request, vals) => {
|
||||
vals[0] = pString(vals[0]);
|
||||
|
|
@ -167,7 +165,7 @@ class MailBoxUserScreen extends AbstractScreen {
|
|||
vals[0] = inboxFolderName;
|
||||
}
|
||||
|
||||
return [window.decodeURI(vals[0]), 1, window.decodeURI(vals[1])];
|
||||
return [decodeURI(vals[0]), 1, decodeURI(vals[1])];
|
||||
};
|
||||
|
||||
return [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue