mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-14 00:33:44 -04:00
Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: rosslh <ross@rosshill.ca>
32 lines
635 B
PHP
32 lines
635 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Server;
|
|
|
|
use App\Livewire\Concerns\RemembersCanvasView;
|
|
use App\Models\Server;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Livewire\Component;
|
|
|
|
class Index extends Component
|
|
{
|
|
use RemembersCanvasView;
|
|
|
|
public ?Collection $servers = null;
|
|
|
|
public function mount(): void
|
|
{
|
|
if ($this->prefersCanvasView('servers')) {
|
|
$this->redirectRoute('server.canvas.index', navigate: true);
|
|
|
|
return;
|
|
}
|
|
|
|
$this->servers = Server::ownedByCurrentTeamCached();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.server.index');
|
|
}
|
|
}
|