mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Remove more RainLoop standard/premium licensed code
This commit is contained in:
parent
2a1ccc5d24
commit
4f8b07fe85
18 changed files with 3 additions and 326 deletions
|
|
@ -10,15 +10,6 @@ class BrandingAdminSettings {
|
|||
this.title = ko.observable(settingsGet('Title')).idleTrigger();
|
||||
this.loadingDesc = ko.observable(settingsGet('LoadingDescription')).idleTrigger();
|
||||
this.faviconUrl = ko.observable(settingsGet('FaviconUrl')).idleTrigger();
|
||||
this.loginLogo = ko.observable(settingsGet('LoginLogo') || '').idleTrigger();
|
||||
this.loginBackground = ko.observable(settingsGet('LoginBackground') || '').idleTrigger();
|
||||
this.userLogo = ko.observable(settingsGet('UserLogo') || '').idleTrigger();
|
||||
this.userLogoMessage = ko.observable(settingsGet('UserLogoMessage') || '').idleTrigger();
|
||||
this.userIframeMessage = ko.observable(settingsGet('UserIframeMessage') || '').idleTrigger();
|
||||
this.userLogoTitle = ko.observable(settingsGet('UserLogoTitle') || '').idleTrigger();
|
||||
this.loginDescription = ko.observable(settingsGet('LoginDescription')).idleTrigger();
|
||||
this.loginCss = ko.observable(settingsGet('LoginCss')).idleTrigger();
|
||||
this.userCss = ko.observable(settingsGet('UserCss')).idleTrigger();
|
||||
}
|
||||
|
||||
onBuild() {
|
||||
|
|
|
|||
|
|
@ -14,9 +14,6 @@ class AbstractSystemDropDownUserView extends AbstractViewNext {
|
|||
constructor() {
|
||||
super();
|
||||
|
||||
this.logoImg = (Settings.get('UserLogo')||'').trim();
|
||||
this.logoTitle = (Settings.get('UserLogoTitle')||'').trim();
|
||||
|
||||
this.mobile = !!Settings.app('mobile');
|
||||
this.mobileDevice = !!Settings.app('mobileDevice');
|
||||
|
||||
|
|
|
|||
|
|
@ -63,9 +63,6 @@ class LoginUserView extends AbstractViewNext {
|
|||
|
||||
this.additionalCodeErrorAnimation = ko.observable(false).extend({ falseTimeout: 500 });
|
||||
|
||||
this.logoImg = (Settings.get('LoginLogo')||'').trim();
|
||||
this.loginDescription = (Settings.get('LoginDescription')||'').trim();
|
||||
|
||||
this.mobile = !!Settings.app('mobile');
|
||||
this.mobileDevice = !!Settings.app('mobileDevice');
|
||||
|
||||
|
|
|
|||
|
|
@ -88,9 +88,6 @@ class MessageViewMailBoxUserView extends AbstractViewNext {
|
|||
this.allowMessageActions = !!Settings.capa(Capa.MessageActions);
|
||||
this.allowMessageListActions = !!Settings.capa(Capa.MessageListActions);
|
||||
|
||||
this.logoImg = (Settings.get('UserLogoMessage')||'').trim();
|
||||
this.logoIframe = (Settings.get('UserIframeMessage')||'').trim();
|
||||
|
||||
this.mobile = !!Settings.app('mobile');
|
||||
|
||||
this.attachmentsActions = AppStore.attachmentsActions;
|
||||
|
|
|
|||
17
dev/boot.js
17
dev/boot.js
|
|
@ -47,13 +47,6 @@ const
|
|||
p.end();
|
||||
},
|
||||
|
||||
writeCSS = css => {
|
||||
const style = doc.createElement('style');
|
||||
style.type = 'text/css';
|
||||
style.textContent = css;
|
||||
doc.head.append(style);
|
||||
},
|
||||
|
||||
loadScript = src => {
|
||||
if (!src) {
|
||||
throw new Error('src should not be empty.');
|
||||
|
|
@ -149,16 +142,6 @@ win.rl = {
|
|||
eId('app-theme-link').href = appData.NewThemeLink;
|
||||
}
|
||||
|
||||
appData.IncludeCss && writeCSS(appData.IncludeCss);
|
||||
|
||||
if (appData.IncludeBackground) {
|
||||
const img = appData.IncludeBackground.replace('{{USER}}', rl.hash.get() || '0');
|
||||
if (img) {
|
||||
htmlCL.add('UserBackground');
|
||||
doc.body.style.backgroundImage = "url("+img+")";
|
||||
}
|
||||
}
|
||||
|
||||
loadScript(appData.StaticLibJsLink)
|
||||
.then(() => Promise.all([loadScript(appData.TemplatesLink), loadScript(appData.LangLink)]))
|
||||
.then(() => loadScript(appData.StaticAppJsLink))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue