Logs.vue 626 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="ap-logs">
  3. <code-mirror :value="output" :options="cmOptions" view-height="1000px" :is-scroll="true" />
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'AnsiblePlaybookSidepageLogs',
  9. props: {
  10. output: {
  11. type: String,
  12. required: true,
  13. },
  14. },
  15. data () {
  16. return {
  17. cmOptions: {
  18. tabSize: 2,
  19. styleActiveLine: true,
  20. lineNumbers: true,
  21. line: true,
  22. mode: 'text/x-yaml',
  23. theme: 'material',
  24. autofocus: true,
  25. },
  26. }
  27. },
  28. }
  29. </script>
  30. <style>
  31. .ap-logs .CodeMirror {
  32. height: 100% !important;
  33. }
  34. </style>