feat: 注入块拖拽排序(后台顺序即渲染顺序)+ theme.json 声明 inject_points + 主题卡片展示注入点
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user