-
Notifications
You must be signed in to change notification settings - Fork 184
/
Summary.vue
84 lines (76 loc) · 2.58 KB
/
Summary.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<template>
<div>
<div class="layout-col z-10">
<DangerCard v-if="this.appEnv !== 'local' && this.appDebug === true">
<p>
<code>APP_DEBUG</code> is set to <code>true</code> while <code>APP_ENV</code> is
not <code>local</code>
</p>
<p class="text-base">
This could make your application vulnerable to remote execution.
<a
class="underline"
target="_blank"
rel="noopener"
href="https://flareapp.io/docs/ignition-for-laravel/security"
>Read more about Ignition security.</a
>
</p>
</DangerCard>
<ErrorCard />
</div>
<div class="layout-col z-1" v-if="solutions.length > 0">
<SolutionCard v-bind="{ solution }" />
<div
class="absolute left-0 bottom-0 w-full h-8 mb-2 px-4 text-sm z-10"
v-if="solutions.length > 1"
>
<ul class="grid cols-auto place-center gap-1">
<li
v-for="(solution, key) in solutions"
@click="activeSolutionKey = key"
:key="solution.class"
>
<a
class="grid place-center h-8 min-w-8 px-2 rounded-full"
:class="{
'bg-tint-200 font-semibold': activeSolutionKey === key,
'hover:bg-tint-100 cursor-pointer': activeSolutionKey !== key,
}"
>
{{ key + 1 }}
</a>
</li>
</ul>
</div>
</div>
</div>
</template>
<script>
import FilePath from './Shared/FilePath.vue';
import DangerCard from './Shared/DangerCard';
import ErrorCard from './Shared/ErrorCard';
import SolutionCard from './Solutions/SolutionCard';
export default {
components: {
DangerCard,
SolutionCard,
ErrorCard,
FilePath,
},
inject: ['report', 'solutions', 'appEnv', 'appDebug'],
data() {
return {
activeSolutionKey: 0,
};
},
computed: {
firstFrame() {
return this.report.stacktrace[0];
},
solution() {
return this.solutions[this.activeSolutionKey];
},
},
};
</script>