GlowEvent.vue 856 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div>
  3. <DefinitionList title="Glow">
  4. <DefinitionListRow label="Message"
  5. ><code class="code-block"><pre v-html="event.label"></pre></code
  6. ></DefinitionListRow>
  7. <DefinitionListRow label="Level">
  8. {{ event.metadata.message_level }}
  9. </DefinitionListRow>
  10. <DefinitionListRow v-for="(value, key) in event.context" :key="key" :label="key">
  11. {{ value }}
  12. </DefinitionListRow>
  13. </DefinitionList>
  14. </div>
  15. </template>
  16. <script>
  17. import DefinitionList from '../../Shared/DefinitionList';
  18. import DefinitionListRow from '../../Shared/DefinitionListRow.js';
  19. export default {
  20. components: { DefinitionListRow, DefinitionList },
  21. props: ['event'],
  22. mounted() {
  23. console.log(this.event);
  24. },
  25. };
  26. </script>