mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Code refactoring
Fixed owncloud password encoder/decoder (#291) Fixed ckeditor in ownCloud iframe (Closes #302) Release commit
This commit is contained in:
parent
7a374ebe03
commit
06274c6a7c
112 changed files with 2667 additions and 1862 deletions
48
dev/View/App/Settings/Menu.js
Normal file
48
dev/View/App/Settings/Menu.js
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
|
||||
(function () {
|
||||
|
||||
'use strict';
|
||||
|
||||
var
|
||||
_ = require('_'),
|
||||
|
||||
Globals = require('Common/Globals'),
|
||||
LinkBuilder = require('Common/LinkBuilder'),
|
||||
|
||||
kn = require('Knoin/Knoin'),
|
||||
AbstractView = require('Knoin/AbstractView')
|
||||
;
|
||||
|
||||
/**
|
||||
* @param {?} oScreen
|
||||
*
|
||||
* @constructor
|
||||
* @extends AbstractView
|
||||
*/
|
||||
function MenuSettingsAppView(oScreen)
|
||||
{
|
||||
AbstractView.call(this, 'Left', 'SettingsMenu');
|
||||
|
||||
this.leftPanelDisabled = Globals.leftPanelDisabled;
|
||||
|
||||
this.menu = oScreen.menu;
|
||||
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
kn.extendAsViewModel(['View/App/Settings/Menu', 'SettingsMenuViewModel'], MenuSettingsAppView);
|
||||
_.extend(MenuSettingsAppView.prototype, AbstractView.prototype);
|
||||
|
||||
MenuSettingsAppView.prototype.link = function (sRoute)
|
||||
{
|
||||
return LinkBuilder.settings(sRoute);
|
||||
};
|
||||
|
||||
MenuSettingsAppView.prototype.backToMailBoxClick = function ()
|
||||
{
|
||||
kn.setHash(LinkBuilder.inbox());
|
||||
};
|
||||
|
||||
module.exports = MenuSettingsAppView;
|
||||
|
||||
}());
|
||||
53
dev/View/App/Settings/Pane.js
Normal file
53
dev/View/App/Settings/Pane.js
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
|
||||
(function () {
|
||||
|
||||
'use strict';
|
||||
|
||||
var
|
||||
_ = require('_'),
|
||||
key = require('key'),
|
||||
|
||||
Enums = require('Common/Enums'),
|
||||
LinkBuilder = require('Common/LinkBuilder'),
|
||||
|
||||
Data = require('Storage/App/Data'),
|
||||
|
||||
kn = require('Knoin/Knoin'),
|
||||
AbstractView = require('Knoin/AbstractView')
|
||||
;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractView
|
||||
*/
|
||||
function PaneSettingsAppView()
|
||||
{
|
||||
AbstractView.call(this, 'Right', 'SettingsPane');
|
||||
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
kn.extendAsViewModel(['View/App/Settings/Pane', 'SettingsPaneViewModel'], PaneSettingsAppView);
|
||||
_.extend(PaneSettingsAppView.prototype, AbstractView.prototype);
|
||||
|
||||
PaneSettingsAppView.prototype.onBuild = function ()
|
||||
{
|
||||
var self = this;
|
||||
key('esc', Enums.KeyState.Settings, function () {
|
||||
self.backToMailBoxClick();
|
||||
});
|
||||
};
|
||||
|
||||
PaneSettingsAppView.prototype.onShow = function ()
|
||||
{
|
||||
Data.message(null);
|
||||
};
|
||||
|
||||
PaneSettingsAppView.prototype.backToMailBoxClick = function ()
|
||||
{
|
||||
kn.setHash(LinkBuilder.inbox());
|
||||
};
|
||||
|
||||
module.exports = PaneSettingsAppView;
|
||||
|
||||
}());
|
||||
28
dev/View/App/Settings/SystemDropDown.js
Normal file
28
dev/View/App/Settings/SystemDropDown.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
(function () {
|
||||
|
||||
'use strict';
|
||||
|
||||
var
|
||||
_ = require('_'),
|
||||
|
||||
kn = require('Knoin/Knoin'),
|
||||
AbstractSystemDropDownAppView = require('View/App/AbstractSystemDropDown')
|
||||
;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractSystemDropDownAppView
|
||||
*/
|
||||
function SystemDropDownSettingsAppView()
|
||||
{
|
||||
AbstractSystemDropDownAppView.call(this);
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
kn.extendAsViewModel(['View/App/Settings/SystemDropDown', 'SettingsSystemDropDownViewModel'], SystemDropDownSettingsAppView);
|
||||
_.extend(SystemDropDownSettingsAppView.prototype, AbstractSystemDropDownAppView.prototype);
|
||||
|
||||
module.exports = SystemDropDownSettingsAppView;
|
||||
|
||||
}());
|
||||
Loading…
Add table
Add a link
Reference in a new issue