mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Login screen new interface (social buttons)
This commit is contained in:
parent
28a684b7c8
commit
77a30c0b92
40 changed files with 622 additions and 630 deletions
|
|
@ -10,7 +10,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function AboutAdminSetting()
|
||||
function AboutAdminSettings()
|
||||
{
|
||||
var
|
||||
Settings = require('Storage/Settings'),
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
}, this);
|
||||
}
|
||||
|
||||
AboutAdminSetting.prototype.onBuild = function ()
|
||||
AboutAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
if (this.access())
|
||||
{
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
AboutAdminSetting.prototype.updateCoreData = function ()
|
||||
AboutAdminSettings.prototype.updateCoreData = function ()
|
||||
{
|
||||
if (!this.coreUpdating())
|
||||
{
|
||||
|
|
@ -83,6 +83,6 @@
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = AboutAdminSetting;
|
||||
module.exports = AboutAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function BrandingAdminSetting()
|
||||
function BrandingAdminSettings()
|
||||
{
|
||||
var
|
||||
Enums = require('Common/Enums'),
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
this.loginPowered = ko.observable(!!Settings.settingsGet('LoginPowered'));
|
||||
}
|
||||
|
||||
BrandingAdminSetting.prototype.onBuild = function ()
|
||||
BrandingAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
if (this.capa)
|
||||
{
|
||||
|
|
@ -99,6 +99,6 @@
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = BrandingAdminSetting;
|
||||
module.exports = BrandingAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function ContactsAdminSetting()
|
||||
function ContactsAdminSettings()
|
||||
{
|
||||
var
|
||||
Remote = require('Storage/Admin/Remote')
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
this.onTestContactsResponse = _.bind(this.onTestContactsResponse, this);
|
||||
}
|
||||
|
||||
ContactsAdminSetting.prototype.onTestContactsResponse = function (sResult, oData)
|
||||
ContactsAdminSettings.prototype.onTestContactsResponse = function (sResult, oData)
|
||||
{
|
||||
this.testContactsSuccess(false);
|
||||
this.testContactsError(false);
|
||||
|
|
@ -167,14 +167,14 @@
|
|||
this.testing(false);
|
||||
};
|
||||
|
||||
ContactsAdminSetting.prototype.onShow = function ()
|
||||
ContactsAdminSettings.prototype.onShow = function ()
|
||||
{
|
||||
this.testContactsSuccess(false);
|
||||
this.testContactsError(false);
|
||||
this.testContactsErrorMessage('');
|
||||
};
|
||||
|
||||
ContactsAdminSetting.prototype.onBuild = function ()
|
||||
ContactsAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
var
|
||||
self = this,
|
||||
|
|
@ -237,6 +237,6 @@
|
|||
}, 50);
|
||||
};
|
||||
|
||||
module.exports = ContactsAdminSetting;
|
||||
module.exports = ContactsAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function DomainsAdminSetting()
|
||||
function DomainsAdminSettings()
|
||||
{
|
||||
this.domains = Data.domains;
|
||||
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
]});
|
||||
}
|
||||
|
||||
DomainsAdminSetting.prototype.startDomainForDeletionTimeout = function ()
|
||||
DomainsAdminSettings.prototype.startDomainForDeletionTimeout = function ()
|
||||
{
|
||||
var self = this;
|
||||
window.clearInterval(this.iDomainForDeletionTimeout);
|
||||
|
|
@ -54,24 +54,24 @@
|
|||
}, 1000 * 3);
|
||||
};
|
||||
|
||||
DomainsAdminSetting.prototype.createDomain = function ()
|
||||
DomainsAdminSettings.prototype.createDomain = function ()
|
||||
{
|
||||
require('Knoin/Knoin').showScreenPopup(PopupsDomainViewModel);
|
||||
};
|
||||
|
||||
DomainsAdminSetting.prototype.deleteDomain = function (oDomain)
|
||||
DomainsAdminSettings.prototype.deleteDomain = function (oDomain)
|
||||
{
|
||||
this.domains.remove(oDomain);
|
||||
Remote.domainDelete(_.bind(this.onDomainListChangeRequest, this), oDomain.name);
|
||||
};
|
||||
|
||||
DomainsAdminSetting.prototype.disableDomain = function (oDomain)
|
||||
DomainsAdminSettings.prototype.disableDomain = function (oDomain)
|
||||
{
|
||||
oDomain.disabled(!oDomain.disabled());
|
||||
Remote.domainDisable(_.bind(this.onDomainListChangeRequest, this), oDomain.name, oDomain.disabled());
|
||||
};
|
||||
|
||||
DomainsAdminSetting.prototype.onBuild = function (oDom)
|
||||
DomainsAdminSettings.prototype.onBuild = function (oDom)
|
||||
{
|
||||
var self = this;
|
||||
oDom
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
require('App/Admin').reloadDomainList();
|
||||
};
|
||||
|
||||
DomainsAdminSetting.prototype.onDomainLoadRequest = function (sResult, oData)
|
||||
DomainsAdminSettings.prototype.onDomainLoadRequest = function (sResult, oData)
|
||||
{
|
||||
if (Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
||||
{
|
||||
|
|
@ -95,11 +95,11 @@
|
|||
}
|
||||
};
|
||||
|
||||
DomainsAdminSetting.prototype.onDomainListChangeRequest = function ()
|
||||
DomainsAdminSettings.prototype.onDomainListChangeRequest = function ()
|
||||
{
|
||||
require('App/Admin').reloadDomainList();
|
||||
};
|
||||
|
||||
module.exports = DomainsAdminSetting;
|
||||
module.exports = DomainsAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function GeneralAdminSetting()
|
||||
function GeneralAdminSettings()
|
||||
{
|
||||
this.mainLanguage = Data.mainLanguage;
|
||||
this.mainTheme = Data.mainTheme;
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
this.themeTrigger = ko.observable(Enums.SaveSettingsStep.Idle);
|
||||
}
|
||||
|
||||
GeneralAdminSetting.prototype.onBuild = function ()
|
||||
GeneralAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
var
|
||||
self = this,
|
||||
|
|
@ -128,7 +128,7 @@
|
|||
}, 50);
|
||||
};
|
||||
|
||||
GeneralAdminSetting.prototype.selectLanguage = function ()
|
||||
GeneralAdminSettings.prototype.selectLanguage = function ()
|
||||
{
|
||||
require('Knoin/Knoin').showScreenPopup(require('View/Popup/Languages'));
|
||||
};
|
||||
|
|
@ -136,11 +136,11 @@
|
|||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
GeneralAdminSetting.prototype.phpInfoLink = function ()
|
||||
GeneralAdminSettings.prototype.phpInfoLink = function ()
|
||||
{
|
||||
return Links.phpInfo();
|
||||
};
|
||||
|
||||
module.exports = GeneralAdminSetting;
|
||||
module.exports = GeneralAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function LicensingAdminSetting()
|
||||
function LicensingAdminSettings()
|
||||
{
|
||||
this.licensing = Data.licensing;
|
||||
this.licensingProcess = Data.licensingProcess;
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
}, this);
|
||||
}
|
||||
|
||||
LicensingAdminSetting.prototype.onBuild = function ()
|
||||
LicensingAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
if (this.subscriptionEnabled())
|
||||
{
|
||||
|
|
@ -42,12 +42,12 @@
|
|||
}
|
||||
};
|
||||
|
||||
LicensingAdminSetting.prototype.onShow = function ()
|
||||
LicensingAdminSettings.prototype.onShow = function ()
|
||||
{
|
||||
this.adminDomain(Settings.settingsGet('AdminDomain'));
|
||||
};
|
||||
|
||||
LicensingAdminSetting.prototype.showActivationForm = function ()
|
||||
LicensingAdminSettings.prototype.showActivationForm = function ()
|
||||
{
|
||||
require('Knoin/Knoin').showScreenPopup(require('View/Popup/Activate'));
|
||||
};
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
LicensingAdminSetting.prototype.licenseExpiredMomentValue = function ()
|
||||
LicensingAdminSettings.prototype.licenseExpiredMomentValue = function ()
|
||||
{
|
||||
var
|
||||
iTime = this.licenseExpired(),
|
||||
|
|
@ -65,6 +65,6 @@
|
|||
return iTime && 1898625600 === iTime ? 'Never' : (oDate.format('LL') + ' (' + oDate.from(moment()) + ')');
|
||||
};
|
||||
|
||||
module.exports = LicensingAdminSetting;
|
||||
module.exports = LicensingAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function LoginAdminSetting()
|
||||
function LoginAdminSettings()
|
||||
{
|
||||
this.determineUserLanguage = Data.determineUserLanguage;
|
||||
this.determineUserDomain = Data.determineUserDomain;
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
this.dummy = ko.observable(false);
|
||||
}
|
||||
|
||||
LoginAdminSetting.prototype.onBuild = function ()
|
||||
LoginAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
var
|
||||
self = this,
|
||||
|
|
@ -68,6 +68,6 @@
|
|||
}, 50);
|
||||
};
|
||||
|
||||
module.exports = LoginAdminSetting;
|
||||
module.exports = LoginAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function PackagesAdminSetting()
|
||||
function PackagesAdminSettings()
|
||||
{
|
||||
this.packagesError = ko.observable('');
|
||||
|
||||
|
|
@ -42,17 +42,17 @@
|
|||
}, this);
|
||||
}
|
||||
|
||||
PackagesAdminSetting.prototype.onShow = function ()
|
||||
PackagesAdminSettings.prototype.onShow = function ()
|
||||
{
|
||||
this.packagesError('');
|
||||
};
|
||||
|
||||
PackagesAdminSetting.prototype.onBuild = function ()
|
||||
PackagesAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
require('App/Admin').reloadPackagesList();
|
||||
};
|
||||
|
||||
PackagesAdminSetting.prototype.requestHelper = function (oPackage, bInstall)
|
||||
PackagesAdminSettings.prototype.requestHelper = function (oPackage, bInstall)
|
||||
{
|
||||
var self = this;
|
||||
return function (sResult, oData) {
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
PackagesAdminSetting.prototype.deletePackage = function (oPackage)
|
||||
PackagesAdminSettings.prototype.deletePackage = function (oPackage)
|
||||
{
|
||||
if (oPackage)
|
||||
{
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
PackagesAdminSetting.prototype.installPackage = function (oPackage)
|
||||
PackagesAdminSettings.prototype.installPackage = function (oPackage)
|
||||
{
|
||||
if (oPackage)
|
||||
{
|
||||
|
|
@ -107,6 +107,6 @@
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = PackagesAdminSetting;
|
||||
module.exports = PackagesAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function PluginsAdminSetting()
|
||||
function PluginsAdminSettings()
|
||||
{
|
||||
this.enabledPlugins = ko.observable(!!Settings.settingsGet('EnabledPlugins'));
|
||||
|
||||
|
|
@ -34,18 +34,18 @@
|
|||
this.onPluginDisableRequest = _.bind(this.onPluginDisableRequest, this);
|
||||
}
|
||||
|
||||
PluginsAdminSetting.prototype.disablePlugin = function (oPlugin)
|
||||
PluginsAdminSettings.prototype.disablePlugin = function (oPlugin)
|
||||
{
|
||||
oPlugin.disabled(!oPlugin.disabled());
|
||||
Remote.pluginDisable(this.onPluginDisableRequest, oPlugin.name, oPlugin.disabled());
|
||||
};
|
||||
|
||||
PluginsAdminSetting.prototype.configurePlugin = function (oPlugin)
|
||||
PluginsAdminSettings.prototype.configurePlugin = function (oPlugin)
|
||||
{
|
||||
Remote.plugin(this.onPluginLoadRequest, oPlugin.name);
|
||||
};
|
||||
|
||||
PluginsAdminSetting.prototype.onBuild = function (oDom)
|
||||
PluginsAdminSettings.prototype.onBuild = function (oDom)
|
||||
{
|
||||
var self = this;
|
||||
|
||||
|
|
@ -73,13 +73,13 @@
|
|||
});
|
||||
};
|
||||
|
||||
PluginsAdminSetting.prototype.onShow = function ()
|
||||
PluginsAdminSettings.prototype.onShow = function ()
|
||||
{
|
||||
this.pluginsError('');
|
||||
require('App/Admin').reloadPluginList();
|
||||
};
|
||||
|
||||
PluginsAdminSetting.prototype.onPluginLoadRequest = function (sResult, oData)
|
||||
PluginsAdminSettings.prototype.onPluginLoadRequest = function (sResult, oData)
|
||||
{
|
||||
if (Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
||||
{
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
PluginsAdminSetting.prototype.onPluginDisableRequest = function (sResult, oData)
|
||||
PluginsAdminSettings.prototype.onPluginDisableRequest = function (sResult, oData)
|
||||
{
|
||||
if (Enums.StorageResultType.Success === sResult && oData)
|
||||
{
|
||||
|
|
@ -107,6 +107,6 @@
|
|||
require('App/Admin').reloadPluginList();
|
||||
};
|
||||
|
||||
module.exports = PluginsAdminSetting;
|
||||
module.exports = PluginsAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function SecurityAdminSetting()
|
||||
function SecurityAdminSettings()
|
||||
{
|
||||
this.useLocalProxyForExternalImages = Data.useLocalProxyForExternalImages;
|
||||
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
this.onNewAdminPasswordResponse = _.bind(this.onNewAdminPasswordResponse, this);
|
||||
}
|
||||
|
||||
SecurityAdminSetting.prototype.onNewAdminPasswordResponse = function (sResult, oData)
|
||||
SecurityAdminSettings.prototype.onNewAdminPasswordResponse = function (sResult, oData)
|
||||
{
|
||||
if (Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
||||
{
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
SecurityAdminSetting.prototype.onBuild = function ()
|
||||
SecurityAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
var
|
||||
Remote = require('Storage/Admin/Remote')
|
||||
|
|
@ -140,7 +140,7 @@
|
|||
});
|
||||
};
|
||||
|
||||
SecurityAdminSetting.prototype.onHide = function ()
|
||||
SecurityAdminSettings.prototype.onHide = function ()
|
||||
{
|
||||
this.adminPassword('');
|
||||
this.adminPasswordNew('');
|
||||
|
|
@ -150,11 +150,11 @@
|
|||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
SecurityAdminSetting.prototype.phpInfoLink = function ()
|
||||
SecurityAdminSettings.prototype.phpInfoLink = function ()
|
||||
{
|
||||
return Links.phpInfo();
|
||||
};
|
||||
|
||||
module.exports = SecurityAdminSetting;
|
||||
module.exports = SecurityAdminSettings;
|
||||
|
||||
}());
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function SocialAdminSetting()
|
||||
function SocialAdminSettings()
|
||||
{
|
||||
var Data = require('Storage/Admin/Data');
|
||||
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
this.dropboxTrigger1 = ko.observable(Enums.SaveSettingsStep.Idle);
|
||||
}
|
||||
|
||||
SocialAdminSetting.prototype.onBuild = function ()
|
||||
SocialAdminSettings.prototype.onBuild = function ()
|
||||
{
|
||||
var
|
||||
self = this,
|
||||
|
|
@ -161,6 +161,6 @@
|
|||
}, 50);
|
||||
};
|
||||
|
||||
module.exports = SocialAdminSetting;
|
||||
module.exports = SocialAdminSettings;
|
||||
|
||||
}());
|
||||
Loading…
Add table
Add a link
Reference in a new issue