mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 02:15:51 +00:00
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
1 parent
0b843bb07c
commit
8ae56587d5
497 files changed
+44045
-22630
No files matched your search
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Blade;
|
||||
|
||||
it('registers the upload reicon used by import backup navigation', function () {
|
||||
$path = resource_path('views/components/reicon.blade.php');
|
||||
$contents = file_get_contents($path);
|
||||
|
||||
expect($contents)->toContain("'upload' => ");
|
||||
|
||||
$html = Blade::render('<x-reicon name="upload" class="menu-item-icon" />');
|
||||
|
||||
expect($html)
|
||||
->toContain('viewBox="0 0 24 24"')
|
||||
->toContain('fill="currentColor"')
|
||||
->toContain('menu-item-icon')
|
||||
->not->toBe('<svg class="menu-item-icon size-4" viewBox="0 0 24 24" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
||||
|
||||
</svg>');
|
||||
});
|
||||
|
||||
it('uses the upload reicon for import backup in database configuration nav', function () {
|
||||
$contents = file_get_contents(resource_path('views/livewire/project/database/configuration.blade.php'));
|
||||
|
||||
expect($contents)
|
||||
->toContain("'label' => 'Import Backup'")
|
||||
->toContain("'icon' => 'upload'");
|
||||
});
|
||||
|
||||
it('uses the upload reicon for import backup in service database sidebar', function () {
|
||||
$contents = file_get_contents(resource_path('views/components/service-database/sidebar.blade.php'));
|
||||
|
||||
expect($contents)
|
||||
->toContain("'label' => 'Import Backup'")
|
||||
->toContain("'icon' => 'upload'")
|
||||
->not->toMatch("/'label' => 'Import Backup',\s*'route' => 'project\.service\.database\.import',\s*'icon' => 'storages'/s");
|
||||
});
|
||||
Reference in new issue
Block a user