
* feat(README): add InterviewPal sponsorship link and corresponding SVG icon * chore(versions): update coolify version to 4.0.0-beta.413 and nightly version to 4.0.0-beta.414 in configuration files * fix(terminal): enhance WebSocket client verification with authorized IPs in terminal server * chore(versions): update realtime version to 1.0.8 in versions.json * chore(versions): update realtime version to 1.0.8 in versions.json * chore(docker): update soketi image version to 1.0.8 in production configuration files * chore(versions): update coolify version to 4.0.0-beta.414 and nightly version to 4.0.0-beta.415 in configuration files * fix(ApplicationDeploymentJob): ensure source is an object before checking GitHub app properties * fix(ui): Disable livewire navigate feature (causing spam of setInterval()) * fix(ui): Remove required attribute from image input in service application view * fix(ui): Change application image validation to be nullable in service application view * fix(Server): Correct proxy path formatting for Traefik proxy type
41 lines
956 B
PHP
41 lines
956 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Project;
|
|
|
|
use App\Models\PrivateKey;
|
|
use App\Models\Project;
|
|
use App\Models\Server;
|
|
use Livewire\Component;
|
|
|
|
class Index extends Component
|
|
{
|
|
public $projects;
|
|
|
|
public $servers;
|
|
|
|
public $private_keys;
|
|
|
|
public function mount()
|
|
{
|
|
$this->private_keys = PrivateKey::ownedByCurrentTeam()->get();
|
|
$this->projects = Project::ownedByCurrentTeam()->get()->map(function ($project) {
|
|
$project->settingsRoute = route('project.edit', ['project_uuid' => $project->uuid]);
|
|
|
|
return $project;
|
|
});
|
|
$this->servers = Server::ownedByCurrentTeam()->count();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.project.index');
|
|
}
|
|
|
|
public function navigateToProject($projectUuid)
|
|
{
|
|
$project = collect($this->projects)->firstWhere('uuid', $projectUuid);
|
|
|
|
return $this->redirect($project->navigateTo(), navigate: false);
|
|
}
|
|
}
|