Rename columns
This commit is contained in:
parent
9baaff53cd
commit
145568237c
@ -60,7 +60,7 @@ class MakeNodeCommand extends Command
|
|||||||
$data['upload_size'] = $this->option('uploadSize') ?? $this->ask('Enter the maximum filesize upload', '100');
|
$data['upload_size'] = $this->option('uploadSize') ?? $this->ask('Enter the maximum filesize upload', '100');
|
||||||
$data['daemon_listen'] = $this->option('daemonListeningPort') ?? $this->ask('Enter the daemon listening port', '8080');
|
$data['daemon_listen'] = $this->option('daemonListeningPort') ?? $this->ask('Enter the daemon listening port', '8080');
|
||||||
$data['daemon_sftp'] = $this->option('daemonSFTPPort') ?? $this->ask('Enter the daemon SFTP listening port', '2022');
|
$data['daemon_sftp'] = $this->option('daemonSFTPPort') ?? $this->ask('Enter the daemon SFTP listening port', '2022');
|
||||||
$data['daemon_base'] = $this->option('daemonBase') ?? $this->ask('Enter the base folder', '/var/lib/panel/volumes');
|
$data['daemon_base'] = $this->option('daemonBase') ?? $this->ask('Enter the base folder', '/var/lib/pelican/volumes');
|
||||||
|
|
||||||
$node = $this->creationService->handle($data);
|
$node = $this->creationService->handle($data);
|
||||||
$this->line('Successfully created a new node with the name ' . $data['name'] . ' and has an id of ' . $node->id . '.');
|
$this->line('Successfully created a new node with the name ' . $data['name'] . ' and has an id of ' . $node->id . '.');
|
||||||
|
@ -43,17 +43,17 @@ class NodeResource extends Resource
|
|||||||
->required()
|
->required()
|
||||||
->integer()
|
->integer()
|
||||||
->default(100),
|
->default(100),
|
||||||
Forms\Components\TextInput::make('daemonListen')
|
Forms\Components\TextInput::make('daemon_listen')
|
||||||
->required()
|
->required()
|
||||||
->integer()
|
->integer()
|
||||||
->label('Daemon Port')
|
->label('Daemon Port')
|
||||||
->default(8080),
|
->default(8080),
|
||||||
Forms\Components\TextInput::make('daemonSFTP')
|
Forms\Components\TextInput::make('daemon_sftp')
|
||||||
->required()
|
->required()
|
||||||
->integer()
|
->integer()
|
||||||
->label('Daemon SFTP Port')
|
->label('Daemon SFTP Port')
|
||||||
->default(2022),
|
->default(2022),
|
||||||
Forms\Components\TextInput::make('daemonBase')
|
Forms\Components\TextInput::make('daemon_base')
|
||||||
->required()
|
->required()
|
||||||
->maxLength(191)
|
->maxLength(191)
|
||||||
->default('/home/daemon-files'),
|
->default('/home/daemon-files'),
|
||||||
|
@ -113,7 +113,7 @@ class CreateNode extends CreateRecord
|
|||||||
'lg' => 1,
|
'lg' => 1,
|
||||||
]),
|
]),
|
||||||
|
|
||||||
Forms\Components\TextInput::make('daemonListen')
|
Forms\Components\TextInput::make('daemon_listen')
|
||||||
->columnSpan([
|
->columnSpan([
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'sm' => 1,
|
'sm' => 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user