mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-05 19:51:59 +02:00
feat: update all the other files
This commit is contained in:
8
.github/workflows-disabled/build.yaml
vendored
8
.github/workflows-disabled/build.yaml
vendored
@@ -14,19 +14,21 @@ jobs:
|
||||
ui:
|
||||
name: UI
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [16]
|
||||
steps:
|
||||
- name: Code Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "yarn"
|
||||
cache: yarn
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
6
.github/workflows-disabled/lint.yaml
vendored
6
.github/workflows-disabled/lint.yaml
vendored
@@ -14,14 +14,16 @@ jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Code Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: "8.1"
|
||||
php-version: "8.2"
|
||||
extensions: bcmath, curl, gd, mbstring, mysql, openssl, pdo, tokenizer, xml, zip
|
||||
tools: composer:v2
|
||||
coverage: none
|
||||
|
||||
12
.github/workflows-disabled/release.yaml
vendored
12
.github/workflows-disabled/release.yaml
vendored
@@ -9,15 +9,17 @@ jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
contents: write # write is required to create releases and push.
|
||||
steps:
|
||||
- name: Code checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "yarn"
|
||||
cache: yarn
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
@@ -41,7 +43,7 @@ jobs:
|
||||
|
||||
- name: Create release archive
|
||||
run: |
|
||||
rm -rf node_modules tests CODE_OF_CONDUCT.md CONTRIBUTING.md flake.lock flake.nix phpunit.xml shell.nix
|
||||
rm -rf node_modules tests CODE_OF_CONDUCT.md CONTRIBUTING.md flake.lock flake.nix phpunit.xml shell.nix
|
||||
tar -czf panel.tar.gz * .editorconfig .env.example .eslintignore .eslintrc.js .gitignore .prettierrc.json
|
||||
|
||||
- name: Extract changelog
|
||||
@@ -58,7 +60,7 @@ jobs:
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@v2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
|
||||
64
.github/workflows/docker-dev.yaml
vendored
64
.github/workflows/docker-dev.yaml
vendored
@@ -1,64 +0,0 @@
|
||||
name: Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
push:
|
||||
name: Push
|
||||
runs-on: ubuntu-20.04
|
||||
if: "!contains(github.ref, 'develop') || (!contains(github.event.head_commit.message, 'skip docker') && !contains(github.event.head_commit.message, 'docker skip'))"
|
||||
steps:
|
||||
- name: Code checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Docker metadata
|
||||
id: docker_meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: ghcr.io/pyrohost/pyrodactyl
|
||||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
if: "github.event_name != 'pull_request'"
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Update version
|
||||
if: "github.event_name == 'release' && github.event.action == 'published'"
|
||||
env:
|
||||
REF: ${{ github.event.release.tag_name }}
|
||||
run: |
|
||||
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:1}',/" config/app.php
|
||||
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
11
.github/workflows/docker.yaml
vendored
11
.github/workflows/docker.yaml
vendored
@@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
@@ -21,18 +22,18 @@ jobs:
|
||||
if: "!contains(github.ref, 'develop') || (!contains(github.event.head_commit.message, 'skip docker') && !contains(github.event.head_commit.message, 'docker skip'))"
|
||||
steps:
|
||||
- name: Code checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Docker metadata
|
||||
id: docker_meta
|
||||
uses: docker/metadata-action@v4
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ghcr.io/pyrohost/pyrodactyl
|
||||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.action == 'published' && github.event.release.prerelease == false }}
|
||||
type=ref,event=tag
|
||||
type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.action == 'published' && github.event.release.prerelease == false && github.ref != 'refs/heads/dev' }}
|
||||
type=ref,event=tag,enable=${{ github.ref != 'refs/heads/dev' }}
|
||||
type=ref,event=branch
|
||||
|
||||
- name: Setup QEMU
|
||||
@@ -57,7 +58,7 @@ jobs:
|
||||
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:1}',/" config/app.php
|
||||
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
use PhpCsFixer\Config;
|
||||
use PhpCsFixer\Finder;
|
||||
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
|
||||
|
||||
$finder = (new Finder())
|
||||
->in(__DIR__)
|
||||
@@ -14,6 +15,7 @@ $finder = (new Finder())
|
||||
->notName(['_ide_helper*']);
|
||||
|
||||
return (new Config())
|
||||
->setParallelConfig(ParallelConfigFactory::detect())
|
||||
->setRiskyAllowed(true)
|
||||
->setFinder($finder)
|
||||
->setRules([
|
||||
|
||||
@@ -10,7 +10,7 @@ RUN apk add --no-cache --update git \
|
||||
|
||||
# Stage 1:
|
||||
# Build the actual container with all of the needed PHP dependencies that will run the application.
|
||||
FROM --platform=$TARGETOS/$TARGETARCH php:8.1-fpm-alpine
|
||||
FROM --platform=$TARGETOS/$TARGETARCH php:8.2-fpm-alpine
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
COPY --from=0 /app/public/assets ./public/assets
|
||||
|
||||
2
bootstrap/cache/.gitignore
vendored
2
bootstrap/cache/.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
!.gitignore
|
||||
|
||||
@@ -9,7 +9,7 @@ require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$app = require __DIR__ . '/app.php';
|
||||
|
||||
/** @var \Pterodactyl\Console\Kernel $kernel */
|
||||
/** @var Pterodactyl\Console\Kernel $kernel */
|
||||
$kernel = $app->make(Kernel::class);
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,62 +1,70 @@
|
||||
{
|
||||
"name": "pyrohost/pyrodactyl",
|
||||
"description": "Pyrodactyl is the Pterodactyl-based game server panel that's faster, smaller, safer, and more accessible.",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"name": "pterodactyl/panel",
|
||||
"description": "The free, open-source game management panel. Supporting Minecraft, Spigot, BungeeCord, and SRCDS servers.",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Pyro Host Inc.",
|
||||
"email": "team@pyro.host",
|
||||
"homepage": "https://pyro.host",
|
||||
"role": "Former Maintainer"
|
||||
"name": "Matthew Penner",
|
||||
"email": "matthew@pterodactyl.io",
|
||||
"homepage": "https://github.com/matthewpi",
|
||||
"role": "Lead Developer"
|
||||
},
|
||||
{
|
||||
"name": "Dane Everitt",
|
||||
"email": "dane@daneeveritt.com",
|
||||
"homepage": "https://github.com/DaneEveritt",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": "^8.1 || ^8.2",
|
||||
"php": "^8.2 || ^8.3",
|
||||
"ext-json": "*",
|
||||
"ext-mbstring": "*",
|
||||
"ext-pdo": "*",
|
||||
"ext-pdo_mysql": "*",
|
||||
"ext-posix": "*",
|
||||
"ext-zip": "*",
|
||||
"aws/aws-sdk-php": "~3.288.1",
|
||||
"doctrine/dbal": "~3.6.0",
|
||||
"guzzlehttp/guzzle": "~7.5.0",
|
||||
"hashids/hashids": "~5.0.0",
|
||||
"laracasts/utilities": "~3.2.2",
|
||||
"laravel/framework": "~10.1.3",
|
||||
"laravel/helpers": "~1.6.0",
|
||||
"laravel/sanctum": "~3.2.1",
|
||||
"laravel/tinker": "~2.8.1",
|
||||
"laravel/ui": "~4.2.1",
|
||||
"lcobucci/jwt": "~4.3.0",
|
||||
"league/flysystem-aws-s3-v3": "~3.12.2",
|
||||
"league/flysystem-memory": "~3.10.3",
|
||||
"matriphe/iso-639": "~1.2",
|
||||
"phpseclib/phpseclib": "~3.0.18",
|
||||
"pragmarx/google2fa": "~8.0.0",
|
||||
"predis/predis": "~2.1.1",
|
||||
"prologue/alerts": "~1.1.0",
|
||||
"aws/aws-sdk-php": "~3.324.7",
|
||||
"guzzlehttp/guzzle": "~7.9.2",
|
||||
"hashids/hashids": "~5.0.2",
|
||||
"laracasts/utilities": "~3.2.3",
|
||||
"laravel/framework": "~11.31.0",
|
||||
"laravel/helpers": "~1.7.0",
|
||||
"laravel/sanctum": "~4.0.3",
|
||||
"laravel/tinker": "~2.10.0",
|
||||
"laravel/ui": "~4.5.2",
|
||||
"lcobucci/jwt": "~5.4.0",
|
||||
"league/flysystem-aws-s3-v3": "~3.29.0",
|
||||
"league/flysystem-memory": "~3.29.0",
|
||||
"matriphe/iso-639": "~2.0",
|
||||
"phpseclib/phpseclib": "~3.0.42",
|
||||
"pragmarx/google2fa": "~8.0.3",
|
||||
"predis/predis": "~2.2.2",
|
||||
"prologue/alerts": "~1.2.0",
|
||||
"psr/cache": "~3.0.0",
|
||||
"s1lentium/iptools": "~1.2.0",
|
||||
"spatie/laravel-fractal": "~6.0.3",
|
||||
"spatie/laravel-query-builder": "~5.1.2",
|
||||
"staudenmeir/belongs-to-through": "~2.13",
|
||||
"symfony/http-client": "~6.2.6",
|
||||
"symfony/mailgun-mailer": "~6.2.5",
|
||||
"symfony/postmark-mailer": "~6.2.5",
|
||||
"symfony/yaml": "~6.2.5",
|
||||
"spatie/laravel-fractal": "~6.2.1",
|
||||
"spatie/laravel-query-builder": "~6.2.1",
|
||||
"staudenmeir/belongs-to-through": "~2.16.1",
|
||||
"symfony/http-client": "~7.1.5",
|
||||
"symfony/mailgun-mailer": "~7.1.3",
|
||||
"symfony/postmark-mailer": "~7.1.1",
|
||||
"symfony/yaml": "~7.1.5",
|
||||
"webmozart/assert": "~1.11.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"barryvdh/laravel-ide-helper": "~2.13.0",
|
||||
"fakerphp/faker": "~1.21.0",
|
||||
"friendsofphp/php-cs-fixer": "~3.14.4",
|
||||
"itsgoingd/clockwork": "~5.1.12",
|
||||
"laravel/sail": "~1.21.0",
|
||||
"mockery/mockery": "~1.5.1",
|
||||
"nunomaduro/collision": "~7.0.5",
|
||||
"phpunit/phpunit": "~10.0.11",
|
||||
"spatie/laravel-ignition": "~2.0.0"
|
||||
"barryvdh/laravel-ide-helper": "~3.2.0",
|
||||
"fakerphp/faker": "~1.23.1",
|
||||
"friendsofphp/php-cs-fixer": "~3.64.0",
|
||||
"itsgoingd/clockwork": "~5.2.2",
|
||||
"larastan/larastan": "~2.9.9",
|
||||
"laravel/pail": "~1.1.5",
|
||||
"laravel/sail": "~1.36.0",
|
||||
"mockery/mockery": "~1.6.12",
|
||||
"nunomaduro/collision": "~8.5.0",
|
||||
"phpstan/phpstan": "~1.12.7",
|
||||
"phpunit/phpunit": "~10.5.37",
|
||||
"spatie/laravel-ignition": "~2.8.0"
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
@@ -84,7 +92,9 @@
|
||||
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"@php artisan key:generate --ansi"
|
||||
"@php artisan key:generate --ansi",
|
||||
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
|
||||
"@php artisan migrate --graceful --ansi"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
@@ -92,7 +102,7 @@
|
||||
"preferred-install": "dist",
|
||||
"sort-packages": true,
|
||||
"platform": {
|
||||
"php": "8.1.0"
|
||||
"php": "8.2.0"
|
||||
}
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
|
||||
3346
composer.lock
generated
3346
composer.lock
generated
File diff suppressed because it is too large
Load Diff
21
phpstan.neon
Normal file
21
phpstan.neon
Normal file
@@ -0,0 +1,21 @@
|
||||
includes:
|
||||
- ./vendor/larastan/larastan/extension.neon
|
||||
|
||||
parameters:
|
||||
# Level 9 is the highest level
|
||||
level: 4
|
||||
paths:
|
||||
- app/
|
||||
ignoreErrors:
|
||||
# Ignore repository interface missing methods
|
||||
- '#Call to an undefined method Pterodactyl\\Repositories\\Wings\\DaemonRepository::(\w+)\(\)#'
|
||||
|
||||
# Ignore magic spatie calls
|
||||
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Builder::allowed(\w+)\(\)#'
|
||||
excludePaths:
|
||||
- app/Repositories
|
||||
|
||||
# More magic spatie to be replaced
|
||||
- app/Extensions/Spatie/Fractalistic/Fractal.php
|
||||
#
|
||||
# checkMissingIterableValueType: false
|
||||
@@ -20,11 +20,12 @@
|
||||
</testsuites>
|
||||
<php>
|
||||
<env name="APP_ENV" value="testing" />
|
||||
<env name="APP_MAINTENANCE_DRIVER" value="file" />
|
||||
<env name="BCRYPT_ROUNDS" value="4" />
|
||||
<env name="CACHE_STORE" value="array" />
|
||||
<env name="DB_DATABASE" value="testing" />
|
||||
<env name="CACHE_DRIVER" value="array" />
|
||||
<env name="MAIL_MAILER" value="array" />
|
||||
<env name="SESSION_DRIVER" value="array" />
|
||||
<env name="QUEUE_CONNECTION" value="sync" />
|
||||
<env name="MAIL_DRIVER" value="array" />
|
||||
</php>
|
||||
</phpunit>
|
||||
|
||||
Reference in New Issue
Block a user