Merge branch 'pelican-dev:main' into passkeys

This commit is contained in:
JoanFo
2026-06-06 17:21:40 +02:00
committed by GitHub
5 changed files with 11 additions and 8 deletions

View File

@@ -830,13 +830,14 @@ class Settings extends Page implements HasSchemas
->formatStateUsing(fn ($state): bool => (bool) $state)
->afterStateUpdated(fn ($state, Set $set) => $set('PANEL_EDITABLE_SERVER_DESCRIPTIONS', (bool) $state))
->default(env('PANEL_EDITABLE_SERVER_DESCRIPTIONS', config('panel.editable_server_descriptions'))),
FileUpload::make('ConsoleFonts')
FileUpload::make('console_font')
->hint(trans('admin/setting.misc.server.console_font_hint'))
->label(trans('admin/setting.misc.server.console_font_upload'))
->directory('fonts')
->disk('public')
->columnSpan(1)
->maxFiles(1)
->acceptedFileTypes(['font/*'])
->preserveFilenames(),
]),
Section::make(trans('admin/setting.misc.webhook.title'))
@@ -864,9 +865,11 @@ class Settings extends Page implements HasSchemas
public function save(): void
{
abort_unless(user()?->can('update settings'), 403);
try {
$data = $this->form->getState();
unset($data['ConsoleFonts']);
unset($data['console_font']);
$data = array_map(function ($value) {
// Convert bools to a string, so they are correctly written to the .env file

View File

@@ -279,7 +279,7 @@ class Plugin extends Model implements HasPluginSettings
report($exception);
}
return null;
return [];
});
}

View File

@@ -26,4 +26,4 @@
@source '../../vendor/gboquizosanchez/filament-log-viewer/resources/views/**/*.blade.php';
@variant dark (&:where(.dark, .dark *));
@custom-variant dark (.dark &);

View File

@@ -6,9 +6,9 @@
<title>API Documentation</title>
@vite('resources/css/app.css')
</head>
<body class="bg-gray-100 min-h-screen flex items-center justify-center">
<div class="bg-white shadow-lg rounded-lg py-8 px-8 max-w-md w-full text-center">
<h2 class="text-xl font-bold text-gray-800 mb-4">API Documentation</h2>
<body class="bg-gray-100 dark:bg-gray-950 min-h-screen flex items-center justify-center">
<div class="bg-white dark:bg-gray-900 shadow-lg rounded-lg py-8 px-8 max-w-md w-full text-center">
<h2 class="text-xl font-bold text-gray-800 dark:text-white mb-4">API Documentation</h2>
<div class="mb-2">
<a href="/docs/api/application" class="inline-flex items-center">

View File

@@ -1,4 +1,4 @@
<div class="fi-small-stat-block grid grid-flow-row w-full p-3 rounded-lg bg-white shadow-sm overflow-hidden overflow-x-auto ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10">
<div class="fi-small-stat-block grid grid-flow-row w-full p-3 rounded-lg shadow-sm overflow-hidden overflow-x-auto ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10">
@if ($isCopyable($value = $getValue()))
<span class="cursor-pointer" x-on:click="
navigator.clipboard.writeText(@js($value));