section basic

This commit is contained in:
xiaomlove
2022-10-27 20:21:54 +08:00
parent 0053d14183
commit ce5d99c16a
92 changed files with 3188 additions and 1367 deletions
+3
View File
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
+10 -1
View File
@@ -1 +1,10 @@
require('./bootstrap');
import Alpine from 'alpinejs'
import AlpineFloatingUI from '@awcodes/alpine-floating-ui'
import NotificationsAlpinePlugin from '../../vendor/filament/notifications/dist/module.esm'
Alpine.plugin(AlpineFloatingUI)
Alpine.plugin(NotificationsAlpinePlugin)
window.Alpine = Alpine
Alpine.start()
+3 -1
View File
@@ -24,9 +24,11 @@ return [
'torrent_deny_reason' => '拒绝原因',
'roles' => '角色',
'permissions' => '权限',
'section' => '分',
'section' => '分类模式',
'icon' => '分类图标',
'plugin' => '插件',
'category' => '主分类',
'second_icon' => '第二图标',
],
'resources' => [
'agent_allow' => [
+14 -1
View File
@@ -243,7 +243,7 @@ return [
],
],
'search_box' => [
'label' => '分',
'label' => '分类模式',
'name' => '名称',
'section_name' => '分区名称',
'section_name_help' => '若设置,显示在菜单上',
@@ -271,6 +271,8 @@ return [
'image' => '图片文件名',
'image_help' => '图片文件的名字。允许的字符:[a-z](小写),[0-9][_./]。',
'icon_id' => '分类图标',
'mode' => '分区',
'mode_help' => '留空表示适用于全部分区',
],
],
'icon' => [
@@ -301,4 +303,15 @@ return [
第二图标='是'
你应该将一个电影类型的图标(如'movies.png')文件放入'pic/category/chd/nanosofts/',将一个第二图标(如'bdh264.png')放入'pic/category/chd/nanosofts/additional/'。",
],
'second_icon' => [
'label' => '第二图标',
'name' => '名字',
'name_help' => '不要使用过长的名字。建议在10个字母内。',
'image' => "图片文件名",
'image_help' => "图片文件的名字。允许的字符:[a-z](小写),[0-9][_./]。",
'class_name' => 'class属性值',
'class_name_help' => "为图片指定class属性值。若无请留空。允许的字符: [a-z](小写),[0-9],[_],第一个字符必须是字母。",
'select_section' => '选择',
'select_section_help' => "如果某个选择未指定,其所有选项都符合此规则。必须至少指定一个选择。",
],
];
+1 -1
View File
@@ -8,7 +8,7 @@ return [
'sub_category_team_label' => '制作组',
'sub_category_processing_label' => '处理',
'sub_category_codec_label' => '编码',
'sub_category_audio_codec_label' => '音频编码',
'sub_category_audiocodec_label' => '音频编码',
'extras' => [
\App\Models\SearchBox::EXTRA_DISPLAY_COVER_ON_TORRENT_LIST => '种子列表页展示封面',
\App\Models\SearchBox::EXTRA_DISPLAY_SEED_BOX_ICON_ON_TORRENT_LIST => '种子列表页展示 SeedBox 图标',
@@ -1,11 +1,12 @@
<x-filament::page
:widget-data="['record' => $record]"
:class="\Illuminate\Support\Arr::toCssClasses([
'filament-resources-create-record-page',
'filament-resources-edit-record-page',
'filament-resources-' . str_replace('/', '-', $this->getResource()::getSlug()),
'filament-resources-record-' . $record->getKey(),
])"
>
@capture($form)
<x-filament::form wire:submit.prevent="save">
<div style="margin-bottom: 40px;white-space: pre-wrap">{!! $desc !!}</div>
<hr/>
@@ -16,10 +17,33 @@
:full-width="$this->hasFullWidthFormActions()"
/>
</x-filament::form>
@endcapture
@if (count($relationManagers = $this->getRelationManagers()))
<x-filament::hr />
@php
$relationManagers = $this->getRelationManagers();
@endphp
<x-filament::resources.relation-managers :active-manager="$activeRelationManager" :managers="$relationManagers" :owner-record="$record" :page-class="static::class" />
@if ((! $this->hasCombinedRelationManagerTabsWithForm()) || (! count($relationManagers)))
{{ $form() }}
@endif
@if (count($relationManagers))
@if (! $this->hasCombinedRelationManagerTabsWithForm())
<x-filament::hr />
@endif
<x-filament::resources.relation-managers
:active-manager="$activeRelationManager"
:form-tab-label="$this->getFormTabLabel()"
:managers="$relationManagers"
:owner-record="$record"
:page-class="static::class"
>
@if ($this->hasCombinedRelationManagerTabsWithForm())
<x-slot name="form">
{{ $form() }}
</x-slot>
@endif
</x-filament::resources.relation-managers>
@endif
</x-filament::page>