Files
data-collection-terminal/management-panel/app/Filament/Pages/ManageExporter.php
2024-08-27 17:03:06 +08:00

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('exposer_bind')
->label('端口')
->required(),
TextInput::make('exposer_thread')
->label('线程')
->required(),
]),
]);
}
}