mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 10:23:30 +00:00
Add dedicated service volume-backup Livewire pages and routes, wire shared storage backups for services, and pass S3 trusted hosts into MinIO resolve options. Also refine breadcrumbs, sticky sidebars, destination/GitHub layouts, resource filters, and login recovery link.
50 lines
1.8 KiB
PHP
50 lines
1.8 KiB
PHP
@php
|
|
$proxyMenuItems = [
|
|
[
|
|
'label' => 'Configuration',
|
|
'route' => 'server.proxy',
|
|
'active' => request()->routeIs('server.proxy'),
|
|
'icon' => 'settings',
|
|
],
|
|
[
|
|
'label' => 'Dynamic Configurations',
|
|
'route' => 'server.proxy.dynamic-confs',
|
|
'active' => request()->routeIs('server.proxy.dynamic-confs'),
|
|
'icon' => 'sliders',
|
|
'visible' => $server->proxySet(),
|
|
],
|
|
[
|
|
'label' => 'Logs',
|
|
'route' => 'server.proxy.logs',
|
|
'active' => request()->routeIs('server.proxy.logs'),
|
|
'icon' => 'file-content',
|
|
'visible' => $server->proxySet(),
|
|
'navigate' => false,
|
|
],
|
|
];
|
|
|
|
$proxyMenuItems = array_values(array_filter(
|
|
$proxyMenuItems,
|
|
fn (array $item): bool => $item['visible'] ?? true,
|
|
));
|
|
@endphp
|
|
|
|
<aside class="application-settings-navigation min-w-0 xl:self-start">
|
|
<nav aria-label="Proxy sections"
|
|
class="grid grid-cols-2 gap-0.5 border-y border-neutral-200 py-3 sm:grid-cols-3 xl:grid-cols-1 xl:border-y-0 xl:py-0 dark:border-white/[0.06]">
|
|
<div class="nav-section hidden xl:block">Proxy</div>
|
|
@foreach ($proxyMenuItems as $menuItem)
|
|
<a wire:key="server-proxy-link-{{ str($menuItem['label'])->slug() }}"
|
|
@class([
|
|
'menu-item',
|
|
'menu-item-active' => $menuItem['active'],
|
|
])
|
|
@if ($menuItem['navigate'] ?? true) {{ wireNavigate() }} @endif
|
|
href="{{ route($menuItem['route'], $parameters) }}">
|
|
<x-reicon :name="$menuItem['icon']" class="menu-item-icon" />
|
|
<span class="menu-item-label">{{ $menuItem['label'] }}</span>
|
|
</a>
|
|
@endforeach
|
|
</nav>
|
|
</aside>
|