Skip to content

Commit 833b214

Browse files
committed
Merge branch 'release/v0.7.3'
2 parents c0cef1f + 301ff75 commit 833b214

File tree

22 files changed

+172
-76
lines changed

22 files changed

+172
-76
lines changed

.dev/vagrant/provision.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export DEBIAN_FRONTEND=noninteractive
1919
debconf-set-selections <<< 'mariadb-server-5.5 mysql-server/root_password password pterodactyl'
2020
debconf-set-selections <<< 'mariadb-server-5.5 mysql-server/root_password_again password pterodactyl'
2121
# actually install
22-
apt-get install -y php7.1 php7.1-cli php7.1-gd php7.1-mysql php7.1-pdo php7.1-mbstring php7.1-tokenizer php7.1-bcmath php7.1-xml php7.1-fpm php7.1-memcached php7.1-curl php7.1-zip php-xdebug mariadb-server nginx curl tar unzip git memcached > /dev/null
22+
apt-get install -y php7.2 php7.2-cli php7.2-gd php7.2-mysql php7.2-pdo php7.2-mbstring php7.2-tokenizer php7.2-bcmath php7.2-xml php7.2-fpm php7.2-memcached php7.2-curl php7.2-zip php-xdebug mariadb-server nginx curl tar unzip git memcached > /dev/null
2323

2424
echo "Install composer"
2525
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
@@ -32,8 +32,8 @@ systemctl enable mailhog.service
3232
systemctl start mailhog
3333

3434
echo "Configure xDebug"
35-
cp /var/www/html/pterodactyl/.dev/vagrant/xdebug.ini /etc/php/7.1/mods-available/
36-
systemctl restart php7.1-fpm
35+
cp /var/www/html/pterodactyl/.dev/vagrant/xdebug.ini /etc/php/7.2/mods-available/
36+
systemctl restart php7.2-fpm
3737

3838
echo "Configure nginx"
3939
cp /var/www/html/pterodactyl/.dev/vagrant/pterodactyl.conf /etc/nginx/sites-available/

.dev/vagrant/pterodactyl.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ server {
3131
location ~ \.php$ {
3232
fastcgi_split_path_info ^(.+\.php)(/.+)$;
3333
# the fastcgi_pass path needs to be changed accordingly when using CentOS
34-
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
34+
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
3535
fastcgi_index index.php;
3636
include fastcgi_params;
3737
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";

.github/ISSUE_TEMPLATE.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1-
Please describe your issue in full below. Include what products are affected, as well as what version(s) you are running. Please also include information about your system, such as `uname -a` and `php -v` and `docker info` if applicable.
1+
<!---
2+
Please take a little time to submit a good issue. It makes our life easier and the issue will be resolved quicker.
23
3-
If you're just making a suggestion, be descriptive, and link to any issues that might be releated as well.
4+
If you are submitting a feature request please remove everything in here. Then give a detailed explanation what you want to have implemented and why that would be a good addition.
45
5-
You can delete from this line up.
6-
---------------------
6+
Please also try to give the issue a good title: It should summarize your issue in a few words and help us see what the issue is about in a glance. Things like "Panel is not working" do not help.
77
8+
--- You can delete everything above this line. --->
9+
10+
<!--- Please fill in the following basic information --->
811
* Panel or Daemon:
912
* Version of Panel/Daemon:
1013
* Server's OS:
1114
* Your Computer's OS & Browser:
1215

13-
## Add Details Below:
16+
------------------------
17+
18+
<!---
19+
Please provide as much information about your issue as needed. Include precise steps to reproduce the issue and provide logs of the components that didn't work as expected.
1420
21+
Please provide additional information, depending on what you have issues with:
22+
Panel: `php -v` (the php version in use).
23+
Daemon: `uname -a` and `docker info` (your kernel version and information regarding docker)
24+
--->

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ docker-compose.yml
2525
# for image related files
2626
misc
2727
.phpstorm.meta.php
28-
.php_cs.cache
28+
.php_cs.cache
29+
30+
# Vagrant
31+
*.log

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ This file is a running track of new features and fixes to each version of the pa
33

44
This project follows [Semantic Versioning](http://semver.org) guidelines.
55

6+
## v0.7.3 (Derelict Dermodactylus)
7+
### Fixed
8+
* Fixes server creation API endpoint not passing the provided `external_id` to the creation service.
9+
* Fixes a bug causing users to be un-editable on new installations once more than one user exists.
10+
* Fixes default order of buttons in certain parts of the panel that would default to 'Delete' rather than 'Save' when pressing enter.
11+
12+
### Added
13+
* Adds ability to modify the external ID for a server through the API.
14+
615
## v0.7.2 (Derelict Dermodactylus)
716
### Fixed
817
* Fixes an exception thrown when trying to access the `/nests/:id/eggs/:id` API endpoint.

README.md

Lines changed: 45 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,56 @@
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)
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)
44

5-
## Pterodactyl Panel
6-
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.
5+
# Pterodactyl Panel
6+
Pterodactyl is the open-source game server management panel built with PHP7, Nodejs, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to administrators and users.
7+
What more are you waiting for? Make game servers a first class citizen on your platform today.
8+
9+
![Image](https://cdn.pterodactyl.io/site-assets/mockup-macbook-grey.png)
710

811
## Support & Documentation
9-
Support for using Pterodactyl can be found on our [Documentation Website](https://docs.pterodactyl.io) or via our [Discord Chat](https://discord.gg/QRDZvVm).
12+
Support for using Pterodactyl can be found on our [Documentation Website](https://docs.pterodactyl.io), [Guides Website](https://guides.pterodactyl.io), or via our [Discord Chat](https://discord.gg/QRDZvVm).
13+
14+
### Supported Games
15+
We support a huge variety of games by utilizing Docker containers to isolate each instance, giving you the power to host your games across the world without having to bloat each physical machine with additional dependencies.
16+
17+
Some of our core supported games include:
18+
19+
* Minecraft — including Spigot, Sponge, Bungeecord, Waterfall, and more
20+
* Rust
21+
* Terraria
22+
* Teamspeak
23+
* Mumble
24+
* Team Fortress 2
25+
* Counter Strike: GO
26+
* Garrys Mod
27+
* Ark: Survival Evolved
28+
29+
In addition to our standard nest of supported games, our community is constantly pushing the limits of this software and there are plenty more games available provided by the community. Some of these games include:
30+
31+
* Factorio
32+
* San Andreas: MP
33+
* Pocketmine MP
34+
* Squad
35+
* FiveM
36+
* Xonotic
37+
* Discord ATLBot
38+
39+
## Credits
40+
A huge thank you to [PhraseApp](https://phraseapp.com) who provide us the software to help translate this project. This software would not be possible
41+
without the work of other open-source authors who provide tools such as:
42+
43+
[Ace Editor](https://ace.c9.io), [AdminLTE](https://almsaeedstudio.com), [Animate.css](http://daneden.github.io/animate.css/), [AnsiUp](https://github.com/drudru/ansi_up), [Async.js](https://github.com/caolan/async),
44+
[Bootstrap](http://getbootstrap.com), [Bootstrap Notify](http://bootstrap-notify.remabledesigns.com), [Chart.js](http://www.chartjs.org), [FontAwesome](http://fontawesome.io),
45+
[FontAwesome Animations](https://github.com/l-lin/font-awesome-animation), [jQuery](http://jquery.com), [Laravel](https://laravel.com), [Lodash](https://lodash.com),
46+
[Select2](https://select2.github.io), [Socket.io](http://socket.io), [Socket.io File Upload](https://github.com/vote539/socketio-file-upload), [SweetAlert](http://t4t5.github.io/sweetalert),
47+
[Typeahead](https://github.com/bassjobsen/Bootstrap-3-Typeahead), and [Particles.js](http://vincentgarreau.com/particles.js).
48+
49+
Some Javascript and CSS used within the panel is licensed under a `MIT` or `Apache 2.0` license. Please check their respective header files for more information.
1050

1151
## License
1252
```
13-
Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
53+
Copyright (c) 2015 - 2018 Dane Everitt <dane@daneeveritt.com>.
1454
1555
Permission is hereby granted, free of charge, to any person obtaining a copy
1656
of this software and associated documentation files (the "Software"), to deal
@@ -30,48 +70,3 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3070
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3171
SOFTWARE.
3272
```
33-
34-
### Credits
35-
![](http://static.s3.pterodactyl.io/PhraseApp-parrot.png)
36-
A huge thanks to [PhraseApp](https://phraseapp.com) who provide us the software to help translate this project.
37-
38-
Ace Editor — [license](https://github.com/ajaxorg/ace/blob/master/LICENSE)[homepage](https://ace.c9.io)
39-
40-
AdminLTE — [license](https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE)[homepage](https://almsaeedstudio.com)
41-
42-
Animate.css — [license](https://github.com/daneden/animate.css/blob/master/LICENSE)[homepage](http://daneden.github.io/animate.css/)
43-
44-
AnsiUp — [license](https://github.com/drudru/ansi_up/blob/master/Readme.md#license)[homepage](https://github.com/drudru/ansi_up)
45-
46-
Async.js — [license](https://github.com/caolan/async/blob/master/LICENSE)[homepage](https://github.com/caolan/async/)
47-
48-
Bootstrap — [license](https://github.com/twbs/bootstrap/blob/master/LICENSE)[homepage](http://getbootstrap.com)
49-
50-
BootStrap Notify — [license](https://github.com/mouse0270/bootstrap-notify/blob/master/LICENSE)[homepage](http://bootstrap-notify.remabledesigns.com)
51-
52-
Chart.js — [license](https://github.com/chartjs/Chart.js/blob/master/LICENSE.md)[homepage](http://www.chartjs.org)
53-
54-
FontAwesome — [license](http://fontawesome.io/license/)[homepage](http://fontawesome.io)
55-
56-
FontAwesome Animations — [license](https://github.com/l-lin/font-awesome-animation#license)[homepage](https://github.com/l-lin/font-awesome-animation)
57-
58-
jQuery — [license](https://github.com/jquery/jquery/blob/master/LICENSE.txt)[homepage](http://jquery.com)
59-
60-
Laravel Framework — [license](https://github.com/laravel/framework/blob/5.4/LICENSE.md)[homepage](https://laravel.com)
61-
62-
Lodash — [license](https://github.com/lodash/lodash/blob/master/LICENSE)[homepage](https://lodash.com/)
63-
64-
Select2 — [license](https://github.com/select2/select2/blob/master/LICENSE.md)[homepage](https://select2.github.io)
65-
66-
Socket.io — [license](https://github.com/socketio/socket.io/blob/master/LICENSE)[homepage](http://socket.io)
67-
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)
69-
70-
SweetAlert — [license](https://github.com/t4t5/sweetalert/blob/master/LICENSE)[homepage](http://t4t5.github.io/sweetalert/)
71-
72-
Typeahead — [license](https://github.com/bassjobsen/Bootstrap-3-Typeahead/blob/master/bootstrap3-typeahead.js)[homepage](https://github.com/bassjobsen/Bootstrap-3-Typeahead)
73-
74-
particles.js — [license](https://github.com/VincentGarreau/particles.js/blob/master/LICENSE.md)[homepage](http://vincentgarreau.com/particles.js/)
75-
76-
### Additional License Information
77-
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.

app/Http/Requests/Api/Application/Servers/StoreServerRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public function validated()
7676
$data = parent::validated();
7777

7878
return [
79+
'external_id' => array_get($data, 'external_id'),
7980
'name' => array_get($data, 'name'),
8081
'description' => array_get($data, 'description'),
8182
'owner_id' => array_get($data, 'user'),

app/Http/Requests/Api/Application/Servers/UpdateServerDetailsRequest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ class UpdateServerDetailsRequest extends ServerWriteRequest
1313
*/
1414
public function rules(): array
1515
{
16-
$rules = Server::getUpdateRulesForId($this->route()->parameter('server')->id);
16+
$rules = Server::getUpdateRulesForId($this->getModel(Server::class)->id);
1717

1818
return [
19+
'external_id' => $rules['external_id'],
1920
'name' => $rules['name'],
2021
'user' => $rules['owner_id'],
2122
'description' => array_merge(['nullable'], $rules['description']),
@@ -31,6 +32,7 @@ public function rules(): array
3132
public function validated(): array
3233
{
3334
return [
35+
'external_id' => $this->input('external_id'),
3436
'name' => $this->input('name'),
3537
'owner_id' => $this->input('user'),
3638
'description' => $this->input('description'),

app/Models/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class User extends Model implements
121121
* @var array
122122
*/
123123
protected $attributes = [
124+
'external_id' => null,
124125
'root_admin' => false,
125126
'language' => 'en',
126127
'use_totp' => false,

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| change this value if you are not maintaining your own internal versions.
1010
*/
1111

12-
'version' => '0.7.2',
12+
'version' => '0.7.3',
1313

1414
/*
1515
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)