mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Built-in File Manager (#458)
This commit is contained in:
26
app/Web/Pages/Servers/FileManager/Index.php
Normal file
26
app/Web/Pages/Servers/FileManager/Index.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?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';
|
||||
|
||||
protected $listeners = ['$refresh'];
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->authorize('update', $this->server);
|
||||
}
|
||||
|
||||
public function getWidgets(): array
|
||||
{
|
||||
return [
|
||||
[Widgets\FilesList::class, ['server' => $this->server]],
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user