From bcbf4614eaa051ead05e5cdfabd992466d7c45ac Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 31 Dec 2017 11:48:03 -0600 Subject: [PATCH 1/7] Bump dependencies --- composer.lock | 62 +++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/composer.lock b/composer.lock index 40dbb34d0..d7798684f 100644 --- a/composer.lock +++ b/composer.lock @@ -61,16 +61,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.48.0", + "version": "3.48.6", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "f5aef5671cd7f6e3b9ede0a3ff17c131cc05f4d3" + "reference": "53e489f7d13c2f65bb28fde21d96a4f261092dda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/f5aef5671cd7f6e3b9ede0a3ff17c131cc05f4d3", - "reference": "f5aef5671cd7f6e3b9ede0a3ff17c131cc05f4d3", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/53e489f7d13c2f65bb28fde21d96a4f261092dda", + "reference": "53e489f7d13c2f65bb28fde21d96a4f261092dda", "shasum": "" }, "require": { @@ -137,7 +137,7 @@ "s3", "sdk" ], - "time": "2017-12-15T19:49:31+00:00" + "time": "2017-12-29T17:28:50+00:00" }, { "name": "dnoegel/php-xdg-base-dir", @@ -1250,16 +1250,16 @@ }, { "name": "laravel/framework", - "version": "v5.5.25", + "version": "v5.5.28", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "0a5b6112f325c56ae5a6679c08a0a10723153fe0" + "reference": "cfafae1f2043208390a7c984e3070696f4969605" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/0a5b6112f325c56ae5a6679c08a0a10723153fe0", - "reference": "0a5b6112f325c56ae5a6679c08a0a10723153fe0", + "url": "https://api.github.com/repos/laravel/framework/zipball/cfafae1f2043208390a7c984e3070696f4969605", + "reference": "cfafae1f2043208390a7c984e3070696f4969605", "shasum": "" }, "require": { @@ -1380,20 +1380,20 @@ "framework", "laravel" ], - "time": "2017-12-11T14:59:28+00:00" + "time": "2017-12-26T16:24:40+00:00" }, { "name": "laravel/tinker", - "version": "v1.0.2", + "version": "v1.0.3", "source": { "type": "git", "url": "https://github.com/laravel/tinker.git", - "reference": "203978fd67f118902acff95925847e70b72e3daf" + "reference": "852c2abe0b0991555a403f1c0583e64de6acb4a6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/tinker/zipball/203978fd67f118902acff95925847e70b72e3daf", - "reference": "203978fd67f118902acff95925847e70b72e3daf", + "url": "https://api.github.com/repos/laravel/tinker/zipball/852c2abe0b0991555a403f1c0583e64de6acb4a6", + "reference": "852c2abe0b0991555a403f1c0583e64de6acb4a6", "shasum": "" }, "require": { @@ -1402,7 +1402,7 @@ "illuminate/support": "~5.1", "php": ">=5.5.9", "psy/psysh": "0.7.*|0.8.*", - "symfony/var-dumper": "~3.0" + "symfony/var-dumper": "~3.0|~4.0" }, "require-dev": { "phpunit/phpunit": "~4.0|~5.0" @@ -1443,7 +1443,7 @@ "laravel", "psysh" ], - "time": "2017-07-13T13:11:05+00:00" + "time": "2017-12-18T16:25:11+00:00" }, { "name": "league/flysystem", @@ -1919,16 +1919,16 @@ }, { "name": "nikic/php-parser", - "version": "v3.1.2", + "version": "v3.1.3", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "08131e7ff29de6bb9f12275c7d35df71f25f4d89" + "reference": "579f4ce846734a1cf55d6a531d00ca07a43e3cda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/08131e7ff29de6bb9f12275c7d35df71f25f4d89", - "reference": "08131e7ff29de6bb9f12275c7d35df71f25f4d89", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/579f4ce846734a1cf55d6a531d00ca07a43e3cda", + "reference": "579f4ce846734a1cf55d6a531d00ca07a43e3cda", "shasum": "" }, "require": { @@ -1966,7 +1966,7 @@ "parser", "php" ], - "time": "2017-11-04T11:48:34+00:00" + "time": "2017-12-26T14:43:21+00:00" }, { "name": "paragonie/constant_time_encoding", @@ -2435,16 +2435,16 @@ }, { "name": "psy/psysh", - "version": "v0.8.16", + "version": "v0.8.17", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "d4c8eab0683dc056f2ca54ca67f5388527c068b1" + "reference": "5069b70e8c4ea492c2b5939b6eddc78bfe41cfec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/d4c8eab0683dc056f2ca54ca67f5388527c068b1", - "reference": "d4c8eab0683dc056f2ca54ca67f5388527c068b1", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/5069b70e8c4ea492c2b5939b6eddc78bfe41cfec", + "reference": "5069b70e8c4ea492c2b5939b6eddc78bfe41cfec", "shasum": "" }, "require": { @@ -2503,7 +2503,7 @@ "interactive", "shell" ], - "time": "2017-12-10T21:49:27+00:00" + "time": "2017-12-28T16:14:16+00:00" }, { "name": "ramsey/uuid", @@ -5764,16 +5764,16 @@ }, { "name": "sebastian/comparator", - "version": "2.1.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "1174d9018191e93cb9d719edec01257fc05f8158" + "reference": "b11c729f95109b56a0fe9650c6a63a0fcd8c439f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1174d9018191e93cb9d719edec01257fc05f8158", - "reference": "1174d9018191e93cb9d719edec01257fc05f8158", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/b11c729f95109b56a0fe9650c6a63a0fcd8c439f", + "reference": "b11c729f95109b56a0fe9650c6a63a0fcd8c439f", "shasum": "" }, "require": { @@ -5824,7 +5824,7 @@ "compare", "equality" ], - "time": "2017-11-03T07:16:52+00:00" + "time": "2017-12-22T14:50:35+00:00" }, { "name": "sebastian/diff", From c3a69fce7567228f31723efa39385c50b388ac41 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 31 Dec 2017 13:14:30 -0600 Subject: [PATCH 2/7] Show nest/egg IDs in listing, closes #687 --- CHANGELOG.md | 3 +++ .../themes/pterodactyl/admin/nests/index.blade.php | 8 +++++--- .../themes/pterodactyl/admin/nests/view.blade.php | 11 ++++++++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa25d0db9..680508d46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. * `[beta.3]` — Fixes a bug that would cause an error when attempting to create a new user on the Panel. * `[beta.3]` — Fixes error handling of the settings service provider when no migrations have been run. +### Added +* Nest and Egg listings now show the associated ID in order to make API requests easier. + ## v0.7.0-beta.3 (Derelict Dermodactylus) ### Fixed * `[beta.2]` — Fixes a bug that would cause an endless exception message stream in the console when attemping to setup environment settings in certain instances. diff --git a/resources/themes/pterodactyl/admin/nests/index.blade.php b/resources/themes/pterodactyl/admin/nests/index.blade.php index dd47a55d3..9f9c1531c 100644 --- a/resources/themes/pterodactyl/admin/nests/index.blade.php +++ b/resources/themes/pterodactyl/admin/nests/index.blade.php @@ -38,6 +38,7 @@
+ @@ -46,11 +47,12 @@ @foreach($nests as $nest) + - - - + + + @endforeach
ID Name Description Eggs
{{ $nest->id }} {{ $nest->name }} {{ $nest->description }}{{ $nest->eggs_count }}{{ $nest->packs_count }}{{ $nest->servers_count }}{{ $nest->eggs_count }}{{ $nest->packs_count }}{{ $nest->servers_count }}
diff --git a/resources/themes/pterodactyl/admin/nests/view.blade.php b/resources/themes/pterodactyl/admin/nests/view.blade.php index 2f30932fa..fe1e49462 100644 --- a/resources/themes/pterodactyl/admin/nests/view.blade.php +++ b/resources/themes/pterodactyl/admin/nests/view.blade.php @@ -49,6 +49,13 @@
+
+ +
+ +

A unique ID used for identification of this nest internally and through the API.

+
+
@@ -60,7 +67,7 @@
-

A unique identifier that all servers using this option are assigned for identification purposes.

+

A UUID that all servers using this option are assigned for identification purposes.

@@ -76,6 +83,7 @@
+ @@ -83,6 +91,7 @@ @foreach($nest->eggs as $egg) + From 410a0cca9a0feabb3ef2082e7f33c1759a1c79ca Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 31 Dec 2017 13:17:06 -0600 Subject: [PATCH 3/7] Fix 'Copy Script From' setting --- CHANGELOG.md | 2 +- resources/themes/pterodactyl/admin/eggs/scripts.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 680508d46..aace034eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. * `[beta.3]` — Fixes an edge case caused by the Laravel 5.5 upgrade that would try to perform an in_array check aganist a null value. * `[beta.3]` — Fixes a bug that would cause an error when attempting to create a new user on the Panel. * `[beta.3]` — Fixes error handling of the settings service provider when no migrations have been run. - +* `[beta.3]` — Fixes validation error when trying to use 'None' as the 'Copy Script From' option for an egg script. ### Added * Nest and Egg listings now show the associated ID in order to make API requests easier. diff --git a/resources/themes/pterodactyl/admin/eggs/scripts.blade.php b/resources/themes/pterodactyl/admin/eggs/scripts.blade.php index 8452cf260..44252b264 100644 --- a/resources/themes/pterodactyl/admin/eggs/scripts.blade.php +++ b/resources/themes/pterodactyl/admin/eggs/scripts.blade.php @@ -53,7 +53,7 @@
ID Name Description Servers
{{ $egg->id }} {{ $egg->name }} {!! $egg->description !!} {{ $egg->servers->count() }} @if(in_array($file['mime'], $editableMime)) @can('edit-files', $server) - {{ $file['entry'] }} + {{ $file['entry'] }} @else {{ $file['entry'] }} @endcan diff --git a/routes/server.php b/routes/server.php index 5945f4fd6..31a707e15 100644 --- a/routes/server.php +++ b/routes/server.php @@ -52,7 +52,7 @@ Route::group(['prefix' => 'databases'], function () { Route::group(['prefix' => 'files'], function () { Route::get('/', 'Files\FileActionsController@index')->name('server.files.index'); Route::get('/add', 'Files\FileActionsController@create')->name('server.files.add'); - Route::get('/edit/{file}', 'Files\FileActionsController@update')->name('server.files.edit')->where('file', '.*'); + Route::get('/edit/{file}', 'Files\FileActionsController@view')->name('server.files.edit')->where('file', '.*'); Route::get('/download/{file}', 'Files\DownloadController@index')->name('server.files.edit')->where('file', '.*'); Route::post('/directory-list', 'Files\RemoteRequestController@directory')->name('server.files.directory-list');