feat: 后台全中文(Filament zh_CN 语言包+资源中文label)+ 插件独立导航分组 + 插件/主题管理卡片化 + 主题预览图(无头浏览器生成)+ 两套主题移动端适配
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user