Keep the public site readable after import (nbsp, highlighter, wrapping code, compact pager) and finish the admin extras already in this tree: sticky levels, preview, page cache, and live llms.txt. Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
893 B
PHP
35 lines
893 B
PHP
@php
|
|
$environmentName = \App\Filament\Support\AdminEnvironment::name();
|
|
$environmentColor = \App\Filament\Support\AdminEnvironment::color();
|
|
$createPostUrl = \App\Filament\Resources\Posts\PostResource::getUrl('create');
|
|
@endphp
|
|
|
|
<div class="ll-topbar-tools">
|
|
<x-filament::badge :color="$environmentColor" size="sm" class="ll-env-badge">
|
|
{{ $environmentName }}
|
|
</x-filament::badge>
|
|
|
|
<x-filament::button
|
|
tag="a"
|
|
href="{{ url('/') }}"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
size="sm"
|
|
color="gray"
|
|
icon="heroicon-o-globe-alt"
|
|
>
|
|
网站
|
|
</x-filament::button>
|
|
|
|
<x-filament::button
|
|
tag="a"
|
|
:href="$createPostUrl"
|
|
size="sm"
|
|
color="primary"
|
|
icon="heroicon-o-pencil-square"
|
|
wire:navigate
|
|
>
|
|
写文章
|
|
</x-filament::button>
|
|
</div>
|