fix: more wire:navigate
This commit is contained in:
		@@ -4,22 +4,27 @@
 | 
				
			|||||||
    <div class="navbar-main">
 | 
					    <div class="navbar-main">
 | 
				
			||||||
        <nav class="flex items-center gap-6 min-h-10">
 | 
					        <nav class="flex items-center gap-6 min-h-10">
 | 
				
			||||||
            <a class="{{ request()->routeIs('notifications.email') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('notifications.email') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('notifications.email') }}">
 | 
					                href="{{ route('notifications.email') }}">
 | 
				
			||||||
                <button>Email</button>
 | 
					                <button>Email</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a class="{{ request()->routeIs('notifications.discord') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('notifications.discord') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('notifications.discord') }}">
 | 
					                href="{{ route('notifications.discord') }}">
 | 
				
			||||||
                <button>Discord</button>
 | 
					                <button>Discord</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
             <a class="{{ request()->routeIs('notifications.telegram') ? 'dark:text-white' : '' }}"
 | 
					             <a class="{{ request()->routeIs('notifications.telegram') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('notifications.telegram') }}">
 | 
					                href="{{ route('notifications.telegram') }}">
 | 
				
			||||||
                <button>Telegram</button>
 | 
					                <button>Telegram</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a class="{{ request()->routeIs('notifications.slack') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('notifications.slack') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('notifications.slack') }}">
 | 
					                href="{{ route('notifications.slack') }}">
 | 
				
			||||||
                <button>Slack</button>
 | 
					                <button>Slack</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a class="{{ request()->routeIs('notifications.pushover') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('notifications.pushover') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('notifications.pushover') }}">
 | 
					                href="{{ route('notifications.pushover') }}">
 | 
				
			||||||
                <button>Pushover</button>
 | 
					                <button>Pushover</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,10 +3,10 @@
 | 
				
			|||||||
    <div class="subtitle">Security related settings.</div>
 | 
					    <div class="subtitle">Security related settings.</div>
 | 
				
			||||||
    <div class="navbar-main">
 | 
					    <div class="navbar-main">
 | 
				
			||||||
        <nav class="flex items-center gap-6 scrollbar min-h-10">
 | 
					        <nav class="flex items-center gap-6 scrollbar min-h-10">
 | 
				
			||||||
            <a href="{{ route('security.private-key.index') }}">
 | 
					            <a wire:navigate href="{{ route('security.private-key.index') }}">
 | 
				
			||||||
                <button>Private Keys</button>
 | 
					                <button>Private Keys</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a href="{{ route('security.api-tokens') }}">
 | 
					            <a wire:navigate href="{{ route('security.api-tokens') }}">
 | 
				
			||||||
                <button>API tokens</button>
 | 
					                <button>API tokens</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
        </nav>
 | 
					        </nav>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,7 @@
 | 
				
			|||||||
    <div class="subtitle">{{ data_get($server, 'name') }}</div>
 | 
					    <div class="subtitle">{{ data_get($server, 'name') }}</div>
 | 
				
			||||||
    <div class="navbar-main">
 | 
					    <div class="navbar-main">
 | 
				
			||||||
        <nav class="flex items-center gap-6 overflow-x-scroll sm:overflow-x-hidden scrollbar min-h-10 whitespace-nowrap">
 | 
					        <nav class="flex items-center gap-6 overflow-x-scroll sm:overflow-x-hidden scrollbar min-h-10 whitespace-nowrap">
 | 
				
			||||||
            <a class="{{ request()->routeIs('server.show') ? 'dark:text-white' : '' }}"
 | 
					            <a wire:navigate class="{{ request()->routeIs('server.show') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
                href="{{ route('server.show', [
 | 
					                href="{{ route('server.show', [
 | 
				
			||||||
                    'server_uuid' => data_get($server, 'uuid'),
 | 
					                    'server_uuid' => data_get($server, 'uuid'),
 | 
				
			||||||
                ]) }}">
 | 
					                ]) }}">
 | 
				
			||||||
@@ -26,20 +26,20 @@
 | 
				
			|||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            @if (!$server->isSwarmWorker() && !$server->settings->is_build_server)
 | 
					            @if (!$server->isSwarmWorker() && !$server->settings->is_build_server)
 | 
				
			||||||
                <a class="{{ request()->routeIs('server.proxy') ? 'dark:text-white' : '' }}"
 | 
					                <a wire:navigate class="{{ request()->routeIs('server.proxy') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
                    href="{{ route('server.proxy', [
 | 
					                    href="{{ route('server.proxy', [
 | 
				
			||||||
                        'server_uuid' => data_get($server, 'uuid'),
 | 
					                        'server_uuid' => data_get($server, 'uuid'),
 | 
				
			||||||
                    ]) }}">
 | 
					                    ]) }}">
 | 
				
			||||||
                    <button>Proxy</button>
 | 
					                    <button>Proxy</button>
 | 
				
			||||||
                </a>
 | 
					                </a>
 | 
				
			||||||
            @endif
 | 
					            @endif
 | 
				
			||||||
            <a class="{{ request()->routeIs('server.resources') ? 'dark:text-white' : '' }}"
 | 
					            <a wire:navigate class="{{ request()->routeIs('server.resources') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
                href="{{ route('server.resources', [
 | 
					                href="{{ route('server.resources', [
 | 
				
			||||||
                    'server_uuid' => data_get($server, 'uuid'),
 | 
					                    'server_uuid' => data_get($server, 'uuid'),
 | 
				
			||||||
                ]) }}">
 | 
					                ]) }}">
 | 
				
			||||||
                <button>Resources</button>
 | 
					                <button>Resources</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a class="{{ request()->routeIs('server.command') ? 'dark:text-white' : '' }}"
 | 
					            <a wire:navigate class="{{ request()->routeIs('server.command') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
                href="{{ route('server.command', [
 | 
					                href="{{ route('server.command', [
 | 
				
			||||||
                    'server_uuid' => data_get($server, 'uuid'),
 | 
					                    'server_uuid' => data_get($server, 'uuid'),
 | 
				
			||||||
                ]) }}">
 | 
					                ]) }}">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,14 +1,14 @@
 | 
				
			|||||||
@if ($server->proxySet())
 | 
					@if ($server->proxySet())
 | 
				
			||||||
    <div class="flex flex-col items-start gap-2 min-w-fit">
 | 
					    <div class="flex flex-col items-start gap-2 min-w-fit">
 | 
				
			||||||
        <a class="{{ request()->routeIs('server.proxy') ? 'menu-item menu-item-active' : 'menu-item' }}"
 | 
					        <a wire:navigate class="{{ request()->routeIs('server.proxy') ? 'menu-item menu-item-active' : 'menu-item' }}"
 | 
				
			||||||
            href="{{ route('server.proxy', $parameters) }}">
 | 
					            href="{{ route('server.proxy', $parameters) }}">
 | 
				
			||||||
            <button>Configuration</button>
 | 
					            <button>Configuration</button>
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
        <a class="{{ request()->routeIs('server.proxy.dynamic-confs') ? 'menu-item menu-item-active' : 'menu-item' }}"
 | 
					        <a wire:navigate class="{{ request()->routeIs('server.proxy.dynamic-confs') ? 'menu-item menu-item-active' : 'menu-item' }}"
 | 
				
			||||||
            href="{{ route('server.proxy.dynamic-confs', $parameters) }}">
 | 
					            href="{{ route('server.proxy.dynamic-confs', $parameters) }}">
 | 
				
			||||||
            <button>Dynamic Configurations</button>
 | 
					            <button>Dynamic Configurations</button>
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
        <a class="{{ request()->routeIs('server.proxy.logs') ? 'menu-item menu-item-active' : 'menu-item' }}"
 | 
					        <a wire:navigate class="{{ request()->routeIs('server.proxy.logs') ? 'menu-item menu-item-active' : 'menu-item' }}"
 | 
				
			||||||
            href="{{ route('server.proxy.logs', $parameters) }}">
 | 
					            href="{{ route('server.proxy.logs', $parameters) }}">
 | 
				
			||||||
            <button>Logs</button>
 | 
					            <button>Logs</button>
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,31 +1,31 @@
 | 
				
			|||||||
