All files / src/Logger BaseErrorReport.vue

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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                                                               
<template lang="pug">
Modal.b-error-report(title='Full error report')
  template(v-slot:default='')
    Collapsible(v-for="error in errors" :key="error.id + '-' + error.timestamp")
      template(v-slot:header='')
        .text(role='alert' :class='alertClass(error)')
          strong {{ error.timestamp | b-luxon("yyyy-MM-dd HH:mm:ss ZZ") }}
          |  {{ error.message }}
      .col-12(v-if='hasBody(error)')
        MarkdownViewer(:value='errorBody(error)' :options='{ html: true }')
      .col-12
        button.btn.btn-light.btn-sm.float-right(@click='errorConsole(error)')
          i.fa.fa-terminal
        pre
          code {{ errorDetails(error) }}
        pre {{ errorStack(error) }}
  template(v-if='errors.length > 0' v-slot:footer='')
    .d-flex.justify-content-end
      button.x-mute-btn.btn.btn-outline-secondary.mr-2(@click='toggleMuteAlerts()'
                                                       :title='muteAlerts ? "Unmute Errors" : "Mute Errors"')
        i.fas(:class='[ muteAlerts ? "fa-bell-slash" : "fa-bell" ]')
      button.x-clean-btn.btn.btn-outline-danger(@click='clearErrors()' title="Clear Errors")
        i.fa.fa-trash.mr-2
        span Clear Errors
</template>
 
<script>
 
export { default } from "./BaseErrorReport.vue.js";
 
</script>