mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
js -> jsx
This commit is contained in:
parent
3bcf23f8fa
commit
08ccf55577
43 changed files with 2342 additions and 2347 deletions
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
import ko from 'ko';
|
||||
import {Focused, KeyState} from 'Common/Enums';
|
||||
import Globals from 'Common/Globals';
|
||||
import Utils from 'Common/Utils';
|
||||
import {keyScope} from 'Common/Globals';
|
||||
import Settings from 'Storage/Settings';
|
||||
import {isNonEmptyArray} from 'Common/Utils';
|
||||
|
||||
import {AbstractAppStore} from 'Stores/AbstractApp';
|
||||
|
||||
|
|
@ -24,13 +24,13 @@ class AppUserStore extends AbstractAppStore
|
|||
default:
|
||||
break;
|
||||
case Focused.MessageList:
|
||||
Globals.keyScope(KeyState.MessageList);
|
||||
keyScope(KeyState.MessageList);
|
||||
break;
|
||||
case Focused.MessageView:
|
||||
Globals.keyScope(KeyState.MessageView);
|
||||
keyScope(KeyState.MessageView);
|
||||
break;
|
||||
case Focused.FolderList:
|
||||
Globals.keyScope(KeyState.FolderList);
|
||||
keyScope(KeyState.FolderList);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ class AppUserStore extends AbstractAppStore
|
|||
this.contactsIsAllowed(!!Settings.settingsGet('ContactsIsAllowed'));
|
||||
|
||||
const attachmentsActions = Settings.appSettingsGet('attachmentsActions');
|
||||
this.attachmentsActions(Utils.isNonEmptyArray(attachmentsActions) ? attachmentsActions : []);
|
||||
this.attachmentsActions(isNonEmptyArray(attachmentsActions) ? attachmentsActions : []);
|
||||
|
||||
this.devEmail = Settings.settingsGet('DevEmail');
|
||||
this.devPassword = Settings.settingsGet('DevPassword');
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@
|
|||
var
|
||||
iCount = 0,
|
||||
oMessagesDom = null,
|
||||
iEnd = Globals.iMessageBodyCacheCount - Consts.MESSAGE_BODY_CACHE_LIMIT
|
||||
iEnd = Globals.data.iMessageBodyCacheCount - Consts.MESSAGE_BODY_CACHE_LIMIT
|
||||
;
|
||||
|
||||
if (0 < iEnd)
|
||||
|
|
@ -642,7 +642,7 @@
|
|||
}
|
||||
|
||||
oBody = $('<div id="' + sId + '" ></div>').hide().addClass('rl-cache-class');
|
||||
oBody.data('rl-cache-count', ++Globals.iMessageBodyCacheCount);
|
||||
oBody.data('rl-cache-count', ++Globals.data.iMessageBodyCacheCount);
|
||||
|
||||
oBody
|
||||
.html(Utils.findEmailAndLinks(sResultHtml))
|
||||
|
|
@ -677,7 +677,7 @@
|
|||
oMessage.body = oTextBody;
|
||||
if (oMessage.body)
|
||||
{
|
||||
oMessage.body.data('rl-cache-count', ++Globals.iMessageBodyCacheCount);
|
||||
oMessage.body.data('rl-cache-count', ++Globals.data.iMessageBodyCacheCount);
|
||||
oMessage.fetchDataFromDom();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue