mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 20:17:05 +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
@@ -11,6 +11,22 @@ class DeploymentsIndicator extends Component
|
||||
{
|
||||
public bool $expanded = false;
|
||||
|
||||
/**
|
||||
* Persisted across polls. Livewire update requests are not the page route,
|
||||
* so this must not be re-derived from request()->routeIs() on every render.
|
||||
*/
|
||||
public bool $shouldShow = true;
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->shouldShow = $this->shouldShowForCurrentRequest();
|
||||
}
|
||||
|
||||
public function updateShouldShowFromPath(string $path): void
|
||||
{
|
||||
$this->shouldShow = ! $this->isDashboardPath($path);
|
||||
}
|
||||
|
||||
#[Computed]
|
||||
public function deployments()
|
||||
{
|
||||
@@ -53,4 +69,20 @@ class DeploymentsIndicator extends Component
|
||||
{
|
||||
return view('livewire.deployments-indicator');
|
||||
}
|
||||
|
||||
private function shouldShowForCurrentRequest(): bool
|
||||
{
|
||||
if (request()->routeIs('dashboard')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ! $this->isDashboardPath(request()->path());
|
||||
}
|
||||
|
||||
private function isDashboardPath(string $path): bool
|
||||
{
|
||||
$normalized = trim($path, '/');
|
||||
|
||||
return $normalized === '' || $normalized === '/';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user