<div class="flex flex-col items-start gap-2 min-w-fit">
 | 
					<div class="flex flex-col items-start gap-2 min-w-fit">
 | 
				
			||||||
    <a class="menu-item {{ $activeMenu === 'general' ? 'menu-item-active' : '' }}"
 | 
					    <a wire:navigate class="menu-item {{ $activeMenu === 'general' ? 'menu-item-active' : '' }}"
 | 
				
			||||||
        href="{{ route('server.show', ['server_uuid' => $server->uuid]) }}">General</a>
 | 
					        href="{{ route('server.show', ['server_uuid' => $server->uuid]) }}">General</a>
 | 
				
			||||||
    @if ($server->isFunctional())
 | 
					    @if ($server->isFunctional())
 | 
				
			||||||
        <a class="menu-item {{ $activeMenu === 'advanced' ? 'menu-item-active' : '' }}"
 | 
					        <a wire:navigate class="menu-item {{ $activeMenu === 'advanced' ? 'menu-item-active' : '' }}"
 | 
				
			||||||
            href="{{ route('server.advanced', ['server_uuid' => $server->uuid]) }}">Advanced
 | 
					            href="{{ route('server.advanced', ['server_uuid' => $server->uuid]) }}">Advanced
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
    <a class="menu-item {{ $activeMenu === 'private-key' ? 'menu-item-active' : '' }}"
 | 
					    <a wire:navigate class="menu-item {{ $activeMenu === 'private-key' ? 'menu-item-active' : '' }}"
 | 
				
			||||||
        href="{{ route('server.private-key', ['server_uuid' => $server->uuid]) }}">Private Key
 | 
					        href="{{ route('server.private-key', ['server_uuid' => $server->uuid]) }}">Private Key
 | 
				
			||||||
    </a>
 | 
					    </a>
 | 
				
			||||||
    @if (!$server->isLocalhost())
 | 
					    @if (!$server->isLocalhost())
 | 
				
			||||||
        <a class="menu-item {{ $activeMenu === 'cloudflare-tunnels' ? 'menu-item-active' : '' }}"
 | 
					        <a wire:navigate class="menu-item {{ $activeMenu === 'cloudflare-tunnels' ? 'menu-item-active' : '' }}"
 | 
				
			||||||
            href="{{ route('server.cloudflare-tunnels', ['server_uuid' => $server->uuid]) }}">Cloudflare
 | 
					            href="{{ route('server.cloudflare-tunnels', ['server_uuid' => $server->uuid]) }}">Cloudflare
 | 
				
			||||||
            Tunnels</a>
 | 
					            Tunnels</a>
 | 
				
			||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
    @if ($server->isFunctional())
 | 
					    @if ($server->isFunctional())
 | 
				
			||||||
        <a class="menu-item {{ $activeMenu === 'destinations' ? 'menu-item-active' : '' }}"
 | 
					        <a wire:navigate class="menu-item {{ $activeMenu === 'destinations' ? 'menu-item-active' : '' }}"
 | 
				
			||||||
            href="{{ route('server.destinations', ['server_uuid' => $server->uuid]) }}">Destinations
 | 
					            href="{{ route('server.destinations', ['server_uuid' => $server->uuid]) }}">Destinations
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
        <a class="menu-item {{ $activeMenu === 'log-drains' ? 'menu-item-active' : '' }}"
 | 
					        <a wire:navigate class="menu-item {{ $activeMenu === 'log-drains' ? 'menu-item-active' : '' }}"
 | 
				
			||||||
            href="{{ route('server.log-drains', ['server_uuid' => $server->uuid]) }}">Log
 | 
					            href="{{ route('server.log-drains', ['server_uuid' => $server->uuid]) }}">Log
 | 
				
			||||||
            Drains</a>
 | 
					            Drains</a>
 | 
				
			||||||
        <a class="menu-item {{ $activeMenu === 'metrics' ? 'menu-item-active' : '' }}"
 | 
					        <a wire:navigate class="menu-item {{ $activeMenu === 'metrics' ? 'menu-item-active' : '' }}"
 | 
				
			||||||
            href="{{ route('server.charts', ['server_uuid' => $server->uuid]) }}">Metrics</a>
 | 
					            href="{{ route('server.charts', ['server_uuid' => $server->uuid]) }}">Metrics</a>
 | 
				
			||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
    @if (!$server->isLocalhost())
 | 
					    @if (!$server->isLocalhost())
 | 
				
			||||||
        <a class="menu-item {{ $activeMenu === 'danger' ? 'menu-item-active' : '' }}"
 | 
					        <a wire:navigate class="menu-item {{ $activeMenu === 'danger' ? 'menu-item-active' : '' }}"
 | 
				
			||||||
            href="{{ route('server.delete', ['server_uuid' => $server->uuid]) }}">Danger</a>
 | 
					            href="{{ route('server.delete', ['server_uuid' => $server->uuid]) }}">Danger</a>
 | 
				
			||||||
    @endif
 | 
					    @endif
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,18 +4,20 @@
 | 
				
			|||||||
    <div class="navbar-main">
 | 
					    <div class="navbar-main">
 | 
				
			||||||
        <nav class="flex items-center gap-6 min-h-10 whitespace-nowrap">
 | 
					        <nav class="flex items-center gap-6 min-h-10 whitespace-nowrap">
 | 
				
			||||||
            <a class="{{ request()->routeIs('settings.index') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('settings.index') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('settings.index') }}">
 | 
					                href="{{ route('settings.index') }}">
 | 
				
			||||||
                <button>Configuration</button>
 | 
					                <button>Configuration</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a class="{{ request()->routeIs('settings.backup') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('settings.backup') ? 'dark:text-white' : '' }}"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('settings.backup') }}">
 | 
					                href="{{ route('settings.backup') }}">
 | 
				
			||||||
                <button>Backup</button>
 | 
					                <button>Backup</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a class="{{ request()->routeIs('settings.email') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('settings.email') ? 'dark:text-white' : '' }}" wire:navigate
 | 
				
			||||||
                href="{{ route('settings.email') }}">
 | 
					                href="{{ route('settings.email') }}">
 | 
				
			||||||
                <button>Transactional Email</button>
 | 
					                <button>Transactional Email</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a class="{{ request()->routeIs('settings.oauth') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('settings.oauth') ? 'dark:text-white' : '' }}" wire:navigate
 | 
				
			||||||
                href="{{ route('settings.oauth') }}">
 | 
					                href="{{ route('settings.oauth') }}">
 | 
				
			||||||
                <button>OAuth</button>
 | 
					                <button>OAuth</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,15 +8,16 @@
 | 
				
			|||||||
    <div class="subtitle">Team wide configurations.</div>
 | 
					    <div class="subtitle">Team wide configurations.</div>
 | 
				
			||||||
    <div class="navbar-main">
 | 
					    <div class="navbar-main">
 | 
				
			||||||
        <nav class="flex items-center gap-6 min-h-10">
 | 
					        <nav class="flex items-center gap-6 min-h-10">
 | 
				
			||||||
            <a class="{{ request()->routeIs('team.index') ? 'dark:text-white' : '' }}" href="{{ route('team.index') }}">
 | 
					            <a class="{{ request()->routeIs('team.index') ? 'dark:text-white' : '' }}" wire:navigate
 | 
				
			||||||
 | 
					                href="{{ route('team.index') }}">
 | 
				
			||||||
                <button>General</button>
 | 
					                <button>General</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            <a class="{{ request()->routeIs('team.member.index') ? 'dark:text-white' : '' }}"
 | 
					            <a class="{{ request()->routeIs('team.member.index') ? 'dark:text-white' : '' }}" wire:navigate
 | 
				
			||||||
                href="{{ route('team.member.index') }}">
 | 
					                href="{{ route('team.member.index') }}">
 | 
				
			||||||
                <button>Members</button>
 | 
					                <button>Members</button>
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
            @if (isInstanceAdmin())
 | 
					            @if (isInstanceAdmin())
 | 
				
			||||||
                <a class="{{ request()->routeIs('team.admin-view') ? 'dark:text-white' : '' }}"
 | 
					                <a class="{{ request()->routeIs('team.admin-view') ? 'dark:text-white' : '' }}" wire:navigate
 | 
				
			||||||
                    href="{{ route('team.admin-view') }}">
 | 
					                    href="{{ route('team.admin-view') }}">
 | 
				
			||||||
                    <button>Admin View</button>
 | 
					                    <button>Admin View</button>
 | 
				
			||||||
                </a>
 | 
					                </a>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,7 +15,7 @@
 | 
				
			|||||||
        @forelse ($servers as $server)
 | 
					        @forelse ($servers as $server)
 | 
				
			||||||
            @forelse ($server->destinations() as $destination)
 | 
					            @forelse ($server->destinations() as $destination)
 | 
				
			||||||
                @if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
 | 
					                @if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
 | 
				
			||||||
                    <a class="box group"
 | 
					                    <a class="box group" wire:navigate
 | 
				
			||||||
                        href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
 | 
					                        href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
 | 
				
			||||||
                        <div class="flex flex-col mx-6">
 | 
					                        <div class="flex flex-col mx-6">
 | 
				
			||||||
                            <div class="box-title">{{ $destination->name }}</div>
 | 
					                            <div class="box-title">{{ $destination->name }}</div>
 | 
				
			||||||
