mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Code refactoring
Fixed languages popup Release commit
This commit is contained in:
parent
fa795947cf
commit
ccbf04cb67
123 changed files with 1375 additions and 5128 deletions
|
|
@ -1,11 +1,11 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
(function (module, require) {
|
||||
|
||||
|
||||
'use strict';
|
||||
|
||||
var
|
||||
_ = require('_'),
|
||||
|
||||
KnoinAbstractScreen = require('Knoin:AbstractScreen')
|
||||
;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
(function (module, require) {
|
||||
|
||||
'use strict';
|
||||
|
||||
var
|
||||
$ = require('$'),
|
||||
_ = require('_'),
|
||||
$ = require('$'),
|
||||
ko = require('ko'),
|
||||
|
||||
Globals = require('Globals'),
|
||||
|
|
@ -18,11 +17,11 @@
|
|||
;
|
||||
|
||||
/**
|
||||
* @param {Array} aViewModels
|
||||
* @constructor
|
||||
* @param {Array} aViewModels
|
||||
* @extends KnoinAbstractScreen
|
||||
*/
|
||||
function AbstractSettings(aViewModels)
|
||||
function AbstractSettingsScreen(aViewModels)
|
||||
{
|
||||
KnoinAbstractScreen.call(this, 'settings', aViewModels);
|
||||
|
||||
|
|
@ -32,9 +31,9 @@
|
|||
this.oViewModelPlace = null;
|
||||
}
|
||||
|
||||
_.extend(AbstractSettings.prototype, KnoinAbstractScreen.prototype);
|
||||
_.extend(AbstractSettingsScreen.prototype, KnoinAbstractScreen.prototype);
|
||||
|
||||
AbstractSettings.prototype.onRoute = function (sSubName)
|
||||
AbstractSettingsScreen.prototype.onRoute = function (sSubName)
|
||||
{
|
||||
var
|
||||
self = this,
|
||||
|
|
@ -141,7 +140,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
AbstractSettings.prototype.onHide = function ()
|
||||
AbstractSettingsScreen.prototype.onHide = function ()
|
||||
{
|
||||
if (this.oCurrentSubScreen && this.oCurrentSubScreen.viewModelDom)
|
||||
{
|
||||
|
|
@ -150,7 +149,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
AbstractSettings.prototype.onBuild = function ()
|
||||
AbstractSettingsScreen.prototype.onBuild = function ()
|
||||
{
|
||||
_.each(Globals.aViewModels['settings'], function (SettingsViewModel) {
|
||||
if (SettingsViewModel && SettingsViewModel.__rlSettingsData &&
|
||||
|
|
@ -172,7 +171,7 @@
|
|||
this.oViewModelPlace = $('#rl-content #rl-settings-subscreen');
|
||||
};
|
||||
|
||||
AbstractSettings.prototype.routes = function ()
|
||||
AbstractSettingsScreen.prototype.routes = function ()
|
||||
{
|
||||
var
|
||||
DefaultViewModel = _.find(Globals.aViewModels['settings'], function (SettingsViewModel) {
|
||||
|
|
@ -195,6 +194,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
module.exports = AbstractSettings;
|
||||
module.exports = AbstractSettingsScreen;
|
||||
|
||||
}(module, require));
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
(function (module, require) {
|
||||
|
||||
'use strict';
|
||||
|
||||
|
||||
var
|
||||
_ = require('_'),
|
||||
|
||||
KnoinAbstractScreen = require('Knoin:AbstractScreen')
|
||||
;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
(function (module, require) {
|
||||
|
||||
|
|
@ -6,6 +5,7 @@
|
|||
|
||||
var
|
||||
_ = require('_'),
|
||||
|
||||
AbstractSettings = require('Screen:AbstractSettings')
|
||||
;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
(function (module, require) {
|
||||
|
||||
|
||||
'use strict';
|
||||
|
||||
var
|
||||
_ = require('_'),
|
||||
|
||||
KnoinAbstractScreen = require('Knoin:AbstractScreen')
|
||||
;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
(function (module, require) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
(function (module, require) {
|
||||
|
||||
|
|
@ -11,16 +10,16 @@
|
|||
Utils = require('Utils'),
|
||||
Globals = require('Globals'),
|
||||
|
||||
AbstractSettings = require('Screen:AbstractSettings')
|
||||
AbstractSettingsScreen = require('Screen:AbstractSettings')
|
||||
;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractSettings
|
||||
* @extends AbstractSettingsScreen
|
||||
*/
|
||||
function SettingsScreen()
|
||||
{
|
||||
AbstractSettings.call(this, [
|
||||
AbstractSettingsScreen.call(this, [
|
||||
require('View:RainLoop:SettingsSystemDropDown'),
|
||||
require('View:RainLoop:SettingsMenu'),
|
||||
require('View:RainLoop:SettingsPane')
|
||||
|
|
@ -33,14 +32,14 @@
|
|||
});
|
||||
}
|
||||
|
||||
_.extend(SettingsScreen.prototype, AbstractSettings.prototype);
|
||||
_.extend(SettingsScreen.prototype, AbstractSettingsScreen.prototype);
|
||||
|
||||
SettingsScreen.prototype.onShow = function ()
|
||||
{
|
||||
this.setSettingsTitle();
|
||||
Globals.keyScope(Enums.KeyState.Settings);
|
||||
};
|
||||
|
||||
|
||||
SettingsScreen.prototype.setSettingsTitle = function ()
|
||||
{
|
||||
require('App:RainLoop').setTitle(this.sSettingsTitle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue