Skip to content

Commit a23a615

Browse files
committed
merge
2 parents 3a92113 + 07965d0 commit a23a615

File tree

576 files changed

+28824
-8502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

576 files changed

+28824
-8502
lines changed

.dev/vagrant/motd.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ Default panel users:
1313

1414
MySQL is accessible using root/pterodactyl or pterodactyl/pterodactyl
1515

16-
Services for pteroq and mailhog are running
16+
Service for pteroq and mailhog are running
1717
#####################################################

.env.example

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ DB_PASSWORD=secret
1616
CACHE_DRIVER=file
1717
SESSION_DRIVER=database
1818

19+
HASHIDS_SALT=
20+
HASHIDS_LENGTH=8
21+
1922
MAIL_DRIVER=smtp
2023
MAIL_HOST=mailtrap.io
2124
MAIL_PORT=2525
@@ -24,10 +27,6 @@ MAIL_PASSWORD=null
2427
MAIL_ENCRYPTION=null
2528
MAIL_FROM=you@example.com
2629

27-
API_PREFIX=api
28-
API_VERSION=v1
29-
API_DEBUG=false
30-
3130
QUEUE_DRIVER=database
3231
QUEUE_HIGH=high
3332
QUEUE_STANDARD=standard

.env.travis

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
APP_ENV=testing
2+
APP_DEBUG=true
3+
APP_KEY=SomeRandomString3232RandomString
4+
APP_THEME=pterodactyl
5+
APP_TIMEZONE=UTC
6+
APP_URL=http://localhost/
7+
8+
DB_HOST=127.0.0.1
9+
DB_DATABASE=travis
10+
DB_USERNAME=root
11+
DB_PASSWORD=""
12+
13+
CACHE_DRIVER=array
14+
SESSION_DRIVER=array
15+
MAIL_DRIVER=array
16+
QUEUE_DRIVER=sync
17+
18+
HASHIDS_SALT=test123

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ docker-compose.yml
2323
# for image related files
2424
misc
2525
.phpstorm.meta.php
26+
.php_cs.cache

.php_cs

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,48 @@
11
<?php
22

3-
require_once __DIR__ . '/vendor/sllh/php-cs-fixer-styleci-bridge/autoload.php';
3+
$finder = PhpCsFixer\Finder::create()
4+
->in([
5+
'app',
6+
'bootstrap',
7+
'config',
8+
'database',
9+
'resources/lang',
10+
'routes',
11+
'tests',
12+
]);
413

5-
use SLLH\StyleCIBridge\ConfigBridge;
6-
7-
return ConfigBridge::create();
14+
return PhpCsFixer\Config::create()
15+
->setRules([
16+
'@Symfony' => true,
17+
'@PSR1' => true,
18+
'@PSR2' => true,
19+
'align_multiline_comment' => ['comment_type' => 'phpdocs_like'],
20+
'array_syntax' => ['syntax' => 'short'],
21+
'blank_line_before_return' => true,
22+
'blank_line_before_statement' => false,
23+
'combine_consecutive_unsets' => true,
24+
'concat_space' => ['spacing' => 'one'],
25+
'declare_equal_normalize' => ['space' => 'single'],
26+
'heredoc_to_nowdoc' => true,
27+
'linebreak_after_opening_tag' => true,
28+
'method_argument_space' => [
29+
'ensure_fully_multiline' => false,
30+
'keep_multiple_spaces_after_comma' => false,
31+
],
32+
'new_with_braces' => false,
33+
'no_alias_functions' => true,
34+
'no_multiline_whitespace_before_semicolons' => true,
35+
'no_unreachable_default_argument_value' => true,
36+
'no_useless_return' => true,
37+
'not_operator_with_successor_space' => true,
38+
'ordered_imports' => [
39+
'sortAlgorithm' => 'length',
40+
],
41+
'phpdoc_align' => ['tags' => ['param']],
42+
'phpdoc_separation' => false,
43+
'protected_to_private' => false,
44+
'psr0' => ['dir' => 'app'],
45+
'psr4' => true,
46+
'random_api_migration' => true,
47+
'standardize_not_equals' => true,
48+
])->setRiskyAllowed(true)->setFinder($finder);

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ disabled:
44
- concat_without_spaces
55
enabled:
66
- concat_with_spaces
7+
- no_unused_imports

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: php
2+
dist: trusty
3+
php:
4+
- '7.0'
5+
- '7.1'
6+
# - '7.2'
7+
sudo: false
8+
cache:
9+
directories:
10+
- $HOME/.composer/cache
11+
services:
12+
- mysql
13+
before_install:
14+
- mysql -e 'CREATE DATABASE IF NOT EXISTS travis;'
15+
before_script:
16+
- cp .env.travis .env
17+
- composer install --no-interaction --prefer-dist --no-suggest --verbose
18+
- php artisan migrate --seed -v
19+
script:
20+
- vendor/bin/phpunit --coverage-clover coverage.xml
21+
notifications:
22+
email: false
23+
webhooks:
24+
urls:
25+
- https://misc.schrej.net/travistodiscord/pterodev.php
26+
on_success: change
27+
on_failure: always
28+
on_error: always
29+
on_cancel: always
30+
on_start: never
31+
after_success:
32+
- bash <(curl -s https://codecov.io/bash)

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ spatie/laravel-fractal (4.0.0 => 4.0.1)
249249
* New theme applied to Admin CP. Many graphical changes were made, some data was moved around and some display data changed. Too much was changed to feasibly log it all in here. Major breaking changes or notable new features will be logged.
250250
* New server creation page now makes significantly less AJAX calls and is much quicker to respond.
251251
* Server and Node view pages wee modified to split tabs into individual pages to make re-themeing and modifications significantly easier, and reduce MySQL query loads on page.
252-
* `[pre.4]`Services and Pack magement overhauled to be faster, cleaner, and more extensible in the future.
252+
* `[pre.4]`Service and Pack magement overhauled to be faster, cleaner, and more extensible in the future.
253253
* Most of the backend `UnhandledException` display errors now include a clearer error that directs admins to the program's logs.
254254
* Table seeders for services now can be run during upgrades and will attempt to locate and update, or create new if not found in the database.
255255
* Many structural changes to the database and `Pterodactyl\Models` classes that would flood this changelog if they were all included. All required migrations included to handle database changes.

README.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[![Logo Image](https://cdn.pterodactyl.io/logos/Banner%20Logo%20Black@2x.png)](https://pterodactyl.io)
22

3+
[![Build Status](https://travis-ci.org/Pterodactyl/Panel.svg?branch=develop)](https://travis-ci.org/Pterodactyl/Panel) [![StyleCI](https://styleci.io/repos/47508644/shield?branch=develop)](https://styleci.io/repos/47508644) [![codecov](https://codecov.io/gh/Pterodactyl/Panel/branch/develop/graph/badge.svg)](https://codecov.io/gh/Pterodactyl/Panel)
4+
35
## Pterodactyl Panel
46
Pterodactyl Panel is the free, open-source, game agnostic, self-hosted control panel for users, networks, and game service providers. Pterodactyl supports games and servers such as Minecraft (including Spigot, Bungeecord, and Sponge), ARK: Evolution Evolved, CS:GO, Team Fortress 2, Insurgency, Teamspeak 3, Mumble, and many more. Control all of your games from one unified interface.
57

@@ -33,42 +35,44 @@ SOFTWARE.
3335
![](http://static.s3.pterodactyl.io/PhraseApp-parrot.png)
3436
A huge thanks to [PhraseApp](https://phraseapp.com) who provide us the software to help translate this project.
3537

36-
Ace Editor - [license](https://github.com/ajaxorg/ace/blob/master/LICENSE) - [homepage](https://ace.c9.io)
38+
Ace Editor [license](https://github.com/ajaxorg/ace/blob/master/LICENSE) [homepage](https://ace.c9.io)
3739

38-
AdminLTE - [license](https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE) - [homepage](https://almsaeedstudio.com)
40+
AdminLTE [license](https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE) [homepage](https://almsaeedstudio.com)
3941

40-
Animate.css - [license](https://github.com/daneden/animate.css/blob/master/LICENSE) - [homepage](http://daneden.github.io/animate.css/)
42+
Animate.css [license](https://github.com/daneden/animate.css/blob/master/LICENSE) [homepage](http://daneden.github.io/animate.css/)
4143

42-
AnsiUp - [license](https://github.com/drudru/ansi_up/blob/master/Readme.md#license) - [homepage](https://github.com/drudru/ansi_up)
44+
AnsiUp [license](https://github.com/drudru/ansi_up/blob/master/Readme.md#license) [homepage](https://github.com/drudru/ansi_up)
4345

44-
Async.js - [license](https://github.com/caolan/async/blob/master/LICENSE) - [homepage](https://github.com/caolan/async/)
46+
Async.js [license](https://github.com/caolan/async/blob/master/LICENSE) [homepage](https://github.com/caolan/async/)
4547

46-
Bootstrap - [license](https://github.com/twbs/bootstrap/blob/master/LICENSE) - [homepage](http://getbootstrap.com)
48+
Bootstrap [license](https://github.com/twbs/bootstrap/blob/master/LICENSE) [homepage](http://getbootstrap.com)
4749

48-
BootStrap Notify - [license](https://github.com/mouse0270/bootstrap-notify/blob/master/LICENSE) - [homepage](http://bootstrap-notify.remabledesigns.com)
50+
BootStrap Notify [license](https://github.com/mouse0270/bootstrap-notify/blob/master/LICENSE) [homepage](http://bootstrap-notify.remabledesigns.com)
4951

50-
Chart.js - [license](https://github.com/chartjs/Chart.js/blob/master/LICENSE.md) - [homepage](http://www.chartjs.org)
52+
Chart.js [license](https://github.com/chartjs/Chart.js/blob/master/LICENSE.md) [homepage](http://www.chartjs.org)
5153

52-
FontAwesome - [license](http://fontawesome.io/license/) - [homepage](http://fontawesome.io)
54+
FontAwesome [license](http://fontawesome.io/license/) [homepage](http://fontawesome.io)
5355

54-
FontAwesome Animations - [license](https://github.com/l-lin/font-awesome-animation#license) - [homepage](https://github.com/l-lin/font-awesome-animation)
56+
FontAwesome Animations [license](https://github.com/l-lin/font-awesome-animation#license) [homepage](https://github.com/l-lin/font-awesome-animation)
5557

56-
jQuery - [license](https://github.com/jquery/jquery/blob/master/LICENSE.txt) - [homepage](http://jquery.com)
58+
jQuery [license](https://github.com/jquery/jquery/blob/master/LICENSE.txt) [homepage](http://jquery.com)
5759

58-
Laravel Framework - [license](https://github.com/laravel/framework/blob/5.4/LICENSE.md) - [homepage](https://laravel.com)
60+
Laravel Framework [license](https://github.com/laravel/framework/blob/5.4/LICENSE.md) [homepage](https://laravel.com)
5961

60-
Lodash - [license](https://github.com/lodash/lodash/blob/master/LICENSE) - [homepage](https://lodash.com/)
62+
Lodash [license](https://github.com/lodash/lodash/blob/master/LICENSE) [homepage](https://lodash.com/)
6163

62-
Select2 - [license](https://github.com/select2/select2/blob/master/LICENSE.md) - [homepage](https://select2.github.io)
64+
Select2 [license](https://github.com/select2/select2/blob/master/LICENSE.md) [homepage](https://select2.github.io)
6365

64-
Socket.io - [license](https://github.com/socketio/socket.io/blob/master/LICENSE) - [homepage](http://socket.io)
66+
Socket.io [license](https://github.com/socketio/socket.io/blob/master/LICENSE) [homepage](http://socket.io)
6567

66-
Socket.io File Upload - [license](https://github.com/vote539/socketio-file-upload/blob/master/server.js#L1-L27) - [homepage](https://github.com/vote539/socketio-file-upload)
68+
Socket.io File Upload [license](https://github.com/vote539/socketio-file-upload/blob/master/server.js#L1-L27) [homepage](https://github.com/vote539/socketio-file-upload)
6769

68-
SweetAlert - [license](https://github.com/t4t5/sweetalert/blob/master/LICENSE) - [homepage](http://t4t5.github.io/sweetalert/)
70+
SweetAlert [license](https://github.com/t4t5/sweetalert/blob/master/LICENSE) [homepage](http://t4t5.github.io/sweetalert/)
6971

7072
Typeahead — [license](https://github.com/bassjobsen/Bootstrap-3-Typeahead/blob/master/bootstrap3-typeahead.js)[homepage](https://github.com/bassjobsen/Bootstrap-3-Typeahead)
7173

74+
particles.js — [license](https://github.com/VincentGarreau/particles.js/blob/master/LICENSE.md)[homepage](http://vincentgarreau.com/particles.js/)
75+
7276
### Additional License Information
7377
Some Javascript and CSS used within the panel is licensed under a `MIT` or `Apache 2.0`. Please check their respective header files for more information.
7478

app/Console/Commands/AddLocation.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class AddLocation extends Command
3131
{
3232
protected $data = [];
3333

34-
/**
35-
* The name and signature of the console command.
36-
*
37-
* @var string
38-
*/
39-
protected $signature = 'pterodactyl:location
34+
/**
35+
* The name and signature of the console command.
36+
*
37+
* @var string
38+
*/
39+
protected $signature = 'pterodactyl:location
4040
{--short= : The shortcode name of this location (ex. us1).}
4141
{--long= : A longer description of this location.}';
4242

@@ -49,8 +49,6 @@ class AddLocation extends Command
4949

5050
/**
5151
* Create a new command instance.
52-
*
53-
* @return void
5452
*/
5553
public function __construct()
5654
{

0 commit comments

Comments
 (0)