@@ -24,7 +24,7 @@
 | 
				
			|||||||
                    </a>
 | 
					                    </a>
 | 
				
			||||||
                @endif
 | 
					                @endif
 | 
				
			||||||
                @if ($destination->getMorphClass() === 'App\Models\SwarmDocker')
 | 
					                @if ($destination->getMorphClass() === 'App\Models\SwarmDocker')
 | 
				
			||||||
                    <a class="box group"
 | 
					                    <a class="box group" wire:navigate
 | 
				
			||||||
                        href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
 | 
					                        href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
 | 
				
			||||||
                        <div class="flex flex-col mx-6">
 | 
					                        <div class="flex flex-col mx-6">
 | 
				
			||||||
                            <div class="box-title">{{ $destination->name }}</div>
 | 
					                            <div class="box-title">{{ $destination->name }}</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,10 +17,10 @@
 | 
				
			|||||||
    <div class="text-xs truncate subtitle lg:text-sm">{{ $project->name }}.</div>
 | 
					    <div class="text-xs truncate subtitle lg:text-sm">{{ $project->name }}.</div>
 | 
				
			||||||
    <div class="grid gap-2 lg:grid-cols-2">
 | 
					    <div class="grid gap-2 lg:grid-cols-2">
 | 
				
			||||||
        @forelse ($project->environments->sortBy('created_at') as $environment)
 | 
					        @forelse ($project->environments->sortBy('created_at') as $environment)
 | 
				
			||||||
            <div class="gap-2 border border-transparent cursor-pointer box group"
 | 
					            <div class="gap-2 border border-transparent box group">
 | 
				
			||||||
                wire:click="navigateToEnvironment('{{ $project->uuid }}', '{{ $environment->uuid }}')">
 | 
					 | 
				
			||||||
                <div class="flex flex-1 mx-6">
 | 
					                <div class="flex flex-1 mx-6">
 | 
				
			||||||
                    <a class="flex flex-col justify-center flex-1"
 | 
					                    <a class="flex flex-col justify-center flex-1"
 | 
				
			||||||
 | 
					                        wire:navigate
 | 
				
			||||||
                        href="{{ route('project.resource.index', ['project_uuid' => $project->uuid, 'environment_uuid' => $environment->uuid]) }}">
 | 
					                        href="{{ route('project.resource.index', ['project_uuid' => $project->uuid, 'environment_uuid' => $environment->uuid]) }}">
 | 
				
			||||||
                        <div class="font-bold dark:text-white"> {{ $environment->name }}</div>
 | 
					                        <div class="font-bold dark:text-white"> {{ $environment->name }}</div>
 | 
				
			||||||
                        <div class="description">
 | 
					                        <div class="description">
 | 
				
			||||||
