mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
Refactor the GitHub source UI into dedicated General, Permissions & Events, and Resources Livewire pages/components with route-based navigation. Also keeps permission/event refetch and resource listing behavior intact while improving page organization and adds feature coverage for the new pages.
25 lines
585 B
PHP
25 lines
585 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Source\Github\Tabs;
|
|
|
|
use App\Models\GithubApp;
|
|
use Illuminate\Support\Collection;
|
|
use Livewire\Component;
|
|
|
|
class Resources extends Component
|
|
{
|
|
public GithubApp $github_app;
|
|
|
|
public Collection $applications;
|
|
|
|
public function mount(string $githubAppUuid): void
|
|
{
|
|
$this->github_app = GithubApp::ownedByCurrentTeam()->whereUuid($githubAppUuid)->firstOrFail();
|
|
$this->applications = $this->github_app->applications;
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.source.github.tabs.resources');
|
|
}
|
|
}
|