Permalink
Browse files

Refactoring javascript

  • Loading branch information...
REBELinBLUE committed Nov 24, 2017
1 parent 2ab131f commit 06f761ffaa7ffc23a23003b3858556ce6c7a68ef
Showing with 3,919 additions and 73,075 deletions.
  1. +0 −2 .csslintrc
  2. +3 −3 .editorconfig
  3. +0 −1 .eslintignore
  4. +0 −277 .eslintrc.yml
  5. +0 −1 .gitignore
  6. +1 −0 .nvmrc
  7. +1 −1 .travis.yml
  8. +1 −8 Makefile
  9. +12 −0 app/Http/Controllers/Auth/ResetPasswordController.php
  10. +5 −2 app/Http/Controllers/ProfileController.php
  11. +1 −1 app/Http/Requests/StoreProfileRequest.php
  12. +1 −1 app/Http/Requests/StoreUserRequest.php
  13. +4 −3 app/Jobs/DeployProject/ScriptBuilder.php
  14. +0 −29 bower.json
  15. +4 −2 composer.json
  16. +397 −266 composer.lock
  17. +2 −1 config/app.php
  18. +2 −1 config/js-localization.php
  19. +0 −114 gulpfile.js
  20. +599 −0 package-lock.json
  21. +0 −7 package.json
  22. +0 −6 public/.gitignore
  23. +0 −325 public/build/css/app-682cb01074.css
  24. +0 −1 public/build/css/app.css.map
  25. +0 −18,382 public/build/css/vendor-fdb3b1ac71.css
  26. +0 −1 public/build/css/vendor.css.map
  27. BIN public/build/fonts/ionicons.eot
  28. +0 −2,230 public/build/fonts/ionicons.svg
  29. BIN public/build/fonts/ionicons.ttf
  30. BIN public/build/fonts/ionicons.woff
  31. +0 −4,263 public/build/js/app-737a2f2bb3.js
  32. +0 −1 public/build/js/app.js.map
  33. +0 −552 public/build/js/ie-d045877830.js
  34. +0 −1 public/build/js/ie.js.map
  35. +0 −38,470 public/build/js/vendor-0366535213.js
  36. +0 −1 public/build/js/vendor.js.map
  37. +0 −7 public/build/rev-manifest.json
  38. +1 −0 public/css/app.css
  39. +32 −0 public/css/vendor.css
  40. BIN public/{build → }/fonts/FontAwesome.otf
  41. BIN public/{build → }/fonts/fontawesome-webfont.eot
  42. 0 public/{build → }/fonts/fontawesome-webfont.svg
  43. BIN public/{build → }/fonts/fontawesome-webfont.ttf
  44. BIN public/{build → }/fonts/fontawesome-webfont.woff
  45. BIN public/{build → }/fonts/fontawesome-webfont.woff2
  46. BIN public/{build → }/fonts/glyphicons-halflings-regular.eot
  47. 0 public/{build → }/fonts/glyphicons-halflings-regular.svg
  48. BIN public/{build → }/fonts/glyphicons-halflings-regular.ttf
  49. BIN public/{build → }/fonts/glyphicons-halflings-regular.woff
  50. BIN public/{build → }/fonts/glyphicons-halflings-regular.woff2
  51. BIN public/fonts/ionicons.eot
  52. +2,630 −0 public/fonts/ionicons.svg
  53. BIN public/fonts/ionicons.ttf
  54. BIN public/fonts/ionicons.woff
  55. BIN public/fonts/ionicons.woff2
  56. +1 −0 public/js/app.js
  57. +1 −0 public/js/ie.js
  58. +1 −0 public/js/manifest.js
  59. +1 −0 public/js/vendor.js
  60. +24 −0 public/mix-manifest.json
  61. +3 −0 resources/assets/README.md
  62. +0 −253 resources/assets/css/app.css
  63. +0 −69 resources/assets/css/console.css
  64. +0 −1 resources/assets/js/WARNING
  65. +0 −280 resources/assets/js/app.js
  66. +0 −253 resources/assets/js/checkUrls.js
  67. +0 −337 resources/assets/js/commands.js
  68. +0 −266 resources/assets/js/configFiles.js
  69. +0 −238 resources/assets/js/deployment.js
  70. +0 −202 resources/assets/js/groups.js
  71. +0 −253 resources/assets/js/heartbeats.js
  72. +0 −312 resources/assets/js/notifications.js
  73. +0 −135 resources/assets/js/profile.js
  74. +0 −389 resources/assets/js/projects.js
  75. +0 −347 resources/assets/js/servers.js
  76. +0 −221 resources/assets/js/shareFiles.js
  77. +0 −210 resources/assets/js/templates.js
  78. +0 −370 resources/assets/js/uploader.js
  79. +0 −213 resources/assets/js/users.js
  80. +0 −220 resources/assets/js/variables.js
  81. +1 −1 resources/lang/en/checkUrls.php
  82. +1 −0 resources/lang/en/heartbeats.php
  83. +1 −1 resources/lang/ru/checkUrls.php
  84. +1 −1 resources/lang/zh/checkUrls.php
  85. +2 −2 resources/views/_partials/nav.blade.php
  86. +1 −1 resources/views/_partials/sidebar.blade.php
  87. +2 −4 resources/views/admin/groups/listing.blade.php
  88. +2 −2 resources/views/admin/projects/listing.blade.php
  89. +7 −7 resources/views/admin/templates/details.blade.php
  90. +2 −2 resources/views/admin/templates/listing.blade.php
  91. +2 −4 resources/views/admin/users/listing.blade.php
  92. +6 −6 resources/views/basic-layout.blade.php
  93. +1 −1 resources/views/commands/dialog.blade.php
  94. +4 −4 resources/views/commands/listing.blade.php
  95. +6 −0 resources/views/dashboard/index.blade.php
  96. +3 −3 resources/views/deployment/details.blade.php
  97. +8 −8 resources/views/layout.blade.php
  98. +1 −1 resources/views/projects/_partials/check_urls.blade.php
  99. +1 −1 resources/views/projects/_partials/config_files.blade.php
  100. +5 −5 resources/views/projects/_partials/shared_files.blade.php
  101. +17 −15 resources/views/projects/details.blade.php
  102. +4 −4 resources/views/projects/dialogs/check_urls.blade.php
  103. +4 −4 resources/views/projects/dialogs/config_files.blade.php
  104. +1 −1 resources/views/projects/dialogs/heartbeat.blade.php
  105. +1 −1 resources/views/projects/dialogs/reason.blade.php
  106. +1 −1 resources/views/projects/dialogs/redeploy.blade.php
  107. +2 −2 resources/views/projects/dialogs/server.blade.php
  108. +4 −4 resources/views/projects/dialogs/shared_files.blade.php
  109. +6 −0 resources/views/user/profile.blade.php
  110. +2 −2 routes/api.php
  111. +80 −75 socket.js
  112. +1 −1 tests/Integration/Admin/UserControllerTest.php
  113. +5 −5 tests/Integration/Resources/CheckUrlControllerTest.php
  114. +5 −5 tests/Integration/Resources/ConfigFileControllerTest.php
  115. +2 −1 tests/Unit/Jobs/DeployProject/ScriptBuilderTest.php
  116. +0 −3,371 yarn.lock
