feat: 注入块拖拽排序(后台顺序即渲染顺序)+ theme.json 声明 inject_points + 主题卡片展示注入点

This commit is contained in:
ak
2026-08-11 23:25:34 +08:00
parent 3e3b9a2bfd
commit d9a6ca2959
16 changed files with 57 additions and 7 deletions
@@ -29,6 +29,14 @@
<p class="mt-1 flex-1 text-sm text-gray-500 dark:text-gray-400">{{ $theme['description'] }}</p>
<p class="mt-1 text-xs text-gray-400">{{ $theme['author'] }}</p>
@if($theme['inject_points'])
<div class="mt-3 flex flex-wrap gap-1">
@foreach($theme['inject_points'] as $point)
<x-filament::badge color="gray" size="xs">{{ $point }}</x-filament::badge>
@endforeach
</div>
@endif
<div class="mt-4 flex gap-2">
@if(! $theme['active'])
<x-filament::button size="sm" color="primary" wire:click="activateTheme('{{ $theme['name'] }}')">启用</x-filament::button>