feat: restore sablog browse modes and clean imported HTML
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>
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<x-filament-panels::page>
|
||||
<x-filament::section heading="当前语言">
|
||||
<dl class="grid gap-3 sm:grid-cols-3">
|
||||
<div>
|
||||
<dt class="text-sm text-gray-500 dark:text-gray-400">站点语言</dt>
|
||||
<dd class="mt-1 text-lg font-medium">{{ $this->info['locale'] }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-sm text-gray-500 dark:text-gray-400">回退语言</dt>
|
||||
<dd class="mt-1 text-lg font-medium">{{ $this->info['fallback'] }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-sm text-gray-500 dark:text-gray-400">假数据语言</dt>
|
||||
<dd class="mt-1 text-lg font-medium">{{ $this->info['faker'] }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
<p class="mt-4 text-sm text-gray-500 dark:text-gray-400">
|
||||
改语言请编辑 <code>.env</code> 里的 <code>APP_LOCALE</code>,后台菜单文案本身是中文写死的。
|
||||
</p>
|
||||
</x-filament::section>
|
||||
|
||||
<x-filament::section heading="文章多语言" class="mt-6">
|
||||
<x-filament::badge color="warning">未开通</x-filament::badge>
|
||||
<p class="mt-3 text-sm text-gray-600 dark:text-gray-300">
|
||||
现在每篇文章只有一份正文,没有中英两个版本可以切换。这个页面先让你看到现状,以后如果做文章翻译,会在这里列出语言和对应文章。
|
||||
</p>
|
||||
</x-filament::section>
|
||||
|
||||
<div class="mt-6 grid gap-6 lg:grid-cols-2">
|
||||
<x-filament::section heading="站点语言包">
|
||||
@if(count($this->info['app_files']) === 0)
|
||||
<p class="text-sm text-gray-500 dark:text-gray-400">还没有站点自己的语言文件。</p>
|
||||
@else
|
||||
<div class="flex flex-wrap gap-2">
|
||||
@foreach($this->info['app_files'] as $locale)
|
||||
<x-filament::badge>{{ $locale }}</x-filament::badge>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</x-filament::section>
|
||||
|
||||
<x-filament::section heading="Filament 后台语言包">
|
||||
<p class="mb-3 text-sm text-gray-500 dark:text-gray-400">
|
||||
这些是后台组件自带的翻译,不是文章内容翻译。
|
||||
</p>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
@foreach($this->info['filament_locales'] as $locale)
|
||||
<x-filament::badge color="gray">{{ $locale }}</x-filament::badge>
|
||||
@endforeach
|
||||
</div>
|
||||
</x-filament::section>
|
||||
</div>
|
||||
</x-filament-panels::page>
|
||||
Reference in New Issue
Block a user