mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 16:17:10 +00:00
feat(volume-backups): add service backup UI and polish layouts
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.
This commit is contained in:
1 parent
0312cc8ffb
commit
5842d77b81
69 files changed
+1607
-501
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
it('uses sidebar navigation and breadcrumbs for destination details', function () {
|
||||
$show = file_get_contents(resource_path('views/livewire/destination/show.blade.php'));
|
||||
$resources = file_get_contents(resource_path('views/livewire/destination/resources.blade.php'));
|
||||
$sidebar = file_get_contents(resource_path('views/livewire/destination/sidebar.blade.php'));
|
||||
$navbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));
|
||||
$breadcrumbs = file_get_contents(resource_path('views/components/top-breadcrumb.blade.php'));
|
||||
|
||||
expect($show)
|
||||
->toContain(':mobileTitleOnly="true"')
|
||||
->toContain("@include('livewire.destination.sidebar'");
|
||||
expect($resources)
|
||||
->toContain(':mobileTitleOnly="true"')
|
||||
->toContain("@include('livewire.destination.sidebar'");
|
||||
expect($sidebar)
|
||||
->toContain("'label' => 'General'")
|
||||
->toContain("'label' => 'Resources'")
|
||||
->toContain("'label' => 'Danger Zone'")
|
||||
->toContain('application-settings-navigation min-w-0 xl:self-start');
|
||||
expect($navbar)
|
||||
->toContain("request()->routeIs('destination.show', 'destination.resources', 'destination.danger')")
|
||||
->not->toContain("['label' => 'Resources', 'route' => 'destination.resources'");
|
||||
expect($breadcrumbs)
|
||||
->toContain('x-breadcrumb-switcher')
|
||||
->toContain('$currentDestination->name')
|
||||
->toContain("route('destination.show'")
|
||||
->toContain("? 'Docker' : 'Deprecated'");
|
||||
expect($breadcrumbs)
|
||||
->toContain('Pages')
|
||||
->toContain('Projects')
|
||||
->toContain('Environments')
|
||||
->not->toContain('M5 12l5 5 9-11');
|
||||
expect($show)
|
||||
->toContain('destination-danger-section')
|
||||
->toContain('title="Danger zone"')
|
||||
->not->toContain("actions=['This will delete the selected destination/network.']");
|
||||
expect(file_get_contents(base_path('routes/web.php')))
|
||||
->toContain("->name('destination.danger')");
|
||||
});
|
||||
Reference in new issue
Block a user