mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-28 02:21:06 +08:00
06274c6a7c
Fixed owncloud password encoder/decoder (#291) Fixed ckeditor in ownCloud iframe (Closes #302) Release commit
79 lines
No EOL
1.9 KiB
JavaScript
79 lines
No EOL
1.9 KiB
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
_ = require('_'),
|
|
|
|
kn = require('Knoin/Knoin'),
|
|
|
|
AbstractSettings = require('Screen/AbstractSettings')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends AbstractSettings
|
|
*/
|
|
function SettingsAdminScreen()
|
|
{
|
|
AbstractSettings.call(this, [
|
|
require('View/Admin/Settings/Menu'),
|
|
require('View/Admin/Settings/Pane')
|
|
]);
|
|
}
|
|
|
|
_.extend(SettingsAdminScreen.prototype, AbstractSettings.prototype);
|
|
|
|
/**
|
|
* @param {Function=} fCallback
|
|
*/
|
|
SettingsAdminScreen.prototype.setupSettings = function (fCallback)
|
|
{
|
|
kn.addSettingsViewModel(require('Settings/Admin/General'),
|
|
'AdminSettingsGeneral', 'General', 'general', true);
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Login'),
|
|
'AdminSettingsLogin', 'Login', 'login');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Branding'),
|
|
'AdminSettingsBranding', 'Branding', 'branding');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Contacts'),
|
|
'AdminSettingsContacts', 'Contacts', 'contacts');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Domains'),
|
|
'AdminSettingsDomains', 'Domains', 'domains');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Security'),
|
|
'AdminSettingsSecurity', 'Security', 'security');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Social'),
|
|
'AdminSettingsSocial', 'Social', 'social');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Plugins'),
|
|
'AdminSettingsPlugins', 'Plugins', 'plugins');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Packages'),
|
|
'AdminSettingsPackages', 'Packages', 'packages');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/Licensing'),
|
|
'AdminSettingsLicensing', 'Licensing', 'licensing');
|
|
|
|
kn.addSettingsViewModel(require('Settings/Admin/About'),
|
|
'AdminSettingsAbout', 'About', 'about');
|
|
|
|
if (fCallback)
|
|
{
|
|
fCallback();
|
|
}
|
|
};
|
|
|
|
SettingsAdminScreen.prototype.onShow = function ()
|
|
{
|
|
require('App/Admin').setTitle('');
|
|
};
|
|
|
|
module.exports = SettingsAdminScreen;
|
|
|
|
}()); |