|
59 | 59 | <script setup lang="ts"> |
60 | 60 | import type { ILogEntry } from '../interfaces' |
61 | 61 |
|
62 | | -import { translate as t } from '@nextcloud/l10n' |
63 | 62 | import { showSuccess } from '@nextcloud/dialogs' |
64 | | -import { computed, ref, watchEffect } from 'vue' |
65 | | -import { copyToCipboard } from '../utils/clipboard' |
66 | | -import { useLogFormatting } from '../utils/format' |
67 | | -import { LOGGING_LEVEL, LOGGING_LEVEL_NAMES } from '../constants' |
68 | | -
|
| 63 | +import { translate as t } from '@nextcloud/l10n' |
69 | 64 | import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' |
70 | 65 | import NcModal from '@nextcloud/vue/dist/Components/NcModal.js' |
71 | | -import IconContentCopy from 'vue-material-design-icons/ContentCopy.vue' |
72 | 66 | import hljs from 'highlight.js/lib/core' |
73 | 67 | import json from 'highlight.js/lib/languages/json' |
74 | | -
|
75 | | -import 'highlight.js/styles/base16/material-darker.css' |
| 68 | +import { computed, ref, watchEffect } from 'vue' |
| 69 | +import IconContentCopy from 'vue-material-design-icons/ContentCopy.vue' |
76 | 70 | import LogException from './exception/LogException.vue' |
| 71 | +import { LOGGING_LEVEL, LOGGING_LEVEL_NAMES } from '../constants' |
| 72 | +import { copyToCipboard } from '../utils/clipboard' |
| 73 | +import { useLogFormatting } from '../utils/format' |
77 | 74 |
|
78 | | -hljs.registerLanguage('json', json) |
| 75 | +import 'highlight.js/styles/base16/material-darker.css' |
79 | 76 |
|
80 | 77 | const props = defineProps<{ |
81 | 78 | open: boolean |
82 | 79 | currentEntry: ILogEntry |
83 | 80 | logEntries: readonly ILogEntry[] |
84 | 81 | }>() |
85 | 82 |
|
| 83 | +hljs.registerLanguage('json', json) |
| 84 | +
|
86 | 85 | const { formatTime, formatLogEntry } = useLogFormatting() |
87 | 86 |
|
88 | 87 | /** |
|
0 commit comments