From 394f17ad8c6b9cb475bfef27ccd9865a32f42b07 Mon Sep 17 00:00:00 2001 From: Jakub Stanecki Date: Thu, 21 Jul 2022 11:50:17 +0200 Subject: [PATCH] Show all event's exceptions --- .../js/Components/Sentry/Show/Exception.vue | 24 +++++++++++++++++++ .../js/Components/Sentry/Show/Exceptions.vue | 20 ++++++++++++++++ resources/js/Pages/Sentry/Show.vue | 16 +++---------- resources/js/Sentry/event.js | 4 ++++ 4 files changed, 51 insertions(+), 13 deletions(-) create mode 100644 resources/js/Components/Sentry/Show/Exception.vue create mode 100644 resources/js/Components/Sentry/Show/Exceptions.vue diff --git a/resources/js/Components/Sentry/Show/Exception.vue b/resources/js/Components/Sentry/Show/Exception.vue new file mode 100644 index 0000000..c8e7bd0 --- /dev/null +++ b/resources/js/Components/Sentry/Show/Exception.vue @@ -0,0 +1,24 @@ + + + diff --git a/resources/js/Components/Sentry/Show/Exceptions.vue b/resources/js/Components/Sentry/Show/Exceptions.vue new file mode 100644 index 0000000..dbd0aee --- /dev/null +++ b/resources/js/Components/Sentry/Show/Exceptions.vue @@ -0,0 +1,20 @@ + + + diff --git a/resources/js/Pages/Sentry/Show.vue b/resources/js/Pages/Sentry/Show.vue index f0bfd50..1eee659 100644 --- a/resources/js/Pages/Sentry/Show.vue +++ b/resources/js/Pages/Sentry/Show.vue @@ -28,19 +28,7 @@ -
-

exception

- -

- {{ event.payload.type }} -

-
- {{ event.payload.value }} -
-
- -
-
+ @@ -58,10 +46,12 @@ import File from "@/Components/Sentry/UI/File"; import Tags from "@/Components/Sentry/Show/Tags"; import Breadcrumbs from "@/Components/Sentry/Show/Breadcrumbs"; import Request from "@/Components/Sentry/Show/Request"; +import Exceptions from "@/Components/Sentry/Show/Exceptions"; export default { components: { MainLayout, Link, File, Tags, Breadcrumbs, Request, + Exceptions }, setup() { const store = useStore(); diff --git a/resources/js/Sentry/event.js b/resources/js/Sentry/event.js index 4d725b8..e4913b8 100644 --- a/resources/js/Sentry/event.js +++ b/resources/js/Sentry/event.js @@ -62,6 +62,10 @@ export default class extends Event { return this._stacktrace } + get exceptions() { + return this.event.exception.values || [] + } + get breadcrumbs() { return this.event.breadcrumbs.values || [] }