- topbar: Livewire LegacySyncButton next to 写文章 (moved from user menu) - view modes: add 图文(card) grid with cover fallback chain (cover → attachment → first content image → placeholder); list mode now title-only compact - archives: year/month/day index grid - page cache admin: size + expiry columns, total size, cache policy note - theme inject: stylevars switch from KeyValue to Repeater with multi-line HTML editing - import: html_entity_decode for category/post-title/link/keywords/comment author
37 lines
930 B
PHP
37 lines
930 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>
|
|
|
|
<livewire:legacy-sync-button />
|
|
</div>
|