46 lines
1.3 KiB
PHP
46 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Pages;
|
|
|
|
use App\Settings\ExporterSettings;
|
|
use Filament\Forms;
|
|
use Filament\Forms\Form;
|
|
use Filament\Pages\SettingsPage;
|
|
use Filament\Forms\Components\TextInput;
|
|
|
|
use App\Services\EtcdService;
|
|
use App\Settings\DataSourceSettings;
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\Toggle;
|
|
use Filament\Forms\Components\Textarea;
|
|
use Filament\Forms\Components\Fieldset;
|
|
|
|
class ManageExporter extends SettingsPage
|
|
{
|
|
protected static ?string $navigationIcon = 'heroicon-o-cog-6-tooth';
|
|
|
|
protected static string $settings = ExporterSettings::class;
|
|
|
|
protected static ?string $navigationLabel = 'Exporter配置管理'; // 设置侧边栏的中文名称
|
|
|
|
protected static ?string $title = 'Exporter配置管理'; // 自定义页面标题
|
|
|
|
|
|
public function form(Form $form): Form
|
|
{
|
|
return $form
|
|
->schema([
|
|
Fieldset::make()
|
|
->schema([
|
|
TextInput::make('exporter_bind')
|
|
->label('地址及端口')
|
|
->required(),
|
|
TextInput::make('exporter_thread')
|
|
->label('线程')
|
|
->required(),
|
|
]),
|
|
|
|
]);
|
|
}
|
|
}
|