Files
2024-12-24 10:33:18 +01:00

50 lines
1.6 KiB
Plaintext

Hey, Bagou450 thanks for your purchase.
First you need to upload the content of panelfiles folder to /var/www/pterodactyl.
Now edit panel files
1 - In routes/api-client.php above "Route::put('/email', [Client\AccountController::class, 'updateEmail'])->name('api:client.account.update-email');" add :
Route::post('/avatar', [Client\AvatarController::class, 'store']);
Route::get('/avatar', [Client\AvatarController::class, 'get']);
Route::delete('/avatar', [Client\AvatarController::class, 'remove']);
2.0 - In resources/scripts/components/dashboard/AccountOverviewContainer.tsx above "</Container>" add :
<ContentBox css={tw`md:ml-8 mt-8 md:mt-0`} title={'Change Account Avatar'} showFlashes={'account:avatar'}>
<UploadAvatarForm />
</ContentBox>
2.1 - In same file under all import line add :
import UploadAvatarForm from '@/components/dashboard/forms/UploadAvatarForm';
If you don't have yarn install it :
apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
apt -y install nodejs
cd /var/www/pterodactyl
npm i -g yarn
yarn install
And build the panel assets :
yarn build:production
chown -R www-data:www-data *
Add Laravel storage syslink :
php artisan storage:link
Done!
FOR A URGENT HELP CONTACT ME DIRECTLY BY SMS OR EMAIL!!
If you need help contact me on discord : http://discord.bagou450.com/ (or https://discord.gg/bagou450)
You don't have discord ? Send me a SMS to +33 7 56 89 00 36 (Unsurcharged number, No call)
You prefer emails? Send a email to contact@bagou450.com