diff --git a/package.json b/package.json index d0a0f76f6b..bec075b979 100644 --- a/package.json +++ b/package.json @@ -235,6 +235,7 @@ "vue-cropperjs": "3.0.0", "vue-i18n": "8.8.2", "vue-js-modal": "1.3.28", + "vue-json-pretty": "1.4.1", "vue-loader": "15.7.0", "vue-marquee-text-component": "1.1.1", "vue-prism-component": "1.1.1", diff --git a/src/client/app/admin/views/logs.vue b/src/client/app/admin/views/logs.vue index 9a06d89ba1..120a79cabd 100644 --- a/src/client/app/admin/views/logs.vue +++ b/src/client/app/admin/views/logs.vue @@ -20,7 +20,10 @@
- [{{ log.domain.join('.') }}] {{ log.message }} +
+ [{{ log.domain.join('.') }}] {{ log.message }} + +
@@ -32,10 +35,15 @@ import Vue from 'vue'; import i18n from '../../i18n'; import { faStream } from '@fortawesome/free-solid-svg-icons'; +import VueJsonPretty from 'vue-json-pretty'; export default Vue.extend({ i18n: i18n('admin/views/logs.vue'), + components: { + VueJsonPretty + }, + data() { return { logs: [],