Skip to content

Commit dd31fe8

Browse files
committed
chore: Update README with latest file statistics; upgrade composer dependencies including predis, swagger-php, and php-cs-fixer to their latest versions; refactor code for improved readability and maintainability across various components
1 parent 3a4cf19 commit dd31fe8

File tree

13 files changed

+107
-129
lines changed

13 files changed

+107
-129
lines changed

.github/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ For installation instructions, system requirements, and complete guides, please
4747

4848
<!-- COUNT-STATS:START -->
4949

50-
_Last updated: 2026-02-07T15:43:00.876Z_
50+
_Last updated: 2026-02-12T00:12:53.219Z_
5151

5252
| Extension | Files | Lines |
5353
| --- | ---: | ---: |
54-
| `.tsx` | 413 | 100,297 |
55-
| `.php` | 405 | 96,705 |
54+
| `.tsx` | 415 | 100,579 |
55+
| `.php` | 405 | 96,755 |
5656
| `.yaml` | 3 | 5,497 |
57-
| `.ts` | 41 | 5,228 |
57+
| `.ts` | 42 | 5,256 |
5858
| `.sql` | 76 | 1,256 |
5959
| `.yml` | 14 | 1,126 |
6060
| `.css` | 1 | 147 |
61-
| **Total** | 953 | 210,256 |
61+
| **Total** | 956 | 210,616 |
6262

6363
<!-- COUNT-STATS:END -->
6464

backend/app/Controllers/Admin/SettingsController.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -771,15 +771,15 @@ public function __construct()
771771
* FastDL is implemented in Wings, but we have some CVE's that are not fixed yet.
772772
*/
773773
ConfigInterface::SERVER_ALLOW_USER_MADE_FASTDL => [
774-
'name' => ConfigInterface::SERVER_ALLOW_USER_MADE_FASTDL,
775-
'value' => $this->app->getConfig()->getSetting(ConfigInterface::SERVER_ALLOW_USER_MADE_FASTDL, 'false'),
776-
'description' => 'Allow users to create and manage their own FastDL configurations',
777-
'type' => 'select',
778-
'required' => true,
779-
'placeholder' => 'false',
780-
'validation' => 'required|string|max:255',
781-
'options' => ['true', 'false'],
782-
'category' => 'servers',
774+
'name' => ConfigInterface::SERVER_ALLOW_USER_MADE_FASTDL,
775+
'value' => $this->app->getConfig()->getSetting(ConfigInterface::SERVER_ALLOW_USER_MADE_FASTDL, 'false'),
776+
'description' => 'Allow users to create and manage their own FastDL configurations',
777+
'type' => 'select',
778+
'required' => true,
779+
'placeholder' => 'false',
780+
'validation' => 'required|string|max:255',
781+
'options' => ['true', 'false'],
782+
'category' => 'servers',
783783
],
784784
ConfigInterface::SERVER_ALLOW_ALLOCATION_SELECT => [
785785
'name' => ConfigInterface::SERVER_ALLOW_ALLOCATION_SELECT,

backend/app/Controllers/User/Server/ServerFastDlController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use App\Services\Wings\Wings;
2727
use OpenApi\Attributes as OA;
2828
use App\Config\ConfigInterface;
29-
use App\Controllers\User\Server\CheckSubuserPermissionsTrait;
3029
use Symfony\Component\HttpFoundation\Request;
3130
use Symfony\Component\HttpFoundation\Response;
3231

backend/app/Controllers/User/Server/SubuserController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ public function createSubuser(Request $request, string $serverUuid): Response
357357
return ApiResponse::error('User not found with this email', 'USER_NOT_FOUND', 404);
358358
}
359359

