ErrorCard.vue 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div class="mt-12 card card-has-header card-no-props">
  3. <div class="card-header">
  4. <div
  5. class="grid items-center rounded-t border-b border-tint-300 text-xs text-tint-600 "
  6. style="grid-template-columns: 1fr 1fr;"
  7. >
  8. <div class="grid cols-auto justify-start gap-2 px-4 py-2">
  9. <div class="flex items-center">
  10. <a
  11. href="http://flareapp.io/docs/ignition-for-laravel/introduction"
  12. target="_blank"
  13. title="Ignition docs"
  14. >
  15. <svg class="w-4 h-5 mr-4" viewBox="0 0 428 988">
  16. <polygon
  17. style="fill:#FA4E79;"
  18. points="428,247.1 428,494.1 214,617.5 214,369.3 "
  19. />
  20. <polygon
  21. style="fill:#FFF082;"
  22. points="0,988 0,741 214,617.5 214,864.1 "
  23. />
  24. <polygon
  25. style="fill:#E6003A;"
  26. points="214,123.9 214,617.5 0,494.1 0,0 "
  27. />
  28. <polygon
  29. style="fill:#FFE100;"
  30. points="214,864.1 214,617.5 428,741 428,988 "
  31. />
  32. </svg>
  33. </a>
  34. <FilePath
  35. pathClass="font-normal"
  36. :file="report.application_path + config.directorySeparator"
  37. :relative="false"
  38. />
  39. </div>
  40. </div>
  41. <div class="grid cols-auto items-center justify-end gap-4 px-4 py-2">
  42. <div v-if="telescopeUrl">
  43. <!-- <a class="underline" href="/">Flare</a>-->
  44. <!-- <span class="opacity-50"> • </span>-->
  45. <a :href="telescopeUrl" class="link-dimmed sm:ml-6" target="_blank"
  46. >Telescope</a
  47. >
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <div />
  53. <div class="card-details">
  54. <OccurrenceDetails />
  55. </div>
  56. </div>
  57. </template>
  58. <script>
  59. import OccurrenceDetails from './OccurrenceDetails';
  60. import FilePath from './FilePath.vue';
  61. export default {
  62. inject: ['report', 'telescopeUrl', 'config'],
  63. components: {
  64. OccurrenceDetails,
  65. FilePath,
  66. },
  67. };
  68. </script>