This commit is contained in:
RainLoop Team 2016-12-31 20:03:41 +03:00
parent 086cf7cadc
commit be26cd248c
35 changed files with 825 additions and 849 deletions

View file

@ -1,25 +0,0 @@
[ignore]
.*/node_modules/.*
.*/vendors/.*
.*/rainloop/.*
.*/plugins/.*
.*/build/.*
.*/asserts/.*
[include]
[libs]
./dev/
[options]
strip_root=true
module.system=haste
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
esproposal.decorators=ignore
experimental.strict_type_args=true
unsafe.enable_getters_and_setters=true

View file

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 832 B

After

Width:  |  Height:  |  Size: 832 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 109 B

After

Width:  |  Height:  |  Size: 109 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 832 B

After

Width:  |  Height:  |  Size: 832 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 869 B

After

Width:  |  Height:  |  Size: 869 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 847 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 356 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 110 B

After

Width:  |  Height:  |  Size: 110 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 869 B

After

Width:  |  Height:  |  Size: 869 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 869 B

After

Width:  |  Height:  |  Size: 869 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 869 B

After

Width:  |  Height:  |  Size: 869 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 832 B

After

Width:  |  Height:  |  Size: 832 B

Before After
Before After

View file

@ -1,4 +1,4 @@
/* @flow */
import bootstrap from 'bootstrap'; import bootstrap from 'bootstrap';
import App from 'App/Admin'; import App from 'App/Admin';

View file

@ -1,4 +1,4 @@
/* @flow */
import bootstrap from 'bootstrap'; import bootstrap from 'bootstrap';
import App from 'App/User'; import App from 'App/User';

2
dev/bootstrap.js vendored
View file

@ -1,4 +1,4 @@
/* @flow */
import window from 'window'; import window from 'window';
import {killCtrlACtrlS, detectDropdownVisibility, createCommandLegacy, domReady} from 'Common/Utils'; import {killCtrlACtrlS, detectDropdownVisibility, createCommandLegacy, domReady} from 'Common/Utils';
import {$win, $html, data as GlobalsData, bMobileDevice} from 'Common/Globals'; import {$win, $html, data as GlobalsData, bMobileDevice} from 'Common/Globals';

View file

