Skip to content

Commit 215351e

Browse files
authored
Merge branch 'develop' into feature/bulk-reinstall-command
2 parents 34b166c + b94289c commit 215351e

File tree

308 files changed

+18732
-3392
lines changed

Some content is hidden

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

308 files changed

+18732
-3392
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.dev/vagrant/provision.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ debconf-set-selections <<< 'mariadb-server-5.5 mysql-server/root_password_again
2121
# actually install
2222
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

24+
echo "Install nodejs and yarn"
25+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
26+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
27+
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
28+
apt-get -y install nodejs yarn > /dev/null
29+
2430
echo "Install composer"
2531
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2632

.env.dusk

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
APP_ENV=local
2+
APP_DEBUG=false
3+
APP_KEY=NDWgIKKi9ovNK1PXZpzfNVSBdfCXGb5i
4+
APP_JWT_KEY=test1234
5+
APP_TIMEZONE=America/Los_Angeles
6+
APP_URL=http://pterodactyl.local
7+
8+
CACHE_DRIVER=file
9+
SESSION_DRIVER=file
10+
11+
HASHIDS_SALT=IqRr0g82tCTeuyxGs8RV
12+
HASHIDS_LENGTH=8
13+
14+
MAIL_DRIVER=log
15+
MAIL_FROM=support@pterodactyl.io
16+
QUEUE_DRIVER=array
17+
18+
APP_SERVICE_AUTHOR=testing@pterodactyl.io
19+
MAIL_FROM_NAME="Pterodactyl Panel"
20+
RECAPTCHA_ENABLED=false
21+
22+
DB_CONNECTION=testing
23+
TESTING_DB_HOST=192.168.1.202
24+
TESTING_DB_DATABASE=panel_test
25+
TESTING_DB_USERNAME=panel_test
26+
TESTING_DB_PASSWORD=Test1234

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ MAIL_FROM=no-reply@example.com
2828

2929
QUEUE_HIGH=high
3030
QUEUE_STANDARD=standard
31-
QUEUE_LOW=low
31+
QUEUE_LOW=low

.github/ISSUE_TEMPLATE/---bug-report.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
---
22
name: "\U0001F41B Bug Report"
3-
about: Create a report to help us resolve a bug or error
3+
about: For reporting code or design bugs with the software. DO NOT REPORT APACHE/NGINX/PHP CONFIGURATION ISSUES.
44

55
---
66

7+
DO NOT REPORT ISSUES CONFIGURING: SSL, PHP, APACHE, NGINX, YOUR MACHINE, SSH, SFTP, ETC. ON THIS GITHUB TRACKER.
8+
9+
For assistance installating this software, as well as debugging issues with dependencies, please use our discord server: https://discord.gg/pterodactyl
10+
11+
You MUST complete all of the below information when reporting a bug, failure to do so will result in closure of your issue. PLEASE stop spamming our tracker with "bugs" that are not related to this project.
12+
13+
**STOP: READ FIRST, AND THEN DELETE THE ABOVE LINES**
14+
715
**Background (please complete the following information):**
816
* Panel or Daemon:
917
* Version of Panel/Daemon:

.github/ISSUE_TEMPLATE/--installation-help.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ about: 'Visit our Discord for installation help: https://pterodactyl.io/discord'
66

77
We use GitHub issues only to discuss about Pterodactyl bugs and new features. For
88
this kind of questions about using Pterodactyl, please visit our Discord for assistance: https://pterodactyl.io/discord
9+
10+
DO NOT REPORT ISSUES CONFIGURING: SSL, PHP, APACHE, NGINX, YOUR MACHINE, SSH, SFTP, ETC. ON THIS GITHUB TRACKER.
11+
12+
For assistance installating this software, as well as debugging issues with dependencies, please use our discord server: https://discord.gg/pterodactyl
13+
14+
PLEASE stop spamming our tracker with "bugs" that are not related to this project.

