This commit is contained in:
Joao Patricio
2023-05-03 06:23:45 +01:00
parent e7763f3b73
commit 00a8c847e9
17 changed files with 621 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Livewire\Server;
use App\Models\Server;
use Livewire\Component;
class Proxy extends Component
{
public Server $server;
protected string $selectedProxy = '';
public function mount(Server $server)
{
$this->server = $server;
}
public function runInstallProxy()
{
$activity = remoteProcess(['ls -alh'], $this->server);
$this->emit('newMonitorActivity', $activity->id);
}
public function render()
{
return view('livewire.server.proxy');
}
}