feat: 后台全中文(Filament zh_CN 语言包+资源中文label)+ 插件独立导航分组 + 插件/主题管理卡片化 + 主题预览图(无头浏览器生成)+ 两套主题移动端适配

This commit is contained in:
ak
2026-08-11 21:18:18 +08:00
parent d0ae0f60ad
commit 6c7562115f
332 changed files with 5455 additions and 39 deletions
@@ -21,6 +21,12 @@ class CategoryResource extends Resource
{
protected static \UnitEnum|string|null $navigationGroup = '内容';
protected static ?string $navigationLabel = '分类';
protected static ?string $modelLabel = '分类';
protected static ?string $pluralModelLabel = '分类';
protected static ?string $model = Category::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
@@ -21,6 +21,12 @@ class CommentResource extends Resource
{
protected static \UnitEnum|string|null $navigationGroup = '内容';
protected static ?string $navigationLabel = '评论';
protected static ?string $modelLabel = '评论';
protected static ?string $pluralModelLabel = '评论';
protected static ?string $model = Comment::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
@@ -21,6 +21,12 @@ class LinkResource extends Resource
{
protected static \UnitEnum|string|null $navigationGroup = '管理';
protected static ?string $navigationLabel = '友链';
protected static ?string $modelLabel = '友链';
protected static ?string $pluralModelLabel = '友链';
protected static ?string $model = Link::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
@@ -21,6 +21,12 @@ class MediaResource extends Resource
{
protected static \UnitEnum|string|null $navigationGroup = '管理';
protected static ?string $navigationLabel = '媒体';
protected static ?string $modelLabel = '媒体';
protected static ?string $pluralModelLabel = '媒体';
protected static ?string $model = Media::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
@@ -21,6 +21,12 @@ class PostResource extends Resource
{
protected static \UnitEnum|string|null $navigationGroup = '内容';
protected static ?string $navigationLabel = '文章';
protected static ?string $modelLabel = '文章';
protected static ?string $pluralModelLabel = '文章';
protected static ?string $model = Post::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
@@ -21,6 +21,12 @@ class UserResource extends Resource
{
protected static \UnitEnum|string|null $navigationGroup = '管理';
protected static ?string $navigationLabel = '用户';
protected static ?string $modelLabel = '用户';
protected static ?string $pluralModelLabel = '用户';
protected static ?string $model = User::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;