Files
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

38 lines
1.0 KiB
PHP

<?php
namespace App\Livewire\Project;
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 project of the team. The page is a shell:
* resources/js/environment-canvas.js renders it from Api\ProjectCanvasController
* at /canvas/api with the browser session.
*/
class ProjectsCanvas extends Component
{
use AuthorizesRequests;
use RemembersCanvasView;
/** The team that owned the page at mount; the canvas API calls use it, not the session team. */
#[Locked]
public int $teamId;
public function mount(): void
{
$this->authorize('viewAny', Project::class);
$this->teamId = currentTeam()->id;
$this->rememberView('projects', 'canvas');
}
public function render(): View
{
return view('livewire.project.projects-canvas')->layout('layouts.app', ['fullBleed' => true]);
}
}