From 2807c97c5f7beb69de035488ee07c1956b9a555e Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Tue, 18 Aug 2026 13:45:23 +0800 Subject: [PATCH] feat(filters): fragment presets and code-block send log detail --- app/assets/css/main.css | 8 +++++ app/components/RouteEditor.vue | 23 +++++++++++-- app/components/SendLogs.vue | 11 ++++--- app/composables/useI18n.ts | 12 +++++++ app/types.ts | 59 ++++++++++++++++++++++++++++++++++ 5 files changed, 105 insertions(+), 8 deletions(-) diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 9601206..1410524 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -739,6 +739,10 @@ @apply font-mono text-[12px] text-muted; } + .fragments-presets { + @apply mb-2 flex flex-col gap-1.5; + } + .fragments-list { @apply mb-2 flex flex-col gap-1.5; } @@ -759,6 +763,10 @@ @apply flex items-center gap-2; } + .log-block { + @apply max-h-72 overflow-auto whitespace-pre-wrap break-all rounded-sm border border-border bg-surface-2 p-2.5 font-mono text-[12px] leading-relaxed text-text; + } + /* ---- Toasts ---- */ .toasts { @apply pointer-events-none fixed bottom-7 left-1/2 z-[60] flex -translate-x-1/2 flex-col items-center gap-2; diff --git a/app/components/RouteEditor.vue b/app/components/RouteEditor.vue index 9e5b471..dc03000 100644 --- a/app/components/RouteEditor.vue +++ b/app/components/RouteEditor.vue @@ -1,7 +1,7 @@