360-
$ownerServerID = $server['owner_id'];
361-
if ($ownerServerID == $user['id']) {
362-
return ApiResponse::error('Cannot add yourself as a subuser', 'CANNOT_ADD_SELF', 400);
363-
}
364-
360+
$ownerServerID = $server['owner_id'];
361+
if ($ownerServerID == $user['id']) {
362+
return ApiResponse::error('Cannot add yourself as a subuser', 'CANNOT_ADD_SELF', 400);
363+
}
364+
365365
// Check if subuser already exists for this user+server combination
366366
$existingSubuser = Subuser::getSubuserByUserAndServer($user['id'], $server['id']);
367367
if ($existingSubuser) {

backend/composer.lock

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontendv2/src/app/(app)/admin/servers/create/Step3Application.tsx

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ export function Step3Application({
144144
</Label>
145145
<Input
146146
value={formData.dockerImage}
147-
onChange={(e) =>
148-
setFormData((prev) => ({ ...prev, dockerImage: e.target.value }))
149-
}
147+
onChange={(e) => setFormData((prev) => ({ ...prev, dockerImage: e.target.value }))}
150148
placeholder='ghcr.io/pterodactyl/yolks:java_8'
151149
className='font-mono text-sm h-11 bg-muted/30'
152150
/>
@@ -183,27 +181,27 @@ export function Step3Application({
183181
)}
184182
>
185183
<div className='flex items-center justify-between gap-3'>
186-
<div className='flex items-center gap-2 min-w-0'>
187-
<Container className='h-4 w-4 text-primary shrink-0' />
188-
<div className='min-w-0'>
189-
<p
190-
className={cn(
191-
'text-sm font-medium truncate',
192-
formData.dockerImage === img.value
193-
? 'text-primary'
194-
: 'text-foreground group-hover/img:text-foreground',
195-
)}
196-
>
197-
{img.name}
198-
</p>
199-
<p className='text-xs font-mono text-muted-foreground truncate'>
200-
{img.value}
201-
</p>
184+
<div className='flex items-center gap-2 min-w-0'>
185+
<Container className='h-4 w-4 text-primary shrink-0' />
186+
<div className='min-w-0'>
187+
<p
188+
className={cn(
189+
'text-sm font-medium truncate',
190+
formData.dockerImage === img.value
191+
? 'text-primary'
192+
: 'text-foreground group-hover/img:text-foreground',
193+
)}
194+
>
195+
{img.name}
196+
</p>
197+
<p className='text-xs font-mono text-muted-foreground truncate'>
198+
{img.value}
199+
</p>
200+
</div>
202201
</div>
203-
</div>
204-
{formData.dockerImage === img.value && (
205-
<div className='h-2 w-2 rounded-full bg-primary shrink-0' />
206-
)}
202+
{formData.dockerImage === img.value && (
203+
<div className='h-2 w-2 rounded-full bg-primary shrink-0' />
204+
)}
207205
</div>
208206
</div>
209207
))}

frontendv2/src/app/(app)/server/[uuidShort]/fastdl/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ export default function ServerFastDlPage() {
250250
<PageHeader title={t('serverFastDl.title')} description={t('serverFastDl.description')} />
251251
<WidgetRenderer widgets={getWidgets('server-fastdl', 'after-header')} />
252252

253-
<PageCard title={t('serverFastDl.configuration')} description={t('serverFastDl.configurationDescription')} icon={Download}>
253+
<PageCard
254+
title={t('serverFastDl.configuration')}
255+
description={t('serverFastDl.configurationDescription')}
256+
icon={Download}
257+
>
254258
<div className='space-y-6'>
255259
{error && (
256260
<div className='p-4 bg-destructive/10 border border-destructive/20 rounded-xl'>
@@ -345,9 +349,7 @@ export default function ServerFastDlPage() {
345349
disabled={saving}
346350
className='h-12 bg-secondary/50 border-border/50 focus:border-primary/50 font-medium text-base rounded-xl'
347351
/>
348-
<p className='mt-2 text-xs text-muted-foreground'>
349-
{t('serverFastDl.directoryHelp')}
350-
</p>
352+
<p className='mt-2 text-xs text-muted-foreground'>{t('serverFastDl.directoryHelp')}</p>
351353
</div>
352354
<Button onClick={handleEnable} disabled={saving} className='w-full' variant='default'>
353355
{saving ? (

frontendv2/src/app/(app)/server/[uuidShort]/settings/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
Lock,
3939
Link as LinkIcon,
4040
} from 'lucide-react';
41-
import {copyToClipboard} from '@/lib/utils';
41+
import { copyToClipboard } from '@/lib/utils';
4242
import { Button } from '@/components/featherui/Button';
4343
import { Input } from '@/components/featherui/Input';
4444
import { Label } from '@/components/ui/label';

frontendv2/src/app/(docs)/icanhasfeatherpanel/widgets/page.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -408,15 +408,7 @@ const widgets = [
408408
slug: 'server-fastdl',
409409
sanitizedSlug: 'server-fastdl',
410410
files: ['src/app/(app)/server/[uuidShort]/fastdl/page.tsx'],
411-
injectionPoints: [
412-
'after-configuration',
413-
'after-header',
414-
'after-info',
415-
'after-quick-actions',
416-
'after-status',
417-
'bottom-of-page',
418-
'top-of-page',
419-
],
411+
injectionPoints: ['after-header', 'bottom-of-page', 'top-of-page'],
420412
},
421413
{
422414
slug: 'server-file-editor',

0 commit comments

Comments
 (0)