From 72bf212f67217474694b766331bb83f2d6c34562 Mon Sep 17 00:00:00 2001 From: RainLoop Team Date: Fri, 20 May 2016 03:04:15 +0300 Subject: [PATCH] Improve scripts load system --- dev/App/Abstract.jsx | 2 +- dev/App/User.jsx | 15 +- dev/Common/Booter.jsx | 228 ++++++++---- dev/Common/Loader.jsx | 25 ++ dev/Common/Utils.js | 8 +- dev/Html/Layout.html | 24 ++ dev/Storage/RainLoop.jsx | 2 +- dev/Storage/Settings.jsx | 2 +- dev/Styles/Layout.less | 10 +- dev/Styles/_End.less | 4 - dev/boot.jsx | 25 +- dev/bootstrap.jsx | 11 +- gulpfile.js | 3 +- package.json | 3 +- phpunit.xml | 8 + .../0.0.0/app/libraries/RainLoop/Actions.php | 63 +++- .../0.0.0/app/libraries/RainLoop/Service.php | 55 +-- .../app/libraries/RainLoop/ServiceActions.php | 5 +- .../v/0.0.0/app/libraries/RainLoop/Utils.php | 5 +- rainloop/v/0.0.0/app/templates/Index.html | 69 +--- .../0.0.0/app/templates/Themes/template.less | 30 ++ .../templates/Views/User/SystemDropDown.html | 5 +- tests/_config.js.dist | 6 - tests/bootstrap.php | 1 + tests/login.js | 70 ---- vendors/es6-promise-polyfill/.gitignore | 2 + vendors/es6-promise-polyfill/.npmignore | 3 + vendors/es6-promise-polyfill/.travis.yml | 6 + vendors/es6-promise-polyfill/CHANGELOG.md | 18 + vendors/{rl => es6-promise-polyfill}/LICENSE | 6 +- vendors/es6-promise-polyfill/README.md | 88 +++++ vendors/es6-promise-polyfill/bower.json | 11 + vendors/es6-promise-polyfill/package.json | 27 ++ vendors/es6-promise-polyfill/promise.js | 346 ++++++++++++++++++ vendors/es6-promise-polyfill/promise.min.js | 6 + .../es6-promise-polyfill/test/test-adapter.js | 22 ++ vendors/rl/rl-1.5.min.js | 2 - vendors/rl/rl.js | 105 ------ webpack.config.js | 6 +- 39 files changed, 916 insertions(+), 411 deletions(-) create mode 100644 dev/Common/Loader.jsx create mode 100644 dev/Html/Layout.html create mode 100644 phpunit.xml delete mode 100644 tests/_config.js.dist create mode 100644 tests/bootstrap.php delete mode 100644 tests/login.js create mode 100644 vendors/es6-promise-polyfill/.gitignore create mode 100644 vendors/es6-promise-polyfill/.npmignore create mode 100644 vendors/es6-promise-polyfill/.travis.yml create mode 100644 vendors/es6-promise-polyfill/CHANGELOG.md rename vendors/{rl => es6-promise-polyfill}/LICENSE (89%) create mode 100644 vendors/es6-promise-polyfill/README.md create mode 100644 vendors/es6-promise-polyfill/bower.json create mode 100644 vendors/es6-promise-polyfill/package.json create mode 100644 vendors/es6-promise-polyfill/promise.js create mode 100644 vendors/es6-promise-polyfill/promise.min.js create mode 100644 vendors/es6-promise-polyfill/test/test-adapter.js delete mode 100644 vendors/rl/rl-1.5.min.js delete mode 100644 vendors/rl/rl.js diff --git a/dev/App/Abstract.jsx b/dev/App/Abstract.jsx index 4fa97eebc..dab31b074 100644 --- a/dev/App/Abstract.jsx +++ b/dev/App/Abstract.jsx @@ -23,7 +23,7 @@ class AbstractApp extends AbstractBoot { super(); - this.iframe = $('