Update dependencies

This commit is contained in:
RainLoop Team 2019-10-17 01:43:04 +03:00
parent 1b2306c7b0
commit ba8bf15b4c
7 changed files with 743 additions and 680 deletions

View file

@ -1,4 +1,4 @@
last 3 version
> 1%
ie >= 9
ie >= 11
firefox esr

View file

@ -9,7 +9,6 @@ import {
$win,
$html,
$doc,
startMicrotime,
leftPanelDisabled,
leftPanelType,
sUserAgent,
@ -17,16 +16,7 @@ import {
bAnimationSupported
} from 'Common/Globals';
import {
noop,
isNormal,
pString,
inArray,
microtime,
timestamp,
detectDropdownVisibility,
windowResizeCallback
} from 'Common/Utils';
import { isNormal, pString, detectDropdownVisibility, windowResizeCallback } from 'Common/Utils';
import { KeyState, Magics } from 'Common/Enums';
import { root, rootAdmin, rootUser, populateAuthSuffix } from 'Common/Links';
@ -45,7 +35,7 @@ class AbstractApp extends AbstractBoot {
/**
* @param {RemoteStorage|AdminRemoteStorage} Remote
*/
constructor(Remote) {
constructor() {
super();
this.googlePreviewSupportedCache = null;

View file

@ -47,27 +47,26 @@
],
"readmeFilename": "README.md",
"devDependencies": {
"@babel/core": "7.5.4",
"@babel/plugin-proposal-class-properties": "7.5.0",
"@babel/plugin-proposal-decorators": "7.4.4",
"@babel/plugin-transform-runtime": "7.5.0",
"@babel/preset-env": "7.5.4",
"@babel/runtime": "7.5.4",
"@babel/runtime-corejs3": "7.5.4",
"autolinker": "3.1.0",
"babel-eslint": "10.0.2",
"@babel/core": "7.6.4",
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-proposal-decorators": "7.6.0",
"@babel/plugin-transform-runtime": "7.6.2",
"@babel/preset-env": "7.6.3",
"@babel/runtime-corejs3": "7.6.3",
"autolinker": "3.11.1",
"babel-eslint": "10.0.3",
"babel-loader": "8.0.6",
"classnames": "2.2.6",
"copy-webpack-plugin": "5.0.3",
"core-js": "3.1.4",
"css-loader": "3.0.0",
"core-js": "3.3.2",
"copy-webpack-plugin": "5.0.4",
"css-loader": "3.2.0",
"element-dataset": "2.2.6",
"emailjs-addressparser": "2.0.2",
"eslint": "6.0.1",
"eslint-config-prettier": "6.0.0",
"eslint-plugin-prettier": "3.1.0",
"eslint": "6.5.1",
"eslint-config-prettier": "6.4.0",
"eslint-plugin-prettier": "3.1.1",
"gulp": "4.0.2",
"gulp-autoprefixer": "6.1.0",
"gulp-autoprefixer": "7.0.1",
"gulp-cached": "1.1.1",
"gulp-chmod": "3.0.0",
"gulp-clean-css": "4.2.0",
@ -76,29 +75,29 @@
"gulp-eslint": "6.0.0",
"gulp-expect-file": "1.0.1",
"gulp-filter": "6.0.0",
"gulp-header": "2.0.7",
"gulp-if": "2.0.2",
"gulp-header": "2.0.9",
"gulp-if": "3.0.0",
"gulp-less": "4.0.1",
"gulp-livereload": "4.0.1",
"gulp-livereload": "4.0.2",
"gulp-plumber": "1.2.1",
"gulp-rename": "1.4.0",
"gulp-replace": "1.0.0",
"gulp-rimraf": "0.2.2",
"gulp-rimraf": "1.0.0",
"gulp-size": "3.0.0",
"gulp-sourcemaps": "2.6.5",
"gulp-stripbom": "1.0.4",
"gulp-through": "0.4.0",
"gulp-uglify": "3.0.2",
"gulp-util": "3.0.8",
"gulp-zip": "5.0.0",
"gulp-zip": "5.0.1",
"ifvisible.js": "1.0.6",
"intersection-observer": "0.7.0",
"jquery": "3.4.1",
"jquery-backstretch": "2.1.17",
"jquery-backstretch": "2.1.18",
"jquery-migrate": "3.1.0",
"jquery-mousewheel": "3.1.13",
"jquery-scrollstop": "1.2.0",
"js-cookie": "2.2.0",
"js-cookie": "2.2.1",
"json-loader": "0.5.7",
"json3": "3.3.3",
"knockout": "3.4.2",
@ -113,12 +112,12 @@
"pikaday": "1.8.0",
"prettier": "1.18.2",
"raf": "3.4.1",
"raw-loader": "3.0.0",
"rimraf": "2.6.3",
"raw-loader": "3.1.0",
"rimraf": "3.0.0",
"simplestatemanager": "4.1.1",
"style-loader": "0.23.1",
"style-loader": "1.0.0",
"underscore": "1.9.1",
"webpack": "4.35.3",
"webpack-cli": "3.3.5"
"webpack": "4.41.2",
"webpack-cli": "3.3.9"
}
}

View file

@ -341,22 +341,6 @@ class Actions
return $mResult;
}
/**
* @return void
*/
public function BootStart()
{
if (defined('APP_INSTALLED_START') && defined('APP_INSTALLED_VERSION') &&
APP_INSTALLED_START && !APP_INSTALLED_VERSION)
{
try
{
$this->KeenIO('Install');
}
catch (\Exception $oException) { unset($oException); }
}
}
/**
* @return void
*/
@ -9301,80 +9285,6 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
return \RainLoop\Utils::ClearHtmlOutput($sHtml);
}
/**
* @staticvar bool $bOnce
* @param string $sName
* @param array $aData = array()
*
* @return bool
*/
public function KeenIO($sName, $aData = array())
{
static $bOnce = null;
if (false === $bOnce)
{
return false;
}
if (APP_VERSION === APP_DEV_VERSION ||
\in_array(APP_SITE, \explode(' ', \base64_decode('bG9jYWxob3N0IHJhaW5sb29wLmRlIHJhaW5sb29wLm5ldCBkZW1vLnJhaW5sb29wLm5ldCBkZW1vLnJhaW5sb29wLmRl'))))
{
return true;
}
if (null === $bOnce && (!\MailSo\Base\Utils::FunctionExistsAndEnabled('curl_init') ||
!\MailSo\Base\Utils::FunctionExistsAndEnabled('json_encode')))
{
$bOnce = false;
return false;
}
$aOptions = array(
CURLOPT_URL => \base64_decode('aHR0cHM6Ly9hcGkua2Vlbi5pby8zLjAvcHJvamVjdHMvNTE2NmRmOGUzODQzMzE3Y2QzMDAwMDA2L2V2ZW50cy8=').$sName,
CURLOPT_HEADER => false,
CURLOPT_FAILONERROR => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => \json_encode(\array_merge($aData, array(
'version' => APP_VERSION,
'uid' => \md5(APP_SITE.APP_SALT),
'site' => APP_SITE,
'date' => array(
'month' => \gmdate('m.Y'),
'day' => \gmdate('d.m.Y')
)
))),
CURLOPT_TIMEOUT => 10
);
$sProxy = $this->Config()->Get('labs', 'curl_proxy', '');
if (0 < \strlen($sProxy))
{
$aOptions[CURLOPT_PROXY] = $sProxy;
$sProxyAuth = $this->Config()->Get('labs', 'curl_proxy_auth', '');
if (0 < \strlen($sProxyAuth))
{
$aOptions[CURLOPT_PROXYUSERPWD] = $sProxyAuth;
}
}
$oCurl = \curl_init();
\curl_setopt_array($oCurl, $aOptions);
$mResult = \curl_exec($oCurl);
if (\is_resource($oCurl))
{
\curl_close($oCurl);
}
return !!$mResult;
}
/**
* @param string $sActionName
* @param mixed $mResult = false

View file

@ -101,8 +101,6 @@ class Service
return $this;
}
$this->oActions->BootStart();
$sResult = '';
$bCached = false;

View file

@ -32,7 +32,8 @@ const babelLoaderOptions = function() {
[
'@babel/plugin-transform-runtime',
{
corejs: 3
corejs: 3,
useESModules: true
}
],
[

1257
yarn.lock

File diff suppressed because it is too large Load diff