mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
CommonJS (research/4)
This commit is contained in:
parent
06bb124379
commit
8d73c7b1b2
127 changed files with 1893 additions and 1085 deletions
9
dev/External/$div.js
vendored
9
dev/External/$div.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./jquery.js')('<div></div>');
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./jquery.js')('<div></div>');
|
||||
9
dev/External/$doc.js
vendored
9
dev/External/$doc.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./jquery.js')(window.document);
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./jquery.js')(window.document);
|
||||
9
dev/External/$html.js
vendored
9
dev/External/$html.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./jquery.js')('html');
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./jquery.js')('html');
|
||||
9
dev/External/$window.js
vendored
9
dev/External/$window.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./jquery.js')(window);
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./jquery.js')(window);
|
||||
1
dev/External/AppData.js
vendored
1
dev/External/AppData.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./window.js')['rainloopAppData'] || {};
|
||||
1
dev/External/JSON.js
vendored
1
dev/External/JSON.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = JSON;
|
||||
1
dev/External/Jua.js
vendored
1
dev/External/Jua.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = Jua;
|
||||
9
dev/External/NotificationClass.js
vendored
9
dev/External/NotificationClass.js
vendored
|
|
@ -1,6 +1,5 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
var window = require('./window.js');
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
'use strict';
|
||||
|
||||
var window = require('./window.js');
|
||||
module.exports = window.Notification && window.Notification.requestPermission ? window.Notification : null;
|
||||
1
dev/External/crossroads.js
vendored
1
dev/External/crossroads.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = crossroads;
|
||||
1
dev/External/hasher.js
vendored
1
dev/External/hasher.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = hasher;
|
||||
1
dev/External/ifvisible.js
vendored
1
dev/External/ifvisible.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = ifvisible;
|
||||
1
dev/External/jquery.js
vendored
1
dev/External/jquery.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = $;
|
||||
1
dev/External/key.js
vendored
1
dev/External/key.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = key;
|
||||
73
dev/External/ko.js
vendored
73
dev/External/ko.js
vendored
|
|
@ -1,8 +1,7 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
'use strict';
|
||||
|
||||
(function (module) {
|
||||
|
||||
'use strict';
|
||||
(function (module, ko) {
|
||||
|
||||
var
|
||||
window = require('./window.js'),
|
||||
|
|
@ -55,10 +54,10 @@
|
|||
ko.bindingHandlers.tooltip2 = {
|
||||
'init': function (oElement, fValueAccessor) {
|
||||
var
|
||||
Globals = require('../Common/Globals.js'),
|
||||
$oEl = $(oElement),
|
||||
sClass = $oEl.data('tooltip-class') || '',
|
||||
sPlacement = $oEl.data('tooltip-placement') || 'top',
|
||||
Globals = require('../Common/Globals.js')
|
||||
sPlacement = $oEl.data('tooltip-placement') || 'top'
|
||||
;
|
||||
|
||||
$oEl.tooltip({
|
||||
|
|
@ -122,11 +121,7 @@
|
|||
|
||||
ko.bindingHandlers.registrateBootstrapDropdown = {
|
||||
'init': function (oElement) {
|
||||
|
||||
var
|
||||
Globals = require('../Common/Globals.js')
|
||||
;
|
||||
|
||||
var Globals = require('../Common/Globals.js');
|
||||
Globals.aBootstrapDropdowns.push($(oElement));
|
||||
}
|
||||
};
|
||||
|
|
@ -139,7 +134,7 @@
|
|||
$el = $(oElement),
|
||||
Utils = require('../Common/Utils.js')
|
||||
;
|
||||
|
||||
|
||||
if (!$el.hasClass('open'))
|
||||
{
|
||||
$el.find('.dropdown-toggle').dropdown('toggle');
|
||||
|
|
@ -167,11 +162,7 @@
|
|||
|
||||
ko.bindingHandlers.csstext = {
|
||||
'init': function (oElement, fValueAccessor) {
|
||||
|
||||
var
|
||||
Utils = require('../Common/Utils.js')
|
||||
;
|
||||
|
||||
var Utils = require('../Common/Utils.js');
|
||||
if (oElement && oElement.styleSheet && !Utils.isUnd(oElement.styleSheet.cssText))
|
||||
{
|
||||
oElement.styleSheet.cssText = ko.utils.unwrapObservable(fValueAccessor());
|
||||
|
|
@ -182,11 +173,7 @@
|
|||
}
|
||||
},
|
||||
'update': function (oElement, fValueAccessor) {
|
||||
|
||||
var
|
||||
Utils = require('../Common/Utils.js')
|
||||
;
|
||||
|
||||
var Utils = require('../Common/Utils.js');
|
||||
if (oElement && oElement.styleSheet && !Utils.isUnd(oElement.styleSheet.cssText))
|
||||
{
|
||||
oElement.styleSheet.cssText = ko.utils.unwrapObservable(fValueAccessor());
|
||||
|
|
@ -268,6 +255,7 @@
|
|||
.find('.close').click(function () {
|
||||
fValueAccessor()(false);
|
||||
});
|
||||
|
||||
},
|
||||
'update': function (oElement, fValueAccessor) {
|
||||
$(oElement).modal(ko.utils.unwrapObservable(fValueAccessor()) ? 'show' : 'hide');
|
||||
|
|
@ -276,18 +264,14 @@
|
|||
|
||||
ko.bindingHandlers.i18nInit = {
|
||||
'init': function (oElement) {
|
||||
var
|
||||
Utils = require('../Common/Utils.js')
|
||||
;
|
||||
var Utils = require('../Common/Utils.js');
|
||||
Utils.i18nToNode(oElement);
|
||||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.i18nUpdate = {
|
||||
'update': function (oElement, fValueAccessor) {
|
||||
var
|
||||
Utils = require('../Common/Utils.js')
|
||||
;
|
||||
var Utils = require('../Common/Utils.js');
|
||||
ko.utils.unwrapObservable(fValueAccessor());
|
||||
Utils.i18nToNode(oElement);
|
||||
}
|
||||
|
|
@ -326,6 +310,7 @@
|
|||
});
|
||||
},
|
||||
'update': function (oElement, fValueAccessor) {
|
||||
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
aValues = ko.utils.unwrapObservable(fValueAccessor()),
|
||||
|
|
@ -360,12 +345,10 @@
|
|||
|
||||
ko.bindingHandlers.draggable = {
|
||||
'init': function (oElement, fValueAccessor, fAllBindingsAccessor) {
|
||||
|
||||
var
|
||||
Globals = require('../Common/Globals.js'),
|
||||
Utils = require('../Common/Utils.js')
|
||||
;
|
||||
|
||||
if (!Globals.bMobileDevice)
|
||||
{
|
||||
var
|
||||
|
|
@ -446,11 +429,7 @@
|
|||
|
||||
ko.bindingHandlers.droppable = {
|
||||
'init': function (oElement, fValueAccessor, fAllBindingsAccessor) {
|
||||
|
||||
var
|
||||
Globals = require('../Common/Globals.js')
|
||||
;
|
||||
|
||||
var Globals = require('../Common/Globals.js');
|
||||
if (!Globals.bMobileDevice)
|
||||
{
|
||||
var
|
||||
|
|
@ -492,11 +471,7 @@
|
|||
|
||||
ko.bindingHandlers.nano = {
|
||||
'init': function (oElement) {
|
||||
|
||||
var
|
||||
Globals = require('../Common/Globals.js')
|
||||
;
|
||||
|
||||
var Globals = require('../Common/Globals.js');
|
||||
if (!Globals.bDisableNanoScroll)
|
||||
{
|
||||
$(oElement)
|
||||
|
|
@ -591,9 +566,11 @@
|
|||
|
||||
ko.bindingHandlers.emailsTags = {
|
||||
'init': function(oElement, fValueAccessor, fAllBindingsAccessor) {
|
||||
|
||||
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
EmailModel = require('../Models/EmailModel.js'),
|
||||
|
||||
$oEl = $(oElement),
|
||||
fValue = fValueAccessor(),
|
||||
fAllBindings = fAllBindingsAccessor(),
|
||||
|
|
@ -662,10 +639,12 @@
|
|||
};
|
||||
|
||||
ko.bindingHandlers.contactTags = {
|
||||
'init': function(oElement, fValueAccessor) {
|
||||
|
||||
'init': function(oElement, fValueAccessor, fAllBindingsAccessor) {
|
||||
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
ContactTagModel = require('../Models/ContactTagModel.js'),
|
||||
|
||||
$oEl = $(oElement),
|
||||
fValue = fValueAccessor(),
|
||||
fAllBindings = fAllBindingsAccessor(),
|
||||
|
|
@ -777,7 +756,7 @@
|
|||
|
||||
ko.extenders.trimmer = function (oTarget)
|
||||
{
|
||||
var
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
oResult = ko.computed({
|
||||
'read': oTarget,
|
||||
|
|
@ -794,7 +773,7 @@
|
|||
|
||||
ko.extenders.posInterer = function (oTarget, iDefault)
|
||||
{
|
||||
var
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
oResult = ko.computed({
|
||||
'read': oTarget,
|
||||
|
|
@ -852,7 +831,7 @@
|
|||
ko.extenders.falseTimeout = function (oTarget, iOption)
|
||||
{
|
||||
var Utils = require('../Common/Utils.js');
|
||||
|
||||
|
||||
oTarget.iTimeout = 0;
|
||||
oTarget.subscribe(function (bValue) {
|
||||
if (bValue)
|
||||
|
|
@ -877,6 +856,7 @@
|
|||
ko.observable.fn.validateEmail = function ()
|
||||
{
|
||||
var Utils = require('../Common/Utils.js');
|
||||
|
||||
this.hasError = ko.observable(false);
|
||||
|
||||
this.subscribe(function (sValue) {
|
||||
|
|
@ -906,6 +886,7 @@
|
|||
ko.observable.fn.validateFunc = function (fFunc)
|
||||
{
|
||||
var Utils = require('../Common/Utils.js');
|
||||
|
||||
this.hasFuncError = ko.observable(false);
|
||||
|
||||
if (Utils.isFunc(fFunc))
|
||||
|
|
@ -922,4 +903,4 @@
|
|||
|
||||
module.exports = ko;
|
||||
|
||||
}(module));
|
||||
}(module, ko));
|
||||
|
|
|
|||
1
dev/External/moment.js
vendored
1
dev/External/moment.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = moment;
|
||||
1
dev/External/ssm.js
vendored
1
dev/External/ssm.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = ssm;
|
||||
1
dev/External/underscore.js
vendored
1
dev/External/underscore.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = _;
|
||||
9
dev/External/window.js
vendored
9
dev/External/window.js
vendored
|
|
@ -1,5 +1,4 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = window;
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
'use strict';
|
||||
|
||||
module.exports = window;
|
||||
Loading…
Add table
Add a link
Reference in a new issue