coolify/app/Livewire/Source/Github/Tabs/Resources.php
Andras Bacsai c7879da390 feat(github): split GitHub app source page into tabbed views
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.
2026-03-03 22:45:19 +01:00

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');
}
}