Enhance User Guide and Template Services: Added max content width configuration to UserGuide page for improved layout. Updated TemplateService to always replace placeholders, ensuring custom components are handled correctly even with empty default data. Enhanced error handling for custom component rendering, providing user-friendly error messages in the preview. Introduced a new guide for website setup, detailing installation steps and features.
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Filament\Admin\Pages;
|
||||
use App\Services\GuideService;
|
||||
use BackedEnum;
|
||||
use Filament\Pages\Page;
|
||||
use Filament\Support\Enums\Width;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
|
||||
class UserGuide extends Page
|
||||
@@ -37,6 +38,11 @@ class UserGuide extends Page
|
||||
return __('user-guide.title');
|
||||
}
|
||||
|
||||
public function getMaxContentWidth(): Width | string | null
|
||||
{
|
||||
return Width::Full;
|
||||
}
|
||||
|
||||
public function getGuides(): array
|
||||
{
|
||||
$guideService = app(GuideService::class);
|
||||
|
||||
Reference in New Issue
Block a user