Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 0c38f42

Browse files
committed
Small improvements
1 parent 19d3b55 commit 0c38f42

File tree

13 files changed

+54
-83
lines changed

13 files changed

+54
-83
lines changed

dev/Common/Audio.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,19 @@ class Audio {
4444
}
4545

4646
createNewObject() {
47-
const player = window.Audio ? new window.Audio() : null;
48-
if (player && player.canPlayType && player.pause && player.play) {
49-
player.preload = 'none';
50-
player.loop = false;
51-
player.autoplay = false;
52-
player.muted = false;
53-
}
47+
try {
48+
const player = window.Audio ? new window.Audio() : null;
49+
if (player && player.canPlayType && player.pause && player.play) {
50+
player.preload = 'none';
51+
player.loop = false;
52+
player.autoplay = false;
53+
player.muted = false;
54+
}
55+
56+
return player;
57+
} catch (e) {} // eslint-disable-line no-empty
5458

55-
return player;
59+
return null;
5660
}
5761

5862
paused() {

dev/Settings/Admin/Branding.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class BrandingAdminSettings {
3737
];
3838
});
3939

40-
this.loginPowered = ko.observable(!!settingsGet('LoginPowered'));
4140
this.community = RL_COMMUNITY || AppStore.community();
4241
}
4342

dev/Settings/Admin/Prem/Branding.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,6 @@ class BrandingPremAdminSettings extends BrandingAdminSettings {
9090
});
9191
});
9292

93-
this.loginPowered.subscribe((value) => {
94-
Remote.saveAdminConfig(null, {
95-
'LoginPowered': boolToAjax(value)
96-
});
97-
});
9893
}, Magics.Time50ms);
9994
}
10095
}

dev/View/Admin/Login.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class LoginAdminView extends AbstractViewNext {
2525
constructor() {
2626
super();
2727

28-
this.loginPowered = !!Settings.settingsGet('LoginPowered');
29-
3028
this.mobile = !!Settings.appSettingsGet('mobile');
3129
this.mobileDevice = !!Settings.appSettingsGet('mobileDevice');
3230

dev/View/User/Login.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class LoginUserView extends AbstractViewNext {
5757
this.additionalCodeSignMe = ko.observable(false);
5858

5959
this.logoImg = trim(Settings.settingsGet('LoginLogo'));
60-
this.loginPowered = !!Settings.settingsGet('LoginPowered');
6160
this.loginDescription = trim(Settings.settingsGet('LoginDescription'));
6261

6362
this.mobile = !!Settings.appSettingsGet('mobile');

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
],
4848
"readmeFilename": "README.md",
4949
"devDependencies": {
50-
"@babel/core": "7.5.0",
50+
"@babel/core": "7.5.4",
5151
"@babel/plugin-proposal-class-properties": "7.5.0",
5252
"@babel/plugin-proposal-decorators": "7.4.4",
5353
"@babel/plugin-transform-runtime": "7.5.0",
54-
"@babel/preset-env": "7.5.0",
55-
"@babel/runtime": "7.5.0",
56-
"@babel/runtime-corejs3": "7.5.0",
54+
"@babel/preset-env": "7.5.4",
55+
"@babel/runtime": "7.5.4",
56+
"@babel/runtime-corejs3": "7.5.4",
5757
"autolinker": "3.1.0",
5858
"babel-eslint": "10.0.2",
5959
"babel-loader": "8.0.6",
@@ -118,7 +118,7 @@
118118
"simplestatemanager": "4.1.1",
119119
"style-loader": "0.23.1",
120120
"underscore": "1.9.1",
121-
"webpack": "4.35.2",
121+
"webpack": "4.35.3",
122122
"webpack-cli": "3.3.5"
123123
}
124124
}

rainloop/v/0.0.0/app/libraries/RainLoop/Actions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,6 @@ public function AppData($bAdmin, $bMobile = false, $bMobileDevice = false, $sAut
15111511
'LoadingDescriptionEsc' => 'RainLoop',
15121512
'FaviconUrl' => $oConfig->Get('webmail', 'favicon_url', ''),
15131513
'LoginDescription' => '',
1514-
'LoginPowered' => true,
15151514
'LoginLogo' => '',
15161515
'LoginBackground' => '',
15171516
'LoginCss' => '',

rainloop/v/0.0.0/app/libraries/RainLoop/Config/Application.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ protected function defaultValues()
169169
'login_background' => array(''),
170170
'login_desc' => array(''),
171171
'login_css' => array(''),
172-
'login_powered' => array(true),
173172

174173
'user_css' => array(''),
175174
'user_logo' => array(''),

rainloop/v/0.0.0/app/libraries/RainLoop/Providers/Prem.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public function PopulateAppData(&$aAppData)
7171
$aAppData['LoginBackground'] = $oConfig->Get('branding', 'login_background', '');
7272
$aAppData['LoginCss'] = $oConfig->Get('branding', 'login_css', '');
7373
$aAppData['LoginDescription'] = $oConfig->Get('branding', 'login_desc', '');
74-
$aAppData['LoginPowered'] = !!$oConfig->Get('branding', 'login_powered', true);
7574
$aAppData['UserLogo'] = $oConfig->Get('branding', 'user_logo', '');
7675
$aAppData['UserLogoTitle'] = $oConfig->Get('branding', 'user_logo_title', '');
7776
$aAppData['UserLogoMessage'] = $oConfig->Get('branding', 'user_logo_message', '');
@@ -86,7 +85,7 @@ public function PopulateAppData(&$aAppData)
8685
public function PremSection(&$oActions, &$oConfig)
8786
{
8887
if ($oActions && $oActions->HasOneOfActionParams(array(
89-
'LoginLogo', 'LoginBackground', 'LoginDescription', 'LoginCss', 'LoginPowered',
88+
'LoginLogo', 'LoginBackground', 'LoginDescription', 'LoginCss',
9089
'UserLogo', 'UserLogoTitle', 'UserLogoMessage', 'UserIframeMessage', 'UserCss',
9190
'WelcomePageUrl', 'WelcomePageDisplay'
9291
)) && $this->Type())
@@ -95,7 +94,6 @@ public function PremSection(&$oActions, &$oConfig)
9594
$oActions->setConfigFromParams($oConfig, 'LoginBackground', 'branding', 'login_background', 'string');
9695
$oActions->setConfigFromParams($oConfig, 'LoginDescription', 'branding', 'login_desc', 'string');
9796
$oActions->setConfigFromParams($oConfig, 'LoginCss', 'branding', 'login_css', 'string');
98-
$oActions->setConfigFromParams($oConfig, 'LoginPowered', 'branding', 'login_powered', 'bool');
9997

10098
$oActions->setConfigFromParams($oConfig, 'UserLogo', 'branding', 'user_logo', 'string');
10199
$oActions->setConfigFromParams($oConfig, 'UserLogoTitle', 'branding', 'user_logo_title', 'string');

rainloop/v/0.0.0/app/templates/Views/Admin/AdminLogin.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
</div>
4242
</form>
4343
</div>
44-
<div class="e-powered thm-powered" data-bind="visible: loginPowered">
45-
Powered by <a href="http://www.rainloop.net" target="_blank">RainLoop</a>
46-
</div>
4744
</center>
4845
</div>
4946
<div class="loginAfter"></div>

0 commit comments

Comments
 (0)