From 4ff184881660dc1ae3de2273da44714ffc5fa10b Mon Sep 17 00:00:00 2001 From: ak Date: Wed, 12 Aug 2026 04:04:13 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=8F=92=E4=BB=B6=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E8=A7=86=E8=A7=89=E5=B1=82=E7=BA=A7=E9=87=8D=E6=9E=84=EF=BC=88?= =?UTF-8?q?=E6=A0=87=E9=A2=98/=E5=85=83=E4=BF=A1=E6=81=AF/=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0/=E6=93=8D=E4=BD=9C=E5=8C=BA=E5=88=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 已安装插件卡片:图标块 + 标题 + vendor/版本元信息 + 状态徽章同一行(清晰层级),描述独立文本块,操作区与内容用分隔线隔开 - 插件市场卡片统一同款风格;全部关键布局用内联样式保证渲染稳定 --- .../views/filament/pages/plugins.blade.php | 88 +++++++++++-------- 1 file changed, 53 insertions(+), 35 deletions(-) diff --git a/resources/views/filament/pages/plugins.blade.php b/resources/views/filament/pages/plugins.blade.php index 4ad3be5..45e89ee 100644 --- a/resources/views/filament/pages/plugins.blade.php +++ b/resources/views/filament/pages/plugins.blade.php @@ -1,32 +1,41 @@ -
+
@forelse($this->plugins as $plugin) - -
-
- - @if($plugin['enabled']) - 已启用 - @else - 已停用 - @endif + +
+ {{-- 头部:图标 + 标题 + 元信息 + 状态 --}} +
+
+ +
+
+

{{ $plugin['title'] }}

+

{{ $plugin['vendor'] }}.{{ $plugin['name'] }} · v{{ $plugin['version'] }}

+
+
+ @if($plugin['enabled']) + 已启用 + @else + 已停用 + @endif +
-

{{ $plugin['title'] }}

-

{{ $plugin['description'] }}

-

v{{ $plugin['version'] }} · {{ $plugin['vendor'] }}.{{ $plugin['name'] }}

+ {{-- 描述 --}} +

{{ $plugin['description'] }}

@if(! empty($plugin['usage'])) -
- 使用说明 -
{{ $plugin['usage'] }}
+
+ 使用说明 +
{{ $plugin['usage'] }}
@endif + {{-- 依赖状态 --}} @if(! empty($plugin['dependencies'])) -
- 依赖: +
+ 依赖: @foreach($plugin['dependencies'] as $dep) {{ $dep['title'] }}@if(! $dep['ok'])({{ $dep['reason'] }})@endif @@ -35,7 +44,8 @@
@endif -
+ {{-- 操作区 --}} +
@if($plugin['enabled']) 停用 @elseif(empty($plugin['dependency_errors'])) @@ -50,7 +60,7 @@
@empty -

暂无插件

+

暂无插件

@endforelse
@@ -71,23 +81,31 @@
刷新市场
-
+
@forelse($marketItems as $index => $item) @php $marketPaid = $item['price'] > 0; @endphp - -
-
- - @if($marketPaid) - ¥{{ number_format($item['price'] / 100, 2) }} - @else - 免费 - @endif + +
+
+
+ +
+
+

{{ $item['title'] ?? $item['name'] }}

+

{{ $item['version'] ?? '' }}@if(! empty($item['author'])) · {{ $item['author'] }}@endif

+
+
+ @if($marketPaid) + ¥{{ number_format($item['price'] / 100, 2) }} + @else + 免费 + @endif +
-

{{ $item['title'] ?? $item['name'] }}

-

{{ $item['description'] ?? '' }}

-

{{ $item['version'] ?? '' }} · {{ $item['author'] ?? '' }}

-
+ +

{{ $item['description'] ?? '' }}

+ +
@if($marketPaid && ! $this->isMarketPurchased($index)) 购买 @elseif($marketPaid) @@ -98,7 +116,7 @@
@empty -

点击「刷新市场」拉取可用插件

+

点击「刷新市场」拉取可用插件

@endforelse