laravel horizon
This commit is contained in:
41
vendor/laravel/horizon/resources/js/components/Stacktrace.vue
vendored
Normal file
41
vendor/laravel/horizon/resources/js/components/Stacktrace.vue
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<script type="text/ecmascript-6">
|
||||
import _ from "lodash"
|
||||
|
||||
export default {
|
||||
props: ['trace'],
|
||||
|
||||
/**
|
||||
* The component's data.
|
||||
*/
|
||||
data() {
|
||||
return {
|
||||
minimumLines: 5,
|
||||
showAll: false,
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
lines(){
|
||||
return this.showAll ? _.take(this.trace, 1000) : _.take(this.trace, this.minimumLines);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<table class="table mb-0">
|
||||
<tbody>
|
||||
<tr v-for="line in lines">
|
||||
<td class="card-bg-secondary">{{line}}</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="! showAll">
|
||||
<td class="card-bg-secondary"><a href="*" v-on:click.prevent="showAll = true">Show All</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user