.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ storage/framework/*
77
/.idea
88
/nbproject
99

10-
package-lock.json
11-
composer.lock
1210
node_modules
13-
14-
_ide_helper_models.php
11+
*.log
1512
_ide_helper.php
16-
17-
sami.phar
18-
/.sami
13+
.phpstorm.meta.php
14+
.php_cs.cache
15+
public/assets/manifest.json
1916

2017
# For local development with docker
2118
# Remove if we ever put the Dockerfile in the repo
@@ -32,3 +29,6 @@ coverage.xml
3229

3330
# Vagrant
3431
*.log
32+
resources/lang/locales.js
33+
resources/assets/pterodactyl/scripts/helpers/ziggy.js
34+
resources/assets/scripts/helpers/ziggy.js

BUILDING.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Local Development
2+
Pterodactyl is now powered by Vuejs and Tailwindcss and uses webpack at its core to generate compiled assets. Release
3+
versions of Pterodactyl will include pre-compiled, minified, and hashed assets ready-to-go.
4+
5+
However, if you are interested in running custom themes or making modifications to the Vue files you'll need a build
6+
system in place to generate these compiled assets. To get your environment setup, you'll first need to install at least Nodejs
7+
`8`, and it is _highly_ recommended that you also install [Yarn](https://yarnpkg.com) to manage your `node_modules`.
8+
9+
### Install Dependencies
10+
```bash
11+
yarn install
12+
```
13+
14+
The command above will download all of the dependencies necessary to get Pterodactyl assets building. After that, its as
15+
simple as running the command below to generate assets while you're developing.
16+
17+
```bash
18+
# build the compiled assets for development
19+
yarn run build
20+
21+
# build the assets automatically when files are modified
22+
yarn run watch
23+
```
24+
25+
26+
### Hot Module Reloading
27+
For more advanced users, we also support 'Hot Module Reloading', allowing you to quickly see changes you're making
28+
to the Vue template files without having to reload the page you're on. To Get started with this, you just need
29+
to run the command below.
30+
31+
```bash
32+
PUBLIC_PATH=http://192.168.1.1:8080 yarn run serve --host 192.168.1.1
33+
```
34+
35+
There are two _very important_ parts of this command to take note of and change for your specific environment. The first
36+
is the `--host` flag, which is required and should point to the machine where the `webpack-serve` server will be running.
37+
The second is the `PUBLIC_PATH` environment variable which is the URL pointing to the HMR server and is appended to all of
38+
the asset URLs used in Pterodactyl.
39+
40+
#### Vagrant
41+
If you want to use HMR with our Vagrant image, you can use `yarn run v:serve` as a shortcut for the correct parameters.
42+
In order to have proper file change detection you can use the [`vagrant-notify-forwarder`](https://github.com/mhallin/vagrant-notify-forwarder) to notify file events from the host to the VM.
43+
```sh
44+
vagrant plugin install vagrant-notify-forwarder
45+
vagrant reload
46+
```
47+
48+
### Building for Production
49+
Once you have your files squared away and ready for the live server, you'll be needing to generate compiled, minified, and
50+
hashed assets to push live. To do so, run the command below:
51+
52+
```bash
53+
yarn run build:production
54+
```
55+
56+
This will generate a production ready `bundle.js` and `bundle.css` as well as a `manifest.json` and store them in
57+
the `/public/assets` directory where they can then be access by clients, and read by the Panel.

CHANGELOG.md

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,60 @@ 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.14 (Derelict Dermodactylus)
7+
### Fixed
8+
* **[SECURITY]** Fixes an XSS vulnerability when performing certain actions in the file manager.
9+
* **[SECURITY]** Attempting to login as a user who has 2FA enabled will no longer request the 2FA token before validating
10+
that their password is correct. This closes a user existence leak that would expose that an account exists if
11+
it had 2FA enabled.
12+
13+
### Changed
14+
* Support for setting a node to listen on ports lower than 1024.
15+
* QR code URLs are now generated without the use of an external library to reduce the dependency tree.
16+
* Regenerated database passwords now respect the same settings that were used when initially created.
17+
* Cleaned up 2FA QR code generation to use a more up-to-date library and API.
18+
* Console charts now properly start at 0 and scale based on server configuration. No more crazy spikes that
19+
are due to a change of one unit.
20+
21+
## v0.7.13 (Derelict Dermodactylus)
22+
### Fixed
23+
* Fixes a bug with the location update API endpoint throwing an error due to an unexected response value.
24+
* Fixes bug where node creation API endpoint was not correctly requiring the `disk_overallocate` key.
25+
* Prevents an exception from being thrown when a database with the same name is created on two different hosts.
26+
* Fixes the redis password not saving correctly when setting up the environment from the command line.
27+
* Fixes a bug with transaction handling in many areas of the application that would cause validation error messages
28+
and other session data to not be persisted properly when using the database as the session driver.
29+
* Fix a bug introduced at some point in the past that causes internal data integrity exceptions to not bubble up to
30+
the user correctly, leading to extraneous and confusing exception messages.
31+
* Fixes a bug causing servers to not be marked as having failed installation in some cases.
32+
33+
### Changed
34+
* `allocation_limit` for servers now defaults to a null value, and is not required in PATCH/POST requests when adding
35+
a server through the API.
36+
* The `PATCH` endpoint for `/api/applications/servers/{server}/build` now accepts an array called `limits` to match
37+
the response from the server `GET` endpoint.
38+
39+
### Added
40+
* The server listing for a node is now paginated to 25 servers per page to improve performance on large nodes.
41+
642
## v0.7.12 (Derelict Dermodactylus)
743
### Fixed
844
* Fixes an issue with the locations API endpoint referencing an invalid namespace.
945
* Fixes the `store()` function on the locations API not working due to an incorrect return typehint.
1046
* Fixes daemon secrets not being able to be reset on a Node.
11-
47+
* Fixes an issue where files were not editable due to missing URL encoding in the file manager.
48+
* Fixed checking of language changes
49+
* Fixed Spigot egg not building versions other than `latest`.
50+
* Fixed the Forge egg install script.
51+
* Fixes a bug that would ignore the `skip_scripts` setting when creating or editing a server.
52+
1253
### Updated
1354
* Upgraded core to use Laravel `5.7.14`.
55+
* Updated Simplified Chinese translation pack.
1456

1557
### Added
1658
* Added support for opening and editing Python files through the web editor.
59+
* Adds Russian translation.
1760

1861
## v0.7.11 (Derelict Dermodactylus)
1962
### Fixed
@@ -211,7 +254,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
211254
* Nest and Egg listings now show the associated ID in order to make API requests easier.
212255
* Added star indicators to user listing in Admin CP to indicate users who are set as a root admin.
213256
* Creating a new node will now requires a SSL connection if the Panel is configured to use SSL as well.
214-
* Socketio error messages due to permissions are now rendered correctly in the UI rather than causing a silent failure.
257+
* Connector error messages due to permissions are now rendered correctly in the UI rather than causing a silent failure.
215258
* File manager now supports mass deletion option for files and folders.
216259
* Support for CS:GO as a default service option selection.
217260
* Support for GMOD as a default service option selection.
@@ -341,7 +384,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
341384
* Changed 2FA login process to be more secure. Previously authentication checking happened on the 2FA post page, now it happens prior and is passed along to the 2FA page to avoid storing any credentials.
342385

343386
### Added
344-
* Socketio error messages due to permissions are now rendered correctly in the UI rather than causing a silent failure.
387+
* Connector error messages due to permissions are now rendered correctly in the UI rather than causing a silent failure.
345388

346389
## v0.7.0-beta.1 (Derelict Dermodactylus)
347390
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Logo Image](https://cdn.pterodactyl.io/logos/Banner%20Logo%20Black@2x.png)](https://pterodactyl.io)
1+
[![Logo Image](https://cdn.pterodactyl.io/logos/new/pterodactyl_logo.png)](https://pterodactyl.io)
22

33
[![Build status](https://img.shields.io/travis/pterodactyl/panel/develop.svg?style=flat-square)](https://travis-ci.org/pterodactyl/panel)
44
[![StyleCI](https://styleci.io/repos/47508644/shield?branch=develop)](https://styleci.io/repos/47508644)

0 commit comments

Comments
 (0)