mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 21:20:29 +00:00
Move inline styles to global CSS file
Moved .log-highlight styles from Livewire component views to resources/css/app.css for better separation of concerns and reusability. This follows Laravel and Livewire best practices by keeping styles in the appropriate location rather than inline in component views. Changes: - Added .log-highlight styles to resources/css/app.css - Removed inline <style> tags from deployment/show.blade.php - Removed inline <style> tags from get-logs.blade.php - Added XSS security test for log viewer - Applied code formatting with Laravel Pint 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -96,9 +96,18 @@ class GetLogs extends Component
|
||||
|
||||
public function toggleTimestamps()
|
||||
{
|
||||
$previousValue = $this->showTimeStamps;
|
||||
$this->showTimeStamps = ! $this->showTimeStamps;
|
||||
$this->instantSave();
|
||||
$this->getLogs(true);
|
||||
|
||||
try {
|
||||
$this->instantSave();
|
||||
$this->getLogs(true);
|
||||
} catch (\Throwable $e) {
|
||||
// Revert the flag to its previous value on failure
|
||||
$this->showTimeStamps = $previousValue;
|
||||
|
||||
return handleError($e, $this);
|
||||
}
|
||||
}
|
||||
|
||||
public function toggleStreamLogs()
|
||||
|
||||
Reference in New Issue
Block a user