@@ -28,6 +28,7 @@
 | 
				
			|||||||
                    </a>
 | 
					                    </a>
 | 
				
			||||||
                    <div class="flex items-center justify-center gap-2 text-xs">
 | 
					                    <div class="flex items-center justify-center gap-2 text-xs">
 | 
				
			||||||
                        <a class="font-bold hover:underline"
 | 
					                        <a class="font-bold hover:underline"
 | 
				
			||||||
 | 
					                            wire:navigate
 | 
				
			||||||
                            href="{{ route('project.environment.edit', ['project_uuid' => $project->uuid, 'environment_uuid' => $environment->uuid]) }}">
 | 
					                            href="{{ route('project.environment.edit', ['project_uuid' => $project->uuid, 'environment_uuid' => $environment->uuid]) }}">
 | 
				
			||||||
                            Settings
 | 
					                            Settings
 | 
				
			||||||
                        </a>
 | 
					                        </a>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,6 +19,7 @@
 | 
				
			|||||||
    <div class="grid gap-2 lg:grid-cols-2">
 | 
					    <div class="grid gap-2 lg:grid-cols-2">
 | 
				
			||||||
        @forelse ($privateKeys as $key)
 | 
					        @forelse ($privateKeys as $key)
 | 
				
			||||||
            <a class="box group"
 | 
					            <a class="box group"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($key, 'uuid')]) }}">
 | 
					                href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($key, 'uuid')]) }}">
 | 
				
			||||||
                <div class="flex flex-col mx-6">
 | 
					                <div class="flex flex-col mx-6">
 | 
				
			||||||
                    <div class="box-title">
 | 
					                    <div class="box-title">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@
 | 
				
			|||||||
    <div class="subtitle">All your servers are here.</div>
 | 
					    <div class="subtitle">All your servers are here.</div>
 | 
				
			||||||
    <div class="grid gap-2 lg:grid-cols-2">
 | 
					    <div class="grid gap-2 lg:grid-cols-2">
 | 
				
			||||||
        @forelse ($servers as $server)
 | 
					        @forelse ($servers as $server)
 | 
				
			||||||
            <a href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}"
 | 
					            <a wire:navigate href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}"
 | 
				
			||||||
                @class([
 | 
					                @class([
 | 
				
			||||||
                    'gap-2 border cursor-pointer box group',
 | 
					                    'gap-2 border cursor-pointer box group',
 | 
				
			||||||
                    'border-transparent' =>
 | 
					                    'border-transparent' =>
 | 
				
			||||||
@@ -54,10 +54,5 @@
 | 
				
			|||||||
                <span>{{ $error }}</span>
 | 
					                <span>{{ $error }}</span>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        @endisset
 | 
					        @endisset
 | 
				
			||||||
        <script>
 | 
					 | 
				
			||||||
            function goto(uuid) {
 | 
					 | 
				
			||||||
                window.location.href = '/server/' + uuid;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        </script>
 | 
					 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,7 @@
 | 
				
			|||||||
                        $traefikDashboardAvailable &&
 | 
					                        $traefikDashboardAvailable &&
 | 
				
			||||||
                        $server->proxyType() === ProxyTypes::TRAEFIK->value)
 | 
					                        $server->proxyType() === ProxyTypes::TRAEFIK->value)
 | 
				
			||||||
                    <button>
 | 
					                    <button>
 | 
				
			||||||
                        <a target="_blank" href="http://{{ $serverIp }}:8080">
 | 
					                        <a wire:navigate target="_blank" href="http://{{ $serverIp }}:8080">
 | 
				
			||||||
                            Traefik Dashboard
 | 
					                            Traefik Dashboard
 | 
				
			||||||
                            <x-external-link />
 | 
					                            <x-external-link />
 | 
				
			||||||
                        </a>
 | 
					                        </a>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@
 | 
				
			|||||||
            <h2>{{ data_get($project, 'name') }}</h2>
 | 
					            <h2>{{ data_get($project, 'name') }}</h2>
 | 
				
			||||||
            <div class="pt-0 pb-3">{{ data_get($project, 'description') }}</div>
 | 
					            <div class="pt-0 pb-3">{{ data_get($project, 'description') }}</div>
 | 
				
			||||||
            @forelse ($project->environments as $environment)
 | 
					            @forelse ($project->environments as $environment)
 | 
				
			||||||
                <a class="box group"
 | 
					                <a class="box group"  wire:navigate
 | 
				
			||||||
                    href="{{ route('shared-variables.environment.show', [
 | 
					                    href="{{ route('shared-variables.environment.show', [
 | 
				
			||||||
                        'project_uuid' => $project->uuid, 
 | 
					                        'project_uuid' => $project->uuid, 
 | 
				
			||||||
                        'environment_uuid' => $environment->uuid
 | 
					                        'environment_uuid' => $environment->uuid
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,19 +8,19 @@
 | 
				
			|||||||
    <div class="subtitle">Set Team / Project / Environment wide variables.</div>
 | 
					    <div class="subtitle">Set Team / Project / Environment wide variables.</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div class="flex flex-col gap-2">
 | 
					    <div class="flex flex-col gap-2">
 | 
				
			||||||
        <a class="box group" href="{{ route('shared-variables.team.index') }}">
 | 
					        <a wire:navigate class="box group" href="{{ route('shared-variables.team.index') }}">
 | 
				
			||||||
            <div class="flex flex-col justify-center mx-6">
 | 
					            <div class="flex flex-col justify-center mx-6">
 | 
				
			||||||
                <div class="box-title">Team wide</div>
 | 
					                <div class="box-title">Team wide</div>
 | 
				
			||||||
                <div class="box-description">Usable for all resources in a team.</div>
 | 
					                <div class="box-description">Usable for all resources in a team.</div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
        <a class="box group" href="{{ route('shared-variables.project.index') }}">
 | 
					        <a wire:navigate class="box group" href="{{ route('shared-variables.project.index') }}">
 | 
				
			||||||
            <div class="flex flex-col justify-center mx-6">
 | 
					            <div class="flex flex-col justify-center mx-6">
 | 
				
			||||||
                <div class="box-title">Project wide</div>
 | 
					                <div class="box-title">Project wide</div>
 | 
				
			||||||
                <div class="box-description">Usable for all resources in a project.</div>
 | 
					                <div class="box-description">Usable for all resources in a project.</div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
        <a class="box group" href="{{ route('shared-variables.environment.index') }}">
 | 
					        <a wire:navigate class="box group" href="{{ route('shared-variables.environment.index') }}">
 | 
				
			||||||
            <div class="flex flex-col justify-center mx-6">
 | 
					            <div class="flex flex-col justify-center mx-6">
 | 
				
			||||||
                <div class="box-title">Environment wide</div>
 | 
					                <div class="box-title">Environment wide</div>
 | 
				
			||||||
                <div class="box-description">Usable for all resources in an environment.</div>
 | 
					                <div class="box-description">Usable for all resources in an environment.</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,6 +9,7 @@
 | 
				
			|||||||
    <div class="flex flex-col gap-2">
 | 
					    <div class="flex flex-col gap-2">
 | 
				
			||||||
        @forelse ($projects as $project)
 | 
					        @forelse ($projects as $project)
 | 
				
			||||||
            <a class="box group"
 | 
					            <a class="box group"
 | 
				
			||||||
 | 
					                wire:navigate
 | 
				
			||||||
                href="{{ route('shared-variables.project.show', ['project_uuid' => data_get($project, 'uuid')]) }}">
 | 
					                href="{{ route('shared-variables.project.show', ['project_uuid' => data_get($project, 'uuid')]) }}">
 | 
				
			||||||
                <div class="flex flex-col justify-center mx-6 ">
 | 
					                <div class="flex flex-col justify-center mx-6 ">
 | 
				
			||||||
                    <div class="box-title">{{ $project->name }}</div>
 | 
					                    <div class="box-title">{{ $project->name }}</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@
 | 
				
			|||||||
    <div class="subtitle">S3 storages for backups.</div>
 | 
					    <div class="subtitle">S3 storages for backups.</div>
 | 
				
			||||||
    <div class="grid gap-2 lg:grid-cols-2">
 | 
					    <div class="grid gap-2 lg:grid-cols-2">
 | 
				
			||||||
        @forelse ($s3 as $storage)
 | 
					        @forelse ($s3 as $storage)
 | 
				
			||||||
            <div x-data x-on:click="goto('{{ $storage->uuid }}')" @class(['gap-2 border cursor-pointer box group border-transparent'])>
 | 
					            <a href="/storages/{{ $storage->uuid }}" wire:navigate @class(['gap-2 border cursor-pointer box group border-transparent'])>
 | 
				
			||||||
                <div class="flex flex-col mx-6">
 | 
					                <div class="flex flex-col mx-6">
 | 
				
			||||||
                    <div class="box-title">
 | 
					                    <div class="box-title">
 | 
				
			||||||
                        {{ $storage->name }}
 | 
					                        {{ $storage->name }}
 | 
				
			||||||
@@ -23,16 +23,11 @@
 | 
				
			|||||||
                        <div class="text-red-500">Not Usable</div>
 | 
					                        <div class="text-red-500">Not Usable</div>
 | 
				
			||||||
                    @endif
 | 
					                    @endif
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </a>
 | 
				
			||||||
        @empty
 | 
					        @empty
 | 
				
			||||||
            <div>
 | 
					            <div>
 | 
				
			||||||
                <div>No storage found.</div>
 | 
					                <div>No storage found.</div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        @endforelse
 | 
					        @endforelse
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <script>
 | 
					 | 
				
			||||||
        function goto(uuid) {
 | 
					 | 
				
			||||||
            window.location.href = '/storages/' + uuid;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    </script>
 | 
					 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div class="flex flex-wrap gap-2 ">
 | 
					    <div class="flex flex-wrap gap-2 ">
 | 
				
			||||||
        @forelse ($tags as $oneTag)
 | 
					        @forelse ($tags as $oneTag)
 | 
				
			||||||
            <a :class="{{ $tag?->id == $oneTag->id }} && 'dark:bg-coollabs hover:bg-coollabs-100'"
 | 
					            <a wire:navigate :class="{{ $tag?->id == $oneTag->id }} && 'dark:bg-coollabs hover:bg-coollabs-100'"
 | 
				
			||||||
                class="w-64 box-without-bg dark:bg-coolgray-100 dark:text-white font-bold"
 | 
					                class="w-64 box-without-bg dark:bg-coolgray-100 dark:text-white font-bold"
 | 
				
			||||||
                href="{{ route('tags.show', ['tagName' => $oneTag->name]) }}">{{ $oneTag->name }}</a>
 | 
					                href="{{ route('tags.show', ['tagName' => $oneTag->name]) }}">{{ $oneTag->name }}</a>
 | 
				
			||||||
        @empty
 | 
					        @empty
 | 
				
			||||||
@@ -34,7 +34,7 @@
 | 
				
			|||||||
            <div class="grid grid-cols-1 gap-2 pt-4 lg:grid-cols-2 xl:grid-cols-3">
 | 
					            <div class="grid grid-cols-1 gap-2 pt-4 lg:grid-cols-2 xl:grid-cols-3">
 | 
				
			||||||
                @if (isset($applications) && count($applications) > 0)
 | 
					                @if (isset($applications) && count($applications) > 0)
 | 
				
			||||||
                    @foreach ($applications as $application)
 | 
					                    @foreach ($applications as $application)
 | 
				
			||||||
                        <a href="{{ $application->link() }}" class="box group">
 | 
					                        <a wire:navigate href="{{ $application->link() }}" class="box group">
 | 
				
			||||||
                            <div class="flex flex-col">
 | 
					                            <div class="flex flex-col">
 | 
				
			||||||
                                <div class="box-title">
 | 
					                                <div class="box-title">
 | 
				
			||||||
                                    {{ $application->project()->name }}/{{ $application->environment->name }}
 | 
					                                    {{ $application->project()->name }}/{{ $application->environment->name }}
 | 
				
			||||||
@@ -47,7 +47,7 @@
 | 
				
			|||||||
                @endif
 | 
					                @endif
 | 
				
			||||||
                @if (isset($services) && count($services) > 0)
 | 
					                @if (isset($services) && count($services) > 0)
 | 
				
			||||||
                    @foreach ($services as $service)
 | 
					                    @foreach ($services as $service)
 | 
				
			||||||
                        <a href="{{ $service->link() }}" class="flex flex-col box group">
 | 
					                        <a wire:navigate href="{{ $service->link() }}" class="flex flex-col box group">
 | 
				
			||||||
                            <div class="flex flex-col">
 | 
					                            <div class="flex flex-col">
 | 
				
			||||||
                                <div class="box-title">
 | 
					                                <div class="box-title">
 | 
				
			||||||
                                    {{ $service->project()->name }}/{{ $service->environment->name }}
 | 
					                                    {{ $service->project()->name }}/{{ $service->environment->name }}
 | 
				
			||||||
@@ -70,7 +70,7 @@
 | 
				
			|||||||
                    <h4 class="py-4">{{ $serverName }}</h4>
 | 
					                    <h4 class="py-4">{{ $serverName }}</h4>
 | 
				
			||||||
                    <div class="grid grid-cols-1 gap-2 lg:grid-cols-3">
 | 
					                    <div class="grid grid-cols-1 gap-2 lg:grid-cols-3">
 | 
				
			||||||
                        @foreach ($deployments as $deployment)
 | 
					                        @foreach ($deployments as $deployment)
 | 
				
			||||||
                            <a href="{{ data_get($deployment, 'deployment_url') }}" @class([
 | 
					                            <a wire:navigate href="{{ data_get($deployment, 'deployment_url') }}" @class([
 | 
				
			||||||
                                'gap-2 cursor-pointer box group border-l-2 border-dotted',
 | 
					                                'gap-2 cursor-pointer box group border-l-2 border-dotted',
 | 
				
			||||||
                                'dark:border-coolgray-300' => data_get($deployment, 'status') === 'queued',
 | 
					                                'dark:border-coolgray-300' => data_get($deployment, 'status') === 'queued',
 | 
				
			||||||
                                'border-yellow-500' => data_get($deployment, 'status') === 'in_progress',
 | 
					                                'border-yellow-500' => data_get($deployment, 'status') === 'in_progress',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,6 +13,7 @@
 | 
				
			|||||||
        @forelse ($sources as $source)
 | 
					        @forelse ($sources as $source)
 | 
				
			||||||
            @if ($source->getMorphClass() === 'App\Models\GithubApp')
 | 
					            @if ($source->getMorphClass() === 'App\Models\GithubApp')
 | 
				
			||||||
                <a class="flex gap-4 text-center hover:no-underline box group"
 | 
					                <a class="flex gap-4 text-center hover:no-underline box group"
 | 
				
			||||||
 | 
					                    wire:navigate
 | 
				
			||||||
                    href="{{ route('source.github.show', ['github_app_uuid' => data_get($source, 'uuid')]) }}">
 | 
					                    href="{{ route('source.github.show', ['github_app_uuid' => data_get($source, 'uuid')]) }}">
 | 
				
			||||||
                    <x-git-icon class="dark:text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
 | 
					                    <x-git-icon class="dark:text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
 | 
				
			||||||
                    <div class="text-left group-hover:dark:text-white">
 | 
					                    <div class="text-left group-hover:dark:text-white">
 | 
				
			||||||
@@ -25,6 +26,7 @@
 | 
				
			|||||||
            @endif
 | 
					            @endif
 | 
				
			||||||
            @if ($source->getMorphClass() === 'App\Models\GitlabApp')
 | 
					            @if ($source->getMorphClass() === 'App\Models\GitlabApp')
 | 
				
			||||||
                <a class="flex gap-4 text-center hover:no-underline box group"
 | 
					                <a class="flex gap-4 text-center hover:no-underline box group"
 | 
				
			||||||
 | 
					                    wire:navigate
 | 
				
			||||||
                    href="{{ route('source.gitlab.show', ['gitlab_app_uuid' => data_get($source, 'uuid')]) }}">
 | 
					                    href="{{ route('source.gitlab.show', ['gitlab_app_uuid' => data_get($source, 'uuid')]) }}">
 | 
				
			||||||
                    <x-git-icon class="dark:text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
 | 
					                    <x-git-icon class="dark:text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
 | 
				
			||||||
                    <div class="text-left group-hover:dark:text-white">
 | 
					                    <div class="text-left group-hover:dark:text-white">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user