Files
laralog/resources/views/filament/hooks/topbar-tools.blade.php
T
gouki 16dac8b568
Build and Deploy / verify (push) Successful in 32s
Build and Deploy / deploy (push) Successful in 17s
feat: topbar legacy-sync button, card view mode with cover fallback, year/month/day archives, richer page cache admin, stylevar repeater editor
- 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
2026-10-13 09:01:46 +00:00

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>