mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 03:02:20 +00:00
30 lines
572 B
PHP
30 lines
572 B
PHP
<?php
|
|
|
|
namespace App\Web\Pages\Servers\FileManager;
|
|
|
|
use App\Web\Pages\Servers\Page;
|
|
|
|
class Index extends Page
|
|
{
|
|
protected static ?string $slug = 'servers/{server}/file-manager';
|
|
|
|
protected static ?string $title = 'File Manager';
|
|
|
|
/**
|
|
* @var array<string>
|
|
*/
|
|
protected $listeners = ['$refresh'];
|
|
|
|
public function mount(): void
|
|
{
|
|
$this->authorize('manage', $this->server);
|
|
}
|
|
|
|
public function getWidgets(): array
|
|
{
|
|
return [
|
|
[Widgets\FilesList::class, ['server' => $this->server]],
|
|
];
|
|
}
|
|
}
|