mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Small fixes
This commit is contained in:
parent
67f666fa7d
commit
9b59ad32dc
16 changed files with 433 additions and 233 deletions
|
|
@ -273,6 +273,16 @@ AbstractApp.prototype.pub = function (sName, aArgs)
|
|||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sName
|
||||
* @return {boolean}
|
||||
*/
|
||||
AbstractApp.prototype.capa = function (sName)
|
||||
{
|
||||
var mCapa = this.settingsGet('Capa');
|
||||
return Utils.isArray(mCapa) && Utils.isNormal(sName) && -1 < Utils.inArray(sName, mCapa);
|
||||
};
|
||||
|
||||
AbstractApp.prototype.bootstart = function ()
|
||||
{
|
||||
var self = this;
|
||||
|
|
|
|||
|
|
@ -212,6 +212,11 @@ AdminApp.prototype.bootstart = function ()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!RL.capa(Enums.Capa.Prem))
|
||||
{
|
||||
Utils.removeSettingsViewModel(AdminBranding);
|
||||
}
|
||||
|
||||
if (!!RL.settingsGet('Auth'))
|
||||
{
|
||||
// TODO
|
||||
|
|
|
|||
|
|
@ -27,6 +27,13 @@ Enums.StateType = {
|
|||
'Admin': 1
|
||||
};
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
Enums.Capa = {
|
||||
'Prem': 'PREM'
|
||||
};
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
.b-domain-content {
|
||||
|
||||
&.modal {
|
||||
width: 645px;
|
||||
width: 810px;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
|
|
@ -11,17 +11,17 @@
|
|||
.modal-body {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 1300px;
|
||||
height: 390px;
|
||||
width: 1600px;
|
||||
height: 370px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
&.domain-edit .modal-body {
|
||||
height: 350px;
|
||||
height: 320px;
|
||||
}
|
||||
|
||||
&.domain-white-list-page .modal-body {
|
||||
left: -640px;
|
||||
left: -800px;
|
||||
}
|
||||
|
||||
.error-desc {
|
||||
|
|
|
|||
|
|
@ -152,7 +152,8 @@ class HtmlUtils
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function ClearStyle($sStyle, $oElement, &$bHasExternals, &$aFoundCIDs, $aContentLocationUrls, &$aFoundedContentLocationUrls, $bDoNotReplaceExternalUrl = false)
|
||||
public static function ClearStyle($sStyle, $oElement, &$bHasExternals, &$aFoundCIDs,
|
||||
$aContentLocationUrls, &$aFoundedContentLocationUrls, $bDoNotReplaceExternalUrl = false)
|
||||
{
|
||||
$sStyle = \trim($sStyle);
|
||||
$aOutStyles = array();
|
||||
|
|
@ -618,8 +619,6 @@ class HtmlUtils
|
|||
*/
|
||||
public static function BuildHtml($sHtml, &$aFoundCids = array(), &$mFoundDataURL = null, &$aFoundedContentLocationUrls = array())
|
||||
{
|
||||
$bRtl = \MailSo\Base\Utils::IsRTL($sHtml);
|
||||
|
||||
$oDom = \MailSo\Base\HtmlUtils::GetDomFromText($sHtml);
|
||||
unset($sHtml);
|
||||
|
||||
|
|
@ -749,7 +748,7 @@ class HtmlUtils
|
|||
$sResult = \MailSo\Base\HtmlUtils::ClearTags($sResult);
|
||||
$sResult = \MailSo\Base\HtmlUtils::ClearBodyAndHtmlTag($sResult);
|
||||
|
||||
return '<!DOCTYPE html><html'.($bRtl ? ' dir="rtl"' : '').'><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>'.
|
||||
return '<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>'.
|
||||
'<body>'.\trim($sResult).'</body></html>';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class Utils
|
|||
'iso-8859-7', 'iso-8859-8', 'iso-8859-9', 'iso-8859-10', 'iso-8859-11', 'iso-8859-12',
|
||||
'iso-8859-13', 'iso-8859-14', 'iso-8859-15', 'iso-8859-16',
|
||||
'koi8-r', 'koi8-u', 'koi8-ru',
|
||||
'cp1250', 'cp1251', 'cp1252', 'cp1253', 'cp1254', 'cp1257', 'cp949', 'cp1133',
|
||||
'cp1125', 'cp1250', 'cp1251', 'cp1252', 'cp1253', 'cp1254', 'cp1257', 'cp949', 'cp1133',
|
||||
'cp850', 'cp866', 'cp1255', 'cp1256', 'cp862', 'cp874', 'cp932', 'cp950', 'cp1258',
|
||||
'windows-1250', 'windows-1251', 'windows-1252', 'windows-1253', 'windows-1254', 'windows-1255',
|
||||
'windows-1256', 'windows-1257', 'windows-1258', 'windows-874',
|
||||
|
|
@ -33,6 +33,62 @@ class Utils
|
|||
'c99', 'java', 'ucs-2-internal', 'ucs-4-internal'
|
||||
);
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public static $aLocaleMapping = array(
|
||||
'.65001' => 'utf-8',
|
||||
'.20127' => 'iso-8859-1',
|
||||
|
||||
'.1250' => 'windows-1250',
|
||||
'.cp1250' => 'windows-1250',
|
||||
'.cp-1250' => 'windows-1250',
|
||||
'.1251' => 'windows-1251',
|
||||
'.cp1251' => 'windows-1251',
|
||||
'.cp-1251' => 'windows-1251',
|
||||
'.1252' => 'windows-1252',
|
||||
'.cp1252' => 'windows-1252',
|
||||
'.cp-1252' => 'windows-1252',
|
||||
'.1253' => 'windows-1253',
|
||||
'.cp1253' => 'windows-1253',
|
||||
'.cp-1253' => 'windows-1253',
|
||||
'.1254' => 'windows-1254',
|
||||
'.cp1254' => 'windows-1254',
|
||||
'.cp-1254' => 'windows-1254',
|
||||
'.1255' => 'windows-1255',
|
||||
'.cp1255' => 'windows-1255',
|
||||
'.cp-1255' => 'windows-1255',
|
||||
'.1256' => 'windows-1256',
|
||||
'.cp1256' => 'windows-1256',
|
||||
'.cp-1256' => 'windows-1256',
|
||||
'.1257' => 'windows-1257',
|
||||
'.cp1257' => 'windows-1257',
|
||||
'.cp-1257' => 'windows-1257',
|
||||
'.1258' => 'windows-1258',
|
||||
'.cp1258' => 'windows-1258',
|
||||
'.cp-1258' => 'windows-1258',
|
||||
|
||||
'.28591' => 'iso-8859-1',
|
||||
'.28592' => 'iso-8859-2',
|
||||
'.28593' => 'iso-8859-3',
|
||||
'.28594' => 'iso-8859-4',
|
||||
'.28595' => 'iso-8859-5',
|
||||
'.28596' => 'iso-8859-6',
|
||||
'.28597' => 'iso-8859-7',
|
||||
'.28598' => 'iso-8859-8',
|
||||
'.28599' => 'iso-8859-9',
|
||||
'.28603' => 'iso-8859-13',
|
||||
'.28605' => 'iso-8859-15',
|
||||
|
||||
'.1125' => 'cp1125',
|
||||
'.20866' => 'koi8-r',
|
||||
'.21866' => 'koi8-u',
|
||||
'.950' => 'big5',
|
||||
'.936' => 'euc-cn',
|
||||
'.20932' => 'euc-js',
|
||||
'.949' => 'euc-kr',
|
||||
);
|
||||
|
||||
/**
|
||||
* @access private
|
||||
*/
|
||||
|
|
@ -40,6 +96,28 @@ class Utils
|
|||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public static function DetectSystemCharset()
|
||||
{
|
||||
$sResult = '';
|
||||
$sLocale = @\setlocale(LC_ALL, '');
|
||||
$sLocaleLower = \strtolower(\trim($sLocale));
|
||||
|
||||
foreach (\MailSo\Base\Utils::$aLocaleMapping as $sKey => $sValue)
|
||||
{
|
||||
if (false !== \strpos($sLocaleLower, $sKey) ||
|
||||
false !== \strpos($sLocaleLower, '.'.$sValue))
|
||||
{
|
||||
$sResult = $sValue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return $sResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sEncoding
|
||||
* @param bool $bAsciAsUtf8 = false
|
||||
|
|
|
|||
|
|
@ -200,8 +200,22 @@ abstract class NetClient
|
|||
$this->rConnect = @\fsockopen($this->sConnectedHost, $this->iConnectedPort,
|
||||
$iErrorNo, $sErrorStr, $this->iConnectTimeOut);
|
||||
|
||||
if (!is_resource($this->rConnect))
|
||||
if (!\is_resource($this->rConnect))
|
||||
{
|
||||
if (!empty($sErrorStr) && !\MailSo\Base\Utils::IsUtf8($sErrorStr))
|
||||
{
|
||||
$sCharset = \MailSo\Base\Utils::DetectSystemCharset();
|
||||
if (!empty($sCharset))
|
||||
{
|
||||
$sErrorStr = \MailSo\Base\Utils::ConvertEncoding(
|
||||
$sErrorStr, $sCharset, \MailSo\Base\Enumerations\Charset::UTF_8);
|
||||
}
|
||||
else
|
||||
{
|
||||
$sErrorStr = @\utf8_encode($sErrorStr);
|
||||
}
|
||||
}
|
||||
|
||||
$this->writeLogException(
|
||||
new Exceptions\SocketCanNotConnectToHostException(
|
||||
$sErrorStr, $iErrorNo,
|
||||
|
|
|
|||
|
|
@ -975,11 +975,11 @@ class Actions
|
|||
'DevEmail' => '',
|
||||
'DevLogin' => '',
|
||||
'DevPassword' => '',
|
||||
'Title' => $oConfig->Get('webmail', 'title', ''),
|
||||
'LoadingDescription' => $oConfig->Get('webmail', 'loading_description', ''),
|
||||
'LoginLogo' => $oConfig->Get('branding', 'login_logo', ''),
|
||||
'LoginDescription' => $oConfig->Get('branding', 'login_desc', ''),
|
||||
'LoginCss' => $oConfig->Get('branding', 'login_css', ''),
|
||||
'Title' => 'RainLoop Webmail',
|
||||
'LoadingDescription' => 'RainLoop',
|
||||
'LoginLogo' => '',
|
||||
'LoginDescription' => '',
|
||||
'LoginCss' => '',
|
||||
'Token' => $oConfig->Get('security', 'csrf_protection', false) ? \RainLoop\Utils::GetCsrfToken() : '',
|
||||
'OpenPGP' => $oConfig->Get('security', 'openpgp', false),
|
||||
'AllowTwoFactorAuth' => (bool) $oConfig->Get('security', 'allow_two_factor_auth', false),
|
||||
|
|
@ -1002,6 +1002,7 @@ class Actions
|
|||
'UseImapThread' => (bool) $oConfig->Get('labs', 'use_imap_thread', false),
|
||||
'UseImapSubscribe' => (bool) $oConfig->Get('labs', 'use_imap_list_subscribe', true),
|
||||
'AllowAppendMessage' => (bool) $oConfig->Get('labs', 'allow_message_append', false),
|
||||
'Capa' => $this->Capa(),
|
||||
'Plugins' => array()
|
||||
);
|
||||
|
||||
|
|
@ -1010,6 +1011,16 @@ class Actions
|
|||
$aResult['AuthAccountHash'] = $sAuthAccountHash;
|
||||
}
|
||||
|
||||
if ($this->GetCapa(\RainLoop\Enumerations\Capa::PREM))
|
||||
{
|
||||
$aResult['Title'] = $oConfig->Get('webmail', 'title', '');
|
||||
$aResult['LoadingDescription'] = $oConfig->Get('webmail', 'loading_description', '');
|
||||
|
||||
$aResult['LoginLogo'] = $oConfig->Get('branding', 'login_logo', '');
|
||||
$aResult['LoginDescription'] = $oConfig->Get('branding', 'login_desc', '');
|
||||
$aResult['LoginCss'] = $oConfig->Get('branding', 'login_css', '');
|
||||
}
|
||||
|
||||
$oSettings = null;
|
||||
if (!$bAdmin)
|
||||
{
|
||||
|
|
@ -2104,12 +2115,15 @@ class Actions
|
|||
|
||||
$this->setConfigFromParams($oConfig, 'DetermineUserLanguage', 'login', 'determine_user_language', 'bool');
|
||||
|
||||
if ($this->GetCapa(\RainLoop\Enumerations\Capa::PREM))
|
||||
{
|
||||
$this->setConfigFromParams($oConfig, 'Title', 'webmail', 'title', 'string');
|
||||
$this->setConfigFromParams($oConfig, 'LoadingDescription', 'webmail', 'loading_description', 'string');
|
||||
|
||||
$this->setConfigFromParams($oConfig, 'LoginLogo', 'branding', 'login_logo', 'string');
|
||||
$this->setConfigFromParams($oConfig, 'LoginDescription', 'branding', 'login_desc', 'string');
|
||||
$this->setConfigFromParams($oConfig, 'LoginCss', 'branding', 'login_css', 'string');
|
||||
}
|
||||
|
||||
$this->setConfigFromParams($oConfig, 'TokenProtection', 'security', 'csrf_protection', 'bool');
|
||||
$this->setConfigFromParams($oConfig, 'OpenPGP', 'security', 'openpgp', 'bool');
|
||||
|
|
@ -5944,6 +5958,26 @@ class Actions
|
|||
return $this->DefaultResponse(__FUNCTION__, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function Capa()
|
||||
{
|
||||
return array(
|
||||
\RainLoop\Enumerations\Capa::PREM
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sName
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function GetCapa($sName)
|
||||
{
|
||||
return \in_array($sName, $this->Capa());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sKey
|
||||
* @param bool $bForce = false
|
||||
|
|
@ -6882,16 +6916,10 @@ class Actions
|
|||
|
||||
$sPlain = '';
|
||||
$sHtml = \trim($mResponse->Html());
|
||||
$bRtl = false;
|
||||
|
||||
if (0 === \strlen($sHtml))
|
||||
{
|
||||
$sPlain = \trim($mResponse->Plain());
|
||||
$bRtl = \MailSo\Base\Utils::IsRTL($sPlain);
|
||||
}
|
||||
else
|
||||
{
|
||||
$bRtl = \MailSo\Base\Utils::IsRTL($sHtml);
|
||||
}
|
||||
|
||||
$mResult['DraftInfo'] = $mResponse->DraftInfo();
|
||||
|
|
@ -6903,7 +6931,7 @@ class Actions
|
|||
|
||||
$mResult['PlainRaw'] = $sPlain;
|
||||
$mResult['Plain'] = 0 === \strlen($sPlain) ? '' : \MailSo\Base\HtmlUtils::ConvertPlainToHtml($sPlain);
|
||||
$mResult['Rtl'] = $bRtl;
|
||||
$mResult['Rtl'] = \MailSo\Base\Utils::IsRTL($sPlain);
|
||||
|
||||
$mResult['TextHash'] = \md5($mResult['Html'].$mResult['Plain'].$mResult['PlainRaw']);
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace RainLoop\Enumerations;
|
||||
|
||||
class Capa
|
||||
{
|
||||
const PREM = 'PREM';
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
<div class="modal-body">
|
||||
<form class="form-horizontal domain-form" action="#/" onsubmit="return false;">
|
||||
<div class="row" data-bind="visible: !edit()">
|
||||
<div class="span8">
|
||||
<div class="span10">
|
||||
Name <span style="color: #aaa">(wildcard supported)</span>
|
||||
<br />
|
||||
<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
|
|
@ -17,24 +17,29 @@
|
|||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="span4" data-bind="css: { 'testing-done': testingDone, 'testing-error': testingImapError }">
|
||||
<div class="span5" data-bind="css: { 'testing-done': testingDone, 'testing-error': testingImapError }">
|
||||
<div class="legend imap-header">
|
||||
<span data-placement="top" data-bind="tooltip3: testingImapErrorDesc">
|
||||
<span data-placement="bottom" data-bind="tooltip3: testingImapErrorDesc">
|
||||
IMAP
|
||||
</span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
Server
|
||||
<br />
|
||||
<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
<input type="text" class="span3" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="value: imapServer, valueUpdate: 'afterkeydown', hasfocus: imapServerFocus" />
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
<div class="span1">
|
||||
Port
|
||||
<br />
|
||||
<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
<input type="text" class="span1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="value: imapPort, valueUpdate: 'afterkeydown'" />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
Secure
|
||||
<br />
|
||||
<select class="span2" data-bind="value: imapSecure">
|
||||
|
|
@ -42,7 +47,8 @@
|
|||
<option value="1">SSL/TLS</option>
|
||||
<option value="2">STARTTLS</option>
|
||||
</select>
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<label data-bind="click: function () { imapShortLogin(!imapShortLogin()); }">
|
||||
<i data-bind="css: imapShortLogin() ? 'icon-checkbox-checked' : 'icon-checkbox-unchecked'"></i>
|
||||
|
|
@ -50,24 +56,29 @@
|
|||
Use short login form
|
||||
</label>
|
||||
</div>
|
||||
<div class="span4" data-bind="css: { 'testing-done': testingDone, 'testing-error': testingSmtpError }">
|
||||
<div class="span5" data-bind="css: { 'testing-done': testingDone, 'testing-error': testingSmtpError }">
|
||||
<div class="legend smtp-header">
|
||||
<span data-placement="top" data-bind="tooltip3: testingSmtpErrorDesc">
|
||||
<span data-placement="bottom" data-bind="tooltip3: testingSmtpErrorDesc">
|
||||
SMTP
|
||||
</span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
Server
|
||||
<br />
|
||||
<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
<input type="text" class="span3" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="value: smtpServer, valueUpdate: 'afterkeydown', hasfocus: smtpServerFocus" />
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
<div class="span1">
|
||||
Port
|
||||
<br />
|
||||
<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
<input type="text" class="span1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="value: smtpPort, valueUpdate: 'afterkeydown'" />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
Secure
|
||||
<br />
|
||||
<select class="span2" data-bind="value: smtpSecure">
|
||||
|
|
@ -75,7 +86,8 @@
|
|||
<option value="1">SSL/TLS</option>
|
||||
<option value="2">STARTTLS</option>
|
||||
</select>
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<label data-bind="click: function () { smtpShortLogin(!smtpShortLogin()); }">
|
||||
<i data-bind="css: smtpShortLogin() ? 'icon-checkbox-checked' : 'icon-checkbox-unchecked'"></i>
|
||||
|
|
@ -88,7 +100,7 @@
|
|||
Use authentication
|
||||
</label>
|
||||
</div>
|
||||
<div class="span8">
|
||||
<div class="span10">
|
||||
<div class="legend white-list-header">
|
||||
White List
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9065,7 +9065,7 @@ html.rl-message-fullscreen .messageView .b-content .buttonFull {
|
|||
filter: alpha(opacity=100);
|
||||
}
|
||||
.b-domain-content.modal {
|
||||
width: 645px;
|
||||
width: 810px;
|
||||
}
|
||||
.b-domain-content .modal-header {
|
||||
background-color: #fff;
|
||||
|
|
@ -9073,15 +9073,15 @@ html.rl-message-fullscreen .messageView .b-content .buttonFull {
|
|||
.b-domain-content .modal-body {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 1300px;
|
||||
height: 390px;
|
||||
width: 1600px;
|
||||
height: 370px;
|
||||
left: 0;
|
||||
}
|
||||
.b-domain-content.domain-edit .modal-body {
|
||||
height: 350px;
|
||||
height: 320px;
|
||||
}
|
||||
.b-domain-content.domain-white-list-page .modal-body {
|
||||
left: -640px;
|
||||
left: -800px;
|
||||
}
|
||||
.b-domain-content .error-desc {
|
||||
color: red;
|
||||
|
|
|
|||
2
rainloop/v/0.0.0/static/css/app.min.css
vendored
2
rainloop/v/0.0.0/static/css/app.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -379,6 +379,13 @@ Enums.StateType = {
|
|||
'Admin': 1
|
||||
};
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
Enums.Capa = {
|
||||
'Prem': 'PREM'
|
||||
};
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
|
|
@ -8169,6 +8176,16 @@ AbstractApp.prototype.pub = function (sName, aArgs)
|
|||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sName
|
||||
* @return {boolean}
|
||||
*/
|
||||
AbstractApp.prototype.capa = function (sName)
|
||||
{
|
||||
var mCapa = this.settingsGet('Capa');
|
||||
return Utils.isArray(mCapa) && Utils.isNormal(sName) && -1 < Utils.inArray(sName, mCapa);
|
||||
};
|
||||
|
||||
AbstractApp.prototype.bootstart = function ()
|
||||
{
|
||||
var self = this;
|
||||
|
|
@ -8456,6 +8473,11 @@ AdminApp.prototype.bootstart = function ()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!RL.capa(Enums.Capa.Prem))
|
||||
{
|
||||
Utils.removeSettingsViewModel(AdminBranding);
|
||||
}
|
||||
|
||||
if (!!RL.settingsGet('Auth'))
|
||||
{
|
||||
// TODO
|
||||
|
|
|
|||
8
rainloop/v/0.0.0/static/js/admin.min.js
vendored
8
rainloop/v/0.0.0/static/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -383,6 +383,13 @@ Enums.StateType = {
|
|||
'Admin': 1
|
||||
};
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
Enums.Capa = {
|
||||
'Prem': 'PREM'
|
||||
};
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
|
|
@ -18756,6 +18763,16 @@ AbstractApp.prototype.pub = function (sName, aArgs)
|
|||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sName
|
||||
* @return {boolean}
|
||||
*/
|
||||
AbstractApp.prototype.capa = function (sName)
|
||||
{
|
||||
var mCapa = this.settingsGet('Capa');
|
||||
return Utils.isArray(mCapa) && Utils.isNormal(sName) && -1 < Utils.inArray(sName, mCapa);
|
||||
};
|
||||
|
||||
AbstractApp.prototype.bootstart = function ()
|
||||
{
|
||||
var self = this;
|
||||
|
|
|
|||
12
rainloop/v/0.0.0/static/js/app.min.js
vendored
12
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue