From 19f0b7819e94cc64ff18faff3870a2f76a5fc604 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Fri, 19 Jun 2026 18:39:35 +0300 Subject: [PATCH] refactor: improve logs view --- ui/app/assets/css/tailwind.css | 17 + ui/app/components/GetInfo.vue | 58 ++- ui/app/components/LogDetailModal.vue | 580 +++++++++++++++++---------- ui/app/components/StatCard.vue | 73 ++++ ui/app/pages/logs.vue | 131 +++--- ui/app/utils/logs.ts | 59 +++ 6 files changed, 631 insertions(+), 287 deletions(-) create mode 100644 ui/app/components/StatCard.vue create mode 100644 ui/app/utils/logs.ts diff --git a/ui/app/assets/css/tailwind.css b/ui/app/assets/css/tailwind.css index 786d1cdf..db327c5a 100644 --- a/ui/app/assets/css/tailwind.css +++ b/ui/app/assets/css/tailwind.css @@ -65,6 +65,23 @@ backdrop-filter: blur(16px); } + .ytp-terminal { + display: block; + width: 100%; + box-sizing: border-box; + padding: 1rem; + background-color: var(--ui-bg-elevated); + color: var(--ui-text); + line-height: 1.7; + border-radius: 0.5rem; + border: 1px solid var(--ui-border); + } + + .ytp-terminal > code { + display: block; + font-family: var(--font-mono, monospace); + } + .play-overlay { position: relative; display: block; diff --git a/ui/app/components/GetInfo.vue b/ui/app/components/GetInfo.vue index e0f1238e..388adc7a 100644 --- a/ui/app/components/GetInfo.vue +++ b/ui/app/components/GetInfo.vue @@ -35,13 +35,7 @@ variant="soft" icon="i-lucide-filter" title="No matching lines" - > - - + /> -
- -
+