mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 19:14:45 +02:00
Fix styling
This commit is contained in:
parent
679c72d70e
commit
ae189748f1
@ -8,8 +8,6 @@ use App\Models\Node;
|
|||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Filament\Actions\CreateAction;
|
use Filament\Actions\CreateAction;
|
||||||
use Filament\Infolists\Components\Concerns\HasHeaderActions;
|
|
||||||
use Filament\Infolists\Infolist;
|
|
||||||
use Filament\Pages\Page;
|
use Filament\Pages\Page;
|
||||||
|
|
||||||
class Dashboard extends Page
|
class Dashboard extends Page
|
||||||
|
@ -592,8 +592,7 @@ class ServerResource extends Resource
|
|||||||
'paused', 'removing' => 'warning',
|
'paused', 'removing' => 'warning',
|
||||||
'node_fail', 'install_failed', 'suspended' => 'danger',
|
'node_fail', 'install_failed', 'suspended' => 'danger',
|
||||||
default => 'gray',
|
default => 'gray',
|
||||||
})
|
}),
|
||||||
,
|
|
||||||
|
|
||||||
Tables\Columns\TextColumn::make('uuid')
|
Tables\Columns\TextColumn::make('uuid')
|
||||||
->hidden()
|
->hidden()
|
||||||
|
@ -4,7 +4,6 @@ namespace App\Filament\Resources\ServerResource\Pages;
|
|||||||
|
|
||||||
use App\Filament\Resources\ServerResource;
|
use App\Filament\Resources\ServerResource;
|
||||||
use App\Services\Servers\ServerCreationService;
|
use App\Services\Servers\ServerCreationService;
|
||||||
use Filament\Actions;
|
|
||||||
use Filament\Resources\Pages\CreateRecord;
|
use Filament\Resources\Pages\CreateRecord;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
@ -25,8 +24,8 @@ class CreateServer extends CreateRecord
|
|||||||
return $server;
|
return $server;
|
||||||
}
|
}
|
||||||
|
|
||||||
// protected function getRedirectUrl(): string
|
// protected function getRedirectUrl(): string
|
||||||
// {
|
// {
|
||||||
// return $this->getResource()::getUrl('edit');
|
// return $this->getResource()::getUrl('edit');
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
@ -71,8 +71,7 @@ class EditProfile extends \Filament\Pages\Auth\EditProfile
|
|||||||
->prefixIcon('tabler-flag')
|
->prefixIcon('tabler-flag')
|
||||||
->live()
|
->live()
|
||||||
->default('en')
|
->default('en')
|
||||||
->helperText(fn (User $user, $state) =>
|
->helperText(fn (User $user, $state) => new HtmlString($user->isLanguageTranslated($state) ? '' : "
|
||||||
new HtmlString($user->isLanguageTranslated($state) ? '' : "
|
|
||||||
Your language ($state) has not been translated yet!
|
Your language ($state) has not been translated yet!
|
||||||
But never fear, you can help fix that by
|
But never fear, you can help fix that by
|
||||||
<a style='color: rgb(56, 189, 248)' href='https://crowdin.com/project/pelican-dev'>contributing directly here</a>.
|
<a style='color: rgb(56, 189, 248)' href='https://crowdin.com/project/pelican-dev'>contributing directly here</a>.
|
||||||
@ -96,26 +95,26 @@ class EditProfile extends \Filament\Pages\Auth\EditProfile
|
|||||||
|
|
||||||
$options = new QROptions([
|
$options = new QROptions([
|
||||||
'svgLogo' => public_path('pelican.svg'),
|
'svgLogo' => public_path('pelican.svg'),
|
||||||
'addLogoSpace' => true,
|
'addLogoSpace' => true,
|
||||||
'logoSpaceWidth' => 13,
|
'logoSpaceWidth' => 13,
|
||||||
'logoSpaceHeight' => 13,
|
'logoSpaceHeight' => 13,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// https://github.com/chillerlan/php-qrcode/blob/main/examples/svgWithLogo.php
|
// https://github.com/chillerlan/php-qrcode/blob/main/examples/svgWithLogo.php
|
||||||
|
|
||||||
// SVG logo options (see extended class)
|
// SVG logo options (see extended class)
|
||||||
$options->svgLogo = public_path('pelican.svg'); // logo from: https://github.com/simple-icons/simple-icons
|
$options->svgLogo = public_path('pelican.svg'); // logo from: https://github.com/simple-icons/simple-icons
|
||||||
$options->svgLogoScale = 0.05;
|
$options->svgLogoScale = 0.05;
|
||||||
// $options->svgLogoCssClass = 'dark';
|
// $options->svgLogoCssClass = 'dark';
|
||||||
|
|
||||||
// QROptions
|
// QROptions
|
||||||
$options->version = Version::AUTO;
|
$options->version = Version::AUTO;
|
||||||
// $options->outputInterface = QRSvgWithLogo::class;
|
// $options->outputInterface = QRSvgWithLogo::class;
|
||||||
$options->outputBase64 = false;
|
$options->outputBase64 = false;
|
||||||
$options->eccLevel = EccLevel::H; // ECC level H is necessary when using logos
|
$options->eccLevel = EccLevel::H; // ECC level H is necessary when using logos
|
||||||
$options->addQuietzone = true;
|
$options->addQuietzone = true;
|
||||||
// $options->drawLightModules = true;
|
// $options->drawLightModules = true;
|
||||||
$options->connectPaths = true;
|
$options->connectPaths = true;
|
||||||
$options->drawCircularModules = true;
|
$options->drawCircularModules = true;
|
||||||
// $options->circleRadius = 0.45;
|
// $options->circleRadius = 0.45;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user