mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-16 09:42:29 -04:00
Environments without resources now appear as placeholder cards on the
project, team projects and server canvases. They sit in the zone that
holds most of their project's cards, or in a new "Empty environments"
zone when there is none. A new EmptyCard component renders them.
- Project canvas: admins can move groups and cards, and the moves are
saved on their environment canvas. Environments are ordered by id.
- Server canvas: admins can move single cards as well as groups.
- Shared variable canvas: built-in COOLIFY_SERVER_UUID/NAME variables
and their links are hidden on server scope.
- Main nav: resource menus register through registerMainNavContext()
with depth levels (#main-nav-context-{depth}). Back goes one level
lower, and Back at depth 0 returns to the main menu.
- The deploy canvas state, styles and controls are simplified, and the
related sidebar, navbar and dashboard views are updated.
Tests are added or updated for the canvases and the main nav resource
menus.
19 lines
879 B
PHP
19 lines
879 B
PHP
@props(['backLabel', 'backTitle' => 'Back to the main menu', 'depth' => 0, 'navOnly' => false])
|
|
@php
|
|
// The main sidebar replaces its menu with this one on wide screens (see components/navbar.blade.php).
|
|
registerMainNavContext($depth, $backLabel, $backTitle);
|
|
@endphp
|
|
{{-- A page menu, rendered twice: in the page (below xl, CSS hides it on xl), and teleported into the
|
|
main sidebar (xl and up). The slot must not contain Livewire components (they would render twice).
|
|
navOnly renders only the sidebar copy: a deeper page uses it to keep its parent menu one Back away. --}}
|
|
@unless ($navOnly)
|
|
<aside {{ $attributes->class('application-settings-navigation in-main-nav min-w-0 xl:self-start') }}>
|
|
{{ $slot }}
|
|
</aside>
|
|
@endunless
|
|
@teleport('#main-nav-context-'.$depth)
|
|
<div class="nav-context-menu">
|
|
{{ $slot }}
|
|
</div>
|
|
@endteleport
|