View

This file was deleted.

Oops, something went wrong.
View
@@ -20,11 +20,11 @@ max_line_length = 120
indent_size = 2
max_line_length = 120
[*.{yml,json}]
[*.{yml,json,eslintrc}]
indent_size = 2
[{composer.json,bower.json}]
indent_size=4
[composer.json]
indent_size = 4
[*.md]
trim_trailing_whitespace = false
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View
@@ -21,7 +21,6 @@ auth.json
# Dependencies
node_modules/
vendor/
bower_components/
tmp/
npm-debug.log
View
1 .nvmrc
@@ -0,0 +1 @@
v8.6.0
View
@@ -15,7 +15,6 @@ cache:
directories:
- $TRAVIS_BUILD_DIR/vendor
- $TRAVIS_BUILD_DIR/node_modules
- $TRAVIS_BUILD_DIR/bower_components
- $HOME/.composer/cache
matrix:
@@ -42,6 +41,7 @@ before_install:
install:
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
- travis_retry npm install
before_script:
- cp -f $TRAVIS_BUILD_DIR/tests/.env.travis $TRAVIS_BUILD_DIR/.env
View
@@ -8,17 +8,10 @@ YELLOW := $(shell tput -Txterm setaf 3)
RESET := $(shell tput -Txterm sgr0)
COMPOSER := $(shell command -v composer 2> /dev/null)
build: ##@development Frontend build
@$(MAKE) install-dev
@-rm -rf public/build
gulp --silent
@rm -rf public/css public/fonts public/js
clean: ##@development Clean cache, logs and other temporary files
rm -rf storage/logs/*.log bootstrap/cache/*.php storage/framework/schedule-* storage/clockwork/*.json
rm -rf storage/framework/cache/* storage/framework/sessions/* storage/framework/views/*.php
rm -rf database/backups/*.gz
-@rm -rf public/css/ public/fonts/ public/js/ # temporary storage of compiled assets
fix: ##@development PHP Coding Standards Fixer
@php vendor/bin/php-cs-fixer --no-interaction fix
@@ -139,7 +132,7 @@ fulltest: ##@shortcuts Runs all tests
# Clean everything (cache, logs, compiled assets, dependencies, etc)
reset: clean
rm -rf vendor/ node_modules/ bower_components/
rm -rf vendor/ node_modules/
rm -rf storage/app/mirrors/* storage/app/tmp/* storage/app/public/* storage/app/*.tar.gz
rm -rf .env.prev _ide_helper_models.php _ide_helper.php .phpstorm.meta.php .php_cs.cache
-rm database/database.sqlite
@@ -26,4 +26,16 @@ public function __construct()
{
$this->middleware('guest');
}
/**
* {@inheritdoc}
*/
protected function rules()
{
return [
'token' => 'required',
'email' => 'required|email',
'password' => 'required|confirmed|min:6|zxcvbn:3,email',
];
}
}
@@ -17,6 +17,7 @@
use REBELinBLUE\Deployer\Http\Requests\StoreSettingsRequest;
use REBELinBLUE\Deployer\Repositories\Contracts\UserRepositoryInterface;
use REBELinBLUE\Deployer\Settings;
use REBELinBLUE\Deployer\View\Presenters\UserPresenter;
/**
* The use profile controller.
@@ -226,16 +227,18 @@ public function upload(Request $request, UrlGenerator $url)
/**
* Reset the user's avatar to gravatar.
*
* @param UserPresenter $presenter
*
* @return array
*/
public function gravatar()
public function gravatar(UserPresenter $presenter)
{
$user = $this->auth->user();
$user->avatar = null;
$user->save();
return [
'image' => $user->avatar_url,
'image' => $presenter->setWrappedObject($user)->avatar_url,
'success' => true,
];
}
Oops, something went wrong.

0 comments on commit 06f761f

Please sign in to comment.