mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
CommonJS (research)
This commit is contained in:
parent
2fa2cd191e
commit
56607de87c
91 changed files with 20220 additions and 12933 deletions
|
|
@ -320,7 +320,7 @@ LoginViewModel.prototype.onBuild = function ()
|
|||
'cache': true
|
||||
}).done(function() {
|
||||
self.bSendLanguage = true;
|
||||
Utils.i18nToDoc();
|
||||
Utils.i18nReload();
|
||||
$.cookie('rllang', RL.data().language(), {'expires': 30});
|
||||
}).always(function() {
|
||||
self.langRequest(false);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,13 +1,27 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractSystemDropDownViewModel
|
||||
*/
|
||||
function MailBoxSystemDropDownViewModel()
|
||||
{
|
||||
AbstractSystemDropDownViewModel.call(this);
|
||||
Knoin.constructorEnd(this);
|
||||
}
|
||||
(function (module) {
|
||||
|
||||
Utils.extendAsViewModel('MailBoxSystemDropDownViewModel', MailBoxSystemDropDownViewModel, AbstractSystemDropDownViewModel);
|
||||
'use strict';
|
||||
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
kn = require('../Knoin/Knoin.js'),
|
||||
AbstractSystemDropDownViewModel = require('./AbstractSystemDropDownViewModel.js')
|
||||
;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractSystemDropDownViewModel
|
||||
*/
|
||||
function MailBoxSystemDropDownViewModel()
|
||||
{
|
||||
AbstractSystemDropDownViewModel.call(this);
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
Utils.extendAsViewModel('MailBoxSystemDropDownViewModel', MailBoxSystemDropDownViewModel, AbstractSystemDropDownViewModel);
|
||||
|
||||
module.exports = MailBoxSystemDropDownViewModel;
|
||||
|
||||
}(module));
|
||||
|
|
|
|||
|
|
@ -1,30 +1,44 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
/**
|
||||
* @param {?} oScreen
|
||||
*
|
||||
* @constructor
|
||||
* @extends KnoinAbstractViewModel
|
||||
*/
|
||||
function SettingsMenuViewModel(oScreen)
|
||||
{
|
||||
KnoinAbstractViewModel.call(this, 'Left', 'SettingsMenu');
|
||||
(function (module) {
|
||||
|
||||
this.leftPanelDisabled = RL.data().leftPanelDisabled;
|
||||
'use strict';
|
||||
|
||||
this.menu = oScreen.menu;
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
kn = require('../Knoin/Knoin.js'),
|
||||
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
||||
;
|
||||
|
||||
Knoin.constructorEnd(this);
|
||||
}
|
||||
/**
|
||||
* @param {?} oScreen
|
||||
*
|
||||
* @constructor
|
||||
* @extends KnoinAbstractViewModel
|
||||
*/
|
||||
function SettingsMenuViewModel(oScreen)
|
||||
{
|
||||
KnoinAbstractViewModel.call(this, 'Left', 'SettingsMenu');
|
||||
|
||||
Utils.extendAsViewModel('SettingsMenuViewModel', SettingsMenuViewModel);
|
||||
this.leftPanelDisabled = RL.data().leftPanelDisabled; // TODO cjs
|
||||
|
||||
SettingsMenuViewModel.prototype.link = function (sRoute)
|
||||
{
|
||||
return RL.link().settings(sRoute);
|
||||
};
|
||||
this.menu = oScreen.menu;
|
||||
|
||||
SettingsMenuViewModel.prototype.backToMailBoxClick = function ()
|
||||
{
|
||||
kn.setHash(RL.link().inbox());
|
||||
};
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
Utils.extendAsViewModel('SettingsMenuViewModel', SettingsMenuViewModel);
|
||||
|
||||
SettingsMenuViewModel.prototype.link = function (sRoute)
|
||||
{
|
||||
return RL.link().settings(sRoute);// TODO cjs
|
||||
};
|
||||
|
||||
SettingsMenuViewModel.prototype.backToMailBoxClick = function ()
|
||||
{
|
||||
kn.setHash(RL.link().inbox()); // TODO cjs
|
||||
};
|
||||
|
||||
module.exports = SettingsMenuViewModel;
|
||||
|
||||
}(module));
|
||||
|
|
@ -1,32 +1,48 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends KnoinAbstractViewModel
|
||||
*/
|
||||
function SettingsPaneViewModel()
|
||||
{
|
||||
KnoinAbstractViewModel.call(this, 'Right', 'SettingsPane');
|
||||
(function (module) {
|
||||
|
||||
Knoin.constructorEnd(this);
|
||||
}
|
||||
'use strict';
|
||||
|
||||
Utils.extendAsViewModel('SettingsPaneViewModel', SettingsPaneViewModel);
|
||||
var
|
||||
key = require('../External/key.js'),
|
||||
Enums = require('../Common/Enums.js'),
|
||||
Utils = require('../Common/Utils.js'),
|
||||
kn = require('../Knoin/Knoin.js'),
|
||||
KnoinAbstractViewModel = require('../Knoin/KnoinAbstractViewModel.js')
|
||||
;
|
||||
|
||||
SettingsPaneViewModel.prototype.onBuild = function ()
|
||||
{
|
||||
var self = this;
|
||||
key('esc', Enums.KeyState.Settings, function () {
|
||||
self.backToMailBoxClick();
|
||||
});
|
||||
};
|
||||
/**
|
||||
* @constructor
|
||||
* @extends KnoinAbstractViewModel
|
||||
*/
|
||||
function SettingsPaneViewModel()
|
||||
{
|
||||
KnoinAbstractViewModel.call(this, 'Right', 'SettingsPane');
|
||||
|
||||
SettingsPaneViewModel.prototype.onShow = function ()
|
||||
{
|
||||
RL.data().message(null);
|
||||
};
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
SettingsPaneViewModel.prototype.backToMailBoxClick = function ()
|
||||
{
|
||||
kn.setHash(RL.link().inbox());
|
||||
};
|
||||
Utils.extendAsViewModel('SettingsPaneViewModel', SettingsPaneViewModel);
|
||||
|
||||
SettingsPaneViewModel.prototype.onBuild = function ()
|
||||
{
|
||||
var self = this;
|
||||
key('esc', Enums.KeyState.Settings, function () {
|
||||
self.backToMailBoxClick();
|
||||
});
|
||||
};
|
||||
|
||||
SettingsPaneViewModel.prototype.onShow = function ()
|
||||
{
|
||||
RL.data().message(null); // TODO cjs
|
||||
};
|
||||
|
||||
SettingsPaneViewModel.prototype.backToMailBoxClick = function ()
|
||||
{
|
||||
kn.setHash(RL.link().inbox()); // TODO cjs
|
||||
};
|
||||
|
||||
module.exports = SettingsPaneViewModel;
|
||||
|
||||
}(module));
|
||||
|
|
@ -1,13 +1,27 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractSystemDropDownViewModel
|
||||
*/
|
||||
function SettingsSystemDropDownViewModel()
|
||||
{
|
||||
AbstractSystemDropDownViewModel.call(this);
|
||||
Knoin.constructorEnd(this);
|
||||
}
|
||||
(function (module) {
|
||||
|
||||
Utils.extendAsViewModel('SettingsSystemDropDownViewModel', SettingsSystemDropDownViewModel, AbstractSystemDropDownViewModel);
|
||||
'use strict';
|
||||
|
||||
var
|
||||
Utils = require('../Common/Utils.js'),
|
||||
kn = require('./Knoin/Knoin.js'),
|
||||
AbstractSystemDropDownViewModel = require('./AbstractSystemDropDownViewModel.js')
|
||||
;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractSystemDropDownViewModel
|
||||
*/
|
||||
function SettingsSystemDropDownViewModel()
|
||||
{
|
||||
AbstractSystemDropDownViewModel.call(this);
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
Utils.extendAsViewModel('SettingsSystemDropDownViewModel', SettingsSystemDropDownViewModel, AbstractSystemDropDownViewModel);
|
||||
|
||||
module.exports = SettingsSystemDropDownViewModel;
|
||||
|
||||
}(module));
|
||||
Loading…
Add table
Add a link
Reference in a new issue