prettier --write

This commit is contained in:
RainLoop Team 2019-07-04 22:19:24 +03:00
parent 450528ff00
commit 8a0be3212d
164 changed files with 7053 additions and 9008 deletions

40
dev/bootstrap.js vendored
View file

@ -1,25 +1,19 @@
import window from 'window';
import {killCtrlACtrlS, detectDropdownVisibility, createCommandLegacy, domReady} from 'Common/Utils';
import {$win, $html, data as GlobalsData, bMobileDevice} from 'Common/Globals';
import { killCtrlACtrlS, detectDropdownVisibility, createCommandLegacy, domReady } from 'Common/Utils';
import { $win, $html, data as GlobalsData, bMobileDevice } from 'Common/Globals';
import * as Enums from 'Common/Enums';
import * as Plugins from 'Common/Plugins';
import {i18n} from 'Common/Translator';
import {EmailModel} from 'Model/Email';
import { i18n } from 'Common/Translator';
import { EmailModel } from 'Model/Email';
export default (App) => {
GlobalsData.__APP__ = App;
$win
.on('keydown', killCtrlACtrlS)
.on('unload', () => {
GlobalsData.bUnload = true;
});
$win.on('keydown', killCtrlACtrlS).on('unload', () => {
GlobalsData.bUnload = true;
});
$html
.addClass(bMobileDevice ? 'mobile' : 'no-mobile')
.on('click.dropdown.data-api', detectDropdownVisibility);
$html.addClass(bMobileDevice ? 'mobile' : 'no-mobile').on('click.dropdown.data-api', detectDropdownVisibility);
const rl = window.rl || {};
@ -40,34 +34,22 @@ export default (App) => {
window.rl = rl;
window.__APP_BOOT = (fErrorCallback) => {
domReady(() => {
window.setTimeout(() => {
if (window.rainloopTEMPLATES && window.rainloopTEMPLATES[0])
{
if (window.rainloopTEMPLATES && window.rainloopTEMPLATES[0]) {
window.document.getElementById('rl-templates').innerHTML = window.rainloopTEMPLATES[0];
window.setTimeout(() => {
$html
.removeClass('no-js rl-booted-trigger')
.addClass('rl-booted');
$html.removeClass('no-js rl-booted-trigger').addClass('rl-booted');
App.bootstart();
}, Enums.Magics.Time10ms);
}
else
{
} else {
fErrorCallback();
}
window.__APP_BOOT = null;
}, Enums.Magics.Time10ms);
});
};
};