mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-16 09:42:29 -04:00
Add a /dashboard/canvas page that renders every team server with its resources and their running or queued deployments, backed by a new ServerCanvasController::dashboard endpoint and a per-server usage endpoint for zone headers. The dashboard remembers the list/canvas choice and each section (projects, servers) its own table/grid view. - Show Deploying/Queued pills on canvas cards and a foldable recent deployments panel; add shared CanvasControls component - Allow backup downloads from the server host via the S3 download storage (PrepareFileDownloadJob accepts a null container) - Extract backup toggle/run actions into ManagesDatabaseBackup and surface them in backup execution headers; merge S3 and retention sections into the general backup settings - Move deployments indicator to the top bar and add a main nav resource menu with submenus; simplify breadcrumbs and settings layouts - Add shared variables overview canvas and scheduled task modals - Add feature tests for dashboard canvas, view modes, navbar submenus, backup S3 downloads and scheduled task modals
32 lines
1.5 KiB
PHP
32 lines
1.5 KiB
PHP
<div class="flex h-full flex-col">
|
|
<x-slot:title>
|
|
{{ str($scope)->headline() }} Variables > Canvas | Coolify
|
|
</x-slot>
|
|
{{-- Page search items; the menu is in the main sidebar. --}}
|
|
<x-shared-variables.sidebar />
|
|
<div data-environment-canvas data-mode="variables" data-endpoint="{{ $endpoint }}"
|
|
data-team="{{ $teamId }}" data-user="{{ auth()->id() }}"
|
|
class="relative min-h-0 flex-1" wire:ignore>
|
|
{{-- The canvas moves this group into its toolbar (page actions last, at the right end),
|
|
which can be outside this component,
|
|
so the button opens the modal below with a window event. --}}
|
|
<div data-ec-views class="flex items-center gap-2">
|
|
<x-canvas-view-toggle on-canvas :views="['list' => ['List view', 'unordered-list']]"
|
|
:list-url="$listUrl" :canvas-url="url()->current()" />
|
|
@if ($canAddVariables)
|
|
<button type="button" x-data x-on:click="$dispatch('open-new-shared-variable')"
|
|
class="button button-highlighted whitespace-nowrap">
|
|
<x-reicon name="plus" class="size-3.5" />
|
|
Add variable
|
|
</button>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@if ($canAddVariables)
|
|
<x-modal-input title="New Shared Variable" x-on:open-new-shared-variable.window="modalOpen = true">
|
|
<x-slot:content></x-slot:content>
|
|
<livewire:project.shared.environment-variable.add :shared="true" />
|
|
</x-modal-input>
|
|
@endif
|
|
</div>
|