From dbe14368d6f08ee9b4969dae86ab06d768dbd4db Mon Sep 17 00:00:00 2001 From: Kuchuk Andrey Date: Tue, 4 Jun 2024 22:48:32 +0400 Subject: [PATCH 1/7] [#131] add new event link to the preview-card head --- src/shared/ui/icon-svg/icon-svg.vue | 21 +++++++++++++++++ .../ui/preview-card/preview-card-header.vue | 23 ++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/src/shared/ui/icon-svg/icon-svg.vue b/src/shared/ui/icon-svg/icon-svg.vue index 49237ecc..45c41441 100644 --- a/src/shared/ui/icon-svg/icon-svg.vue +++ b/src/shared/ui/icon-svg/icon-svg.vue @@ -609,6 +609,27 @@ defineProps(); + + + + + + + + diff --git a/src/shared/ui/preview-card/preview-card-header.vue b/src/shared/ui/preview-card/preview-card-header.vue index c7ef9b8b..0e6b926f 100644 --- a/src/shared/ui/preview-card/preview-card-header.vue +++ b/src/shared/ui/preview-card/preview-card-header.vue @@ -1,6 +1,6 @@ + +
@@ -216,6 +232,11 @@ $eventTypeColorsMap: ( } } +.preview-card-header__open { + @apply flex justify-end; + @apply h-4 md:h-5; +} + .preview-card-header__buttons { @apply flex justify-end; @apply gap-2 md:gap-3; From b601b1cdb5075f7397a1cacc6f1a5e4569e3cbef Mon Sep 17 00:00:00 2001 From: Kuchuk Andrey Date: Tue, 4 Jun 2024 22:51:25 +0400 Subject: [PATCH 2/7] [#131] remove link from preview-card bodies --- .../http-dump/ui/preview-card/preview-card.vue | 9 ++++----- .../inspector/ui/preview-card/preview-card.vue | 14 ++++++-------- .../profiler/ui/preview-card/preview-card.vue | 9 +++------ .../sentry/ui/preview-card/preview-card.vue | 14 ++++++-------- src/entities/smtp/ui/preview-card/preview-card.vue | 6 ++---- 5 files changed, 21 insertions(+), 31 deletions(-) diff --git a/src/entities/http-dump/ui/preview-card/preview-card.vue b/src/entities/http-dump/ui/preview-card/preview-card.vue index cba68b0b..cfe418a4 100644 --- a/src/entities/http-dump/ui/preview-card/preview-card.vue +++ b/src/entities/http-dump/ui/preview-card/preview-card.vue @@ -9,18 +9,17 @@ type Props = { const props = defineProps(); -const eventLink = `/http-dumps/${props.event.id}`; const uri = decodeURI(props.event.payload.request.uri); @@ -31,8 +30,8 @@ const uri = decodeURI(props.event.payload.request.uri); @apply flex flex-col text-2xs md:text-xs; } -.preview-card__link { - @apply cursor-pointer p-2 md:p-3 bg-gray-200 dark:bg-gray-800; +.preview-card__content { + @apply p-2 md:p-3 bg-gray-200 dark:bg-gray-800; } .preview-card__method { diff --git a/src/entities/inspector/ui/preview-card/preview-card.vue b/src/entities/inspector/ui/preview-card/preview-card.vue index 869f1213..7f364f7d 100644 --- a/src/entities/inspector/ui/preview-card/preview-card.vue +++ b/src/entities/inspector/ui/preview-card/preview-card.vue @@ -1,5 +1,5 @@ @@ -29,7 +27,7 @@ const eventLink = computed(() => `/inspector/${props.event.id}`); @apply flex flex-col; } -.preview-card__link { - @apply cursor-pointer pb-2 flex-grow; +.preview-card__content { + @apply pb-2 flex-grow; } diff --git a/src/entities/profiler/ui/preview-card/preview-card.vue b/src/entities/profiler/ui/preview-card/preview-card.vue index 91bdd194..e52245b1 100644 --- a/src/entities/profiler/ui/preview-card/preview-card.vue +++ b/src/entities/profiler/ui/preview-card/preview-card.vue @@ -1,5 +1,4 @@ diff --git a/src/entities/sentry/ui/preview-card/preview-card.vue b/src/entities/sentry/ui/preview-card/preview-card.vue index fd8eb6b1..8e541d04 100644 --- a/src/entities/sentry/ui/preview-card/preview-card.vue +++ b/src/entities/sentry/ui/preview-card/preview-card.vue @@ -15,8 +15,6 @@ const props = withDefaults(defineProps(), { maxFrames: 3, }); -const eventLink = computed(() => `/sentry/${props.event.id}`); - const exceptionValues = computed( () => props.event?.payload?.exception?.values || [] ); @@ -45,19 +43,19 @@ const exception: Ref = computed(() => :exception="exception" :max-frames="maxFrames" > - +

{{ exception.type }}

-      
+      
- +
-      
+      
@@ -68,8 +66,8 @@ const exception: Ref = computed(() => @apply flex flex-col; } -.preview-card__link { - @apply cursor-pointer block dark:bg-gray-900 bg-gray-100 p-3 rounded-t-md border border-purple-300 dark:border-gray-400; +.preview-card__content { + @apply block dark:bg-gray-900 bg-gray-100 p-3 rounded-t-md border border-purple-300 dark:border-gray-400; } .preview-card__title { diff --git a/src/entities/smtp/ui/preview-card/preview-card.vue b/src/entities/smtp/ui/preview-card/preview-card.vue index 68244c14..84d9394e 100644 --- a/src/entities/smtp/ui/preview-card/preview-card.vue +++ b/src/entities/smtp/ui/preview-card/preview-card.vue @@ -13,8 +13,6 @@ const props = defineProps(); const dateFormat = computed(() => moment(props.event.date).fromNow()); -const eventLink = computed(() => `/smtp/${props.event.id}`); - const emailRecipient = computed( () => props?.event?.payload?.to?.[0]?.email || null ); @@ -22,7 +20,7 @@ const emailRecipient = computed( From d9e49971f62d1c0d96feee7139c076aecbb5d199 Mon Sep 17 00:00:00 2001 From: Kuchuk Andrey Date: Tue, 4 Jun 2024 23:04:04 +0400 Subject: [PATCH 3/7] #131 create blank pages for var and ray dumbs --- pages/ray-dump/[id].vue | 104 ++++++++++++++++++ pages/ray-dump/index.vue | 8 ++ pages/var-dump/[id].vue | 104 ++++++++++++++++++ pages/var-dump/index.vue | 8 ++ .../ui/layout-sidebar/layout-sidebar.vue | 18 +++ 5 files changed, 242 insertions(+) create mode 100644 pages/ray-dump/[id].vue create mode 100644 pages/ray-dump/index.vue create mode 100644 pages/var-dump/[id].vue create mode 100644 pages/var-dump/index.vue diff --git a/pages/ray-dump/[id].vue b/pages/ray-dump/[id].vue new file mode 100644 index 00000000..35811f1d --- /dev/null +++ b/pages/ray-dump/[id].vue @@ -0,0 +1,104 @@ + + + + + diff --git a/pages/ray-dump/index.vue b/pages/ray-dump/index.vue new file mode 100644 index 00000000..313ba239 --- /dev/null +++ b/pages/ray-dump/index.vue @@ -0,0 +1,8 @@ + + + diff --git a/pages/var-dump/[id].vue b/pages/var-dump/[id].vue new file mode 100644 index 00000000..55caae8f --- /dev/null +++ b/pages/var-dump/[id].vue @@ -0,0 +1,104 @@ + + + + + diff --git a/pages/var-dump/index.vue b/pages/var-dump/index.vue new file mode 100644 index 00000000..1d4f563b --- /dev/null +++ b/pages/var-dump/index.vue @@ -0,0 +1,8 @@ + + + diff --git a/src/widgets/ui/layout-sidebar/layout-sidebar.vue b/src/widgets/ui/layout-sidebar/layout-sidebar.vue index b97cc1ef..5c7e3e24 100644 --- a/src/widgets/ui/layout-sidebar/layout-sidebar.vue +++ b/src/widgets/ui/layout-sidebar/layout-sidebar.vue @@ -119,6 +119,24 @@ const { path } = useRoute();
+ + + + + + + + From eb0fdd753fc3dcb6d099c6f1c544ad00925ff13e Mon Sep 17 00:00:00 2001 From: Kuchuk Andrey Date: Thu, 6 Jun 2024 18:06:59 +0400 Subject: [PATCH 4/7] [#131] fix active icon in sidebar --- src/shared/ui/preview-card/preview-card-header.vue | 2 +- src/widgets/ui/layout-sidebar/layout-sidebar.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shared/ui/preview-card/preview-card-header.vue b/src/shared/ui/preview-card/preview-card-header.vue index 0e6b926f..7f33c7be 100644 --- a/src/shared/ui/preview-card/preview-card-header.vue +++ b/src/shared/ui/preview-card/preview-card-header.vue @@ -91,7 +91,7 @@ const newPageLink = computed(() => { diff --git a/src/widgets/ui/layout-sidebar/layout-sidebar.vue b/src/widgets/ui/layout-sidebar/layout-sidebar.vue index 5c7e3e24..112a7329 100644 --- a/src/widgets/ui/layout-sidebar/layout-sidebar.vue +++ b/src/widgets/ui/layout-sidebar/layout-sidebar.vue @@ -56,7 +56,7 @@ const logout = () => { router.push("/login"); }; -const { path } = useRoute(); +const path = computed(() => useRoute().path); - - diff --git a/src/entities/ray/ui/ray-exception/ray-exception.vue b/src/entities/ray/ui/ray-exception/ray-exception.vue index 7af15f4e..1fceb65d 100644 --- a/src/entities/ray/ui/ray-exception/ray-exception.vue +++ b/src/entities/ray/ui/ray-exception/ray-exception.vue @@ -11,14 +11,15 @@ defineProps();