mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 21:20:29 +00:00
Add log search, download, and collapsible sections with lazy loading
Features: - Add client-side search filtering for runtime and deployment logs - Add log download functionality (respects search filters) - Make runtime log sections collapsible by default - Auto-expand single container and lazy load logs on first expand - Match deployment and runtime log view heights (40rem) - Add debug toggle for deployment logs - Improve scroll behavior with follow logs feature 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,8 @@ class GetLogs extends Component
|
||||
|
||||
public ?int $numberOfLines = 100;
|
||||
|
||||
public bool $expandByDefault = false;
|
||||
|
||||
public function mount()
|
||||
{
|
||||
if (! is_null($this->resource)) {
|
||||
@@ -92,6 +94,18 @@ class GetLogs extends Component
|
||||
}
|
||||
}
|
||||
|
||||
public function toggleTimestamps()
|
||||
{
|
||||
$this->showTimeStamps = ! $this->showTimeStamps;
|
||||
$this->instantSave();
|
||||
$this->getLogs(true);
|
||||
}
|
||||
|
||||
public function toggleStreamLogs()
|
||||
{
|
||||
$this->streamLogs = ! $this->streamLogs;
|
||||
}
|
||||
|
||||
public function getLogs($refresh = false)
|
||||
{
|
||||
if (! $this->server->isFunctional()) {
|
||||
|
||||
Reference in New Issue
Block a user