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.
28 lines
1.4 KiB
PHP
28 lines
1.4 KiB
PHP
<div>
|
|
<div class="flex flex-col sm:flex-row sm:items-center gap-2">
|
|
<h1>GitHub App</h1>
|
|
</div>
|
|
<div class="subtitle">{{ data_get($github_app, 'name') }}</div>
|
|
<div class="navbar-main mb-5">
|
|
<nav class="flex items-center gap-4 overflow-x-scroll sm:overflow-x-hidden scrollbar min-h-10 whitespace-nowrap pt-2">
|
|
<a class="{{ request()->routeIs('source.github.show') ? 'dark:text-white' : '' }}"
|
|
href="{{ route('source.github.show', ['github_app_uuid' => data_get($github_app, 'uuid')]) }}"
|
|
{{ wireNavigate() }}>
|
|
General
|
|
</a>
|
|
<a class="{{ request()->routeIs('source.github.permissions-events') ? 'dark:text-white' : '' }}"
|
|
href="{{ route('source.github.permissions-events', ['github_app_uuid' => data_get($github_app, 'uuid')]) }}"
|
|
{{ wireNavigate() }}>
|
|
Permissions & Events
|
|
</a>
|
|
<a class="{{ request()->routeIs('source.github.resources') ? 'dark:text-white' : '' }}"
|
|
href="{{ route('source.github.resources', ['github_app_uuid' => data_get($github_app, 'uuid')]) }}"
|
|
{{ wireNavigate() }}>
|
|
Resources
|
|
</a>
|
|
</nav>
|
|
</div>
|
|
|
|
<livewire:source.github.tabs.permissions-events :github-app-uuid="data_get($github_app, 'uuid')"
|
|
:key="'source-github-tab-permissions-events-'.data_get($github_app, 'uuid')" />
|
|
</div>
|