Files
coolify/app/Livewire/Project/ProjectCanvas.php
T
6b07f03107 feat(terminal): interactive console mode for containers (docker attach) (#11538)
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>
2026-10-14 14:32:02 +02:00

39 lines
1.1 KiB
PHP

<?php
namespace App\Livewire\Project;
use App\Livewire\Concerns\CreatesEnvironments;
use App\Livewire\Concerns\RemembersCanvasView;
use App\Models\Project;
use Illuminate\Contracts\View\View;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Livewire\Attributes\Locked;
use Livewire\Component;
/**
* Read-only canvas of every environment of a project. The page is a shell:
* resources/js/environment-canvas.js renders it from Api\ProjectCanvasController
* at /canvas/api with the browser session.
*/
class ProjectCanvas extends Component
{
use AuthorizesRequests;
use CreatesEnvironments;
use RemembersCanvasView;
#[Locked]
public Project $project;
public function mount(string $project_uuid): void
{
$this->project = Project::ownedByCurrentTeam()->whereUuid($project_uuid)->firstOrFail();
$this->authorize('view', $this->project);
$this->rememberView('project', 'canvas');
}
public function render(): View
{
return view('livewire.project.project-canvas')->layout('layouts.app', ['fullBleed' => true]);
}
}