@ -167,8 +167,8 @@ cfg.paths.staticMinJS = 'rainloop/v/' + cfg.devVersion + '/static/js/min/';
cfg.paths.staticCSS = 'rainloop/v/' + cfg.devVersion + '/static/css/'; cfg.paths.staticCSS = 'rainloop/v/' + cfg.devVersion + '/static/css/';
cfg.paths.momentLocales = 'rainloop/v/' + cfg.devVersion + '/app/localization/moment/'; cfg.paths.momentLocales = 'rainloop/v/' + cfg.devVersion + '/app/localization/moment/';
cfg.paths.asserts = { cfg.paths.assets = {
src: 'asserts/**/*.*' src: 'assets/**/*.*'
}; };
cfg.paths.less = { cfg.paths.less = {
@ -269,12 +269,12 @@ cfg.paths.js = {
// assers // assers
gulp.task('asserts:clean', function() { gulp.task('assets:clean', function() {
return cleanDir(cfg.paths.static); return cleanDir(cfg.paths.static);
}); });
gulp.task('asserts', function() { gulp.task('assets', function() {
return gulp.src(cfg.paths.asserts.src) return gulp.src(cfg.paths.assets.src)
.pipe(gulp.dest(cfg.paths.static)); .pipe(gulp.dest(cfg.paths.static));
}); });
@ -284,7 +284,7 @@ gulp.task('css:clean', function() {
return cleanDir(cfg.paths.staticCSS + '/*.css'); return cleanDir(cfg.paths.staticCSS + '/*.css');
}); });
gulp.task('css:main', ['asserts'], function() { gulp.task('css:main', ['assets'], function() {
var autoprefixer = require('gulp-autoprefixer'), var autoprefixer = require('gulp-autoprefixer'),
less = require('gulp-less'), less = require('gulp-less'),
lessFilter = filter('**/*.less', {restore: true}), lessFilter = filter('**/*.less', {restore: true}),
@ -614,7 +614,7 @@ gulp.task('css', ['css:min']);
gulp.task('vendors', ['moment', 'ckeditor', 'fontastic', 'lightgallery']); gulp.task('vendors', ['moment', 'ckeditor', 'fontastic', 'lightgallery']);
gulp.task('clean', ['js:clean', 'css:clean', 'asserts:clean']); gulp.task('clean', ['js:clean', 'css:clean', 'assets:clean']);
gulp.task('rainloop:start', ['rainloop:copy', 'rainloop:setup']); gulp.task('rainloop:start', ['rainloop:copy', 'rainloop:setup']);

View file

@ -52,7 +52,7 @@
"autolinker": "1.4.0", "autolinker": "1.4.0",
"babel-core": "6.20.0", "babel-core": "6.20.0",
"babel-eslint": "7.1.1", "babel-eslint": "7.1.1",
"babel-loader": "6.2.9", "babel-loader": "6.2.10",
"babel-plugin-transform-decorators-legacy": "1.3.4", "babel-plugin-transform-decorators-legacy": "1.3.4",
"babel-plugin-transform-runtime": "6.15.0", "babel-plugin-transform-runtime": "6.15.0",
"babel-preset-es2015": "6.18.0", "babel-preset-es2015": "6.18.0",

View file

@ -2137,12 +2137,13 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
* @param string $sSignMeToken = '' * @param string $sSignMeToken = ''
* @param string $sAdditionalCode = '' * @param string $sAdditionalCode = ''
* @param string $bAdditionalCodeSignMe = false * @param string $bAdditionalCodeSignMe = false
* @param string $bSkipTwoFactorAuth = false
* *
* @return \RainLoop\Model\Account * @return \RainLoop\Model\Account
* @throws \RainLoop\Exceptions\ClientException * @throws \RainLoop\Exceptions\ClientException
*/ */
public function LoginProcess(&$sEmail, &$sPassword, $sSignMeToken = '', public function LoginProcess(&$sEmail, &$sPassword, $sSignMeToken = '',
$sAdditionalCode = '', $bAdditionalCodeSignMe = false) $sAdditionalCode = '', $bAdditionalCodeSignMe = false, $bSkipTwoFactorAuth = false)
{ {
$sInputEmail = $sEmail; $sInputEmail = $sEmail;
@ -2265,8 +2266,8 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
throw $oException; throw $oException;
} }
// Two factor auth // 2FA
if ($this->TwoFactorAuthProvider()->IsActive()) if (!$bSkipTwoFactorAuth && $this->TwoFactorAuthProvider()->IsActive())
{ {
$aData = $this->getTwoFactorInfo($oAccount); $aData = $this->getTwoFactorInfo($oAccount);
if ($aData && isset($aData['IsSet'], $aData['Enable']) && !empty($aData['Secret']) && $aData['IsSet'] && $aData['Enable']) if ($aData && isset($aData['IsSet'], $aData['Enable']) && !empty($aData['Secret']) && $aData['IsSet'] && $aData['Enable'])
@ -2852,7 +2853,7 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::AccountDoesNotExist); throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::AccountDoesNotExist);
} }
$oNewAccount = $this->LoginProcess($sEmail, $sPassword); $oNewAccount = $this->LoginProcess($sEmail, $sPassword, '', '', false, true);
$oNewAccount->SetParentEmail($sParentEmail); $oNewAccount->SetParentEmail($sParentEmail);
$aAccounts[$oNewAccount->Email()] = $oNewAccount->GetAuthToken(); $aAccounts[$oNewAccount->Email()] = $oNewAccount->GetAuthToken();

File diff suppressed because it is too large Load diff

View file

@ -401,9 +401,9 @@ babel-helpers@^6.16.0:
babel-runtime "^6.0.0" babel-runtime "^6.0.0"
babel-template "^6.16.0" babel-template "^6.16.0"
babel-loader@6.2.9: babel-loader@6.2.10:
version "6.2.9" version "6.2.10"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-6.2.9.tgz#2bce6a1c29b47afa90b937ba1fb1f87084d61c61" resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-6.2.10.tgz#adefc2b242320cd5d15e65b31cea0e8b1b02d4b0"
dependencies: dependencies:
find-cache-dir "^0.1.1" find-cache-dir "^0.1.1"
loader-utils "^0.2.11" loader-utils "^0.2.11"