-
Notifications
You must be signed in to change notification settings - Fork 590
/
preview.vue
56 lines (48 loc) · 1.69 KB
/
preview.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
<script type="text/ecmascript-6">
import StylesMixin from './../../mixins/entriesStyles';
export default {
mixins: [
StylesMixin,
],
data() {
return {
entry: null,
batch: [],
};
}
}
</script>
<template>
<preview-screen title="Gate Details" resource="gates" :id="$route.params.id">
<template slot="table-parameters" slot-scope="slotProps">
<tr>
<td class="table-fit font-weight-bold">Ability</td>
<td>
{{slotProps.entry.content.ability}}
</td>
</tr>
<tr>
<td class="table-fit font-weight-bold">Result</td>
<td>
<span class="badge font-weight-light" :class="'badge-'+gateResultClass(slotProps.entry.content.result)">
{{slotProps.entry.content.result}}
</span>
</td>
</tr>
<tr v-if="slotProps.entry.content.file">
<td class="table-fit font-weight-bold">Location</td>
<td>
{{slotProps.entry.content.file}}:{{slotProps.entry.content.line}}
</td>
</tr>
</template>
<div slot="after-attributes-card" slot-scope="slotProps">
<div class="card mt-5">
<div class="card-header"><h5>Arguments</h5></div>
<div class="code-bg p-4 mb-0 text-white">
<vue-json-pretty :data="slotProps.entry.content.arguments"></vue-json-pretty>
</div>
</div>
</div>
</preview-